From 46447c95aa40e587f79710e32aebd956762cc909 Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Wed, 16 Oct 2013 16:54:36 +0900 Subject: [PATCH] eina: just for a little bit of better portability. --- src/lib/eina/eina_file_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c index 3a68345..ac7d020 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) * Make sure temp file is created with secure permissions, * http://man7.org/linux/man-pages/man3/mkstemp.3.html#NOTES */ - old_umask = umask(0077); + old_umask = umask(S_IRWXG|S_IRWXO); fd = mkstemp(buffer); umask(old_umask); -- 2.7.4