diff options
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -570,7 +570,7 @@ int safe_open (const char *path, int flags) safe_dir, sizeof (safe_dir)) == -1) return -1; - if ((fd = open (safe_file, flags, 0666)) < 0) + if ((fd = open (safe_file, flags, 0600)) < 0) { rmdir (safe_dir); return fd; @@ -584,7 +584,7 @@ int safe_open (const char *path, int flags) } else { - if ((fd = open (path, flags, 0666)) < 0) + if ((fd = open (path, flags, 0600)) < 0) return fd; } |