eina: just for a little bit of better portability.

This commit is contained in:
Cedric Bail 2013-10-16 16:54:36 +09:00
parent 577ae1debc
commit 46447c95aa
1 changed files with 1 additions and 1 deletions

View 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);