eina: just for a little bit of better portability.
authorCedric Bail <cedric.bail@samsung.com>
Wed, 16 Oct 2013 07:54:36 +0000 (16:54 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Wed, 16 Oct 2013 07:54:36 +0000 (16:54 +0900)
src/lib/eina/eina_file_common.c

index 3a68345..ac7d020 100644 (file)
@@ -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);