summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 070311c7..e6e80c2e 100644
--- a/lib.c
+++ b/lib.c
@@ -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;
}