diff options
author | Brendan Cully <brendan@kublai.com> | 2007-03-21 11:26:38 -0700 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2007-03-21 11:26:38 -0700 |
commit | 6620e49d09f185623be85e51f3d836b9ec09c29f (patch) | |
tree | 81e180f6cec837f5cceb408de72c1241d84122c2 /mh.c | |
parent | 262b2b63b9936f6d7d71ee6ced62e857a64a9606 (diff) |
Back out $umask.
Diffstat (limited to 'mh.c')
-rw-r--r-- | mh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -207,7 +207,7 @@ static int mh_mkstemp (CONTEXT * dest, FILE ** fp, char **tgt) { snprintf (path, _POSIX_PATH_MAX, "%s/.mutt-%s-%d-%d", dest->path, NONULL (Hostname), (int) getpid (), Counter++); - if ((fd = open (path, O_WRONLY | O_EXCL | O_CREAT, 0666)) == -1) + if ((fd = open (path, O_WRONLY | O_EXCL | O_CREAT, 0600)) == -1) { if (errno != EEXIST) { @@ -1145,7 +1145,7 @@ int maildir_open_new_message (MESSAGE * msg, CONTEXT * dest, HEADER * hdr) dprint (2, (debugfile, "maildir_open_new_message (): Trying %s.\n", path)); - if ((fd = open (path, O_WRONLY | O_EXCL | O_CREAT, 0666)) == -1) + if ((fd = open (path, O_WRONLY | O_EXCL | O_CREAT, 0600)) == -1) { if (errno != EEXIST) { |