summaryrefslogtreecommitdiffstats
path: root/mh.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2007-03-21 11:26:38 -0700
committerBrendan Cully <brendan@kublai.com>2007-03-21 11:26:38 -0700
commit6620e49d09f185623be85e51f3d836b9ec09c29f (patch)
tree81e180f6cec837f5cceb408de72c1241d84122c2 /mh.c
parent262b2b63b9936f6d7d71ee6ced62e857a64a9606 (diff)
Back out $umask.
Diffstat (limited to 'mh.c')
-rw-r--r--mh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mh.c b/mh.c
index 7a15833b..1447d142 100644
--- a/mh.c
+++ b/mh.c
@@ -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)
{