summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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