summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-10-16 16:54:36 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-10-16 16:54:36 +0900
commit46447c95aa40e587f79710e32aebd956762cc909 (patch)
treef30b962b72e4f8fbcffbc63bdccadc88853c959b /src/lib
parent577ae1debc724cb0144d903a8a1bfa4daf467475 (diff)
eina: just for a little bit of better portability.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/eina/eina_file_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index 3a68345c6e..ac7d020eb5 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -884,7 +884,7 @@ eina_file_mkstemp(const char *templatename, Eina_Tmpstr **path)
884 * Make sure temp file is created with secure permissions, 884 * Make sure temp file is created with secure permissions,
885 * http://man7.org/linux/man-pages/man3/mkstemp.3.html#NOTES 885 * http://man7.org/linux/man-pages/man3/mkstemp.3.html#NOTES
886 */ 886 */
887 old_umask = umask(0077); 887 old_umask = umask(S_IRWXG|S_IRWXO);
888 fd = mkstemp(buffer); 888 fd = mkstemp(buffer);
889 umask(old_umask); 889 umask(old_umask);
890 890