summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNigel Metheringham <nigel@exim.org>2008-05-16 12:02:19 +0000
committerNigel Metheringham <nigel@exim.org>2008-05-16 12:02:19 +0000
commit5f28a6e8babf209471302cd5372435a2a6843dff (patch)
tree410c91c5296bcbfa605ea77845bd6ac2d13a6187
parent2e3177124893f623c037a44f7972d7d4105da87a (diff)
Change creation mode of maildir aux files to prevent mode 0000 files. Hardwired to 0600 as there is no clean place to get parameter mode information. Fixes: #437
-rw-r--r--doc/doc-txt/ChangeLog6
-rw-r--r--src/src/transports/tf_maildir.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index 5350be879..f760487b7 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -1,4 +1,4 @@
-$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.546 2008/03/27 13:23:40 tom Exp $
+$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.547 2008/05/16 12:02:19 nm4 Exp $
Change log file for Exim from version 4.21
-------------------------------------------
@@ -49,6 +49,10 @@ NM/05 Bugzilla 521: Integrated SPF Best Guess support contributed by
TF/04 Bugzilla 668: Fix parallel build (make -j).
+NM/05 Bugzilla 437: Prevent Maildix aux files being created with mode 000
+
+
+
Exim version 4.69
-----------------
diff --git a/src/src/transports/tf_maildir.c b/src/src/transports/tf_maildir.c
index 8d926d84f..26c999b0c 100644
--- a/src/src/transports/tf_maildir.c
+++ b/src/src/transports/tf_maildir.c
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/transports/tf_maildir.c,v 1.10 2007/01/08 10:50:20 ph10 Exp $ */
+/* $Cambridge: exim/src/src/transports/tf_maildir.c,v 1.11 2008/05/16 12:02:19 nm4 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
@@ -169,7 +169,7 @@ if (maildirfolder_create_regex != NULL)
}
else
{
- int fd = Uopen(fname, O_WRONLY|O_APPEND|O_CREAT, 0);
+ int fd = Uopen(fname, O_WRONLY|O_APPEND|O_CREAT, 0600);
if (fd < 0)
{
addr->message = string_sprintf("appendfile: failed to create "
@@ -392,7 +392,7 @@ the same thing. */
filename = string_sprintf("%s/maildirsize", path);
DEBUG(D_transport) debug_printf("looking for maildirsize in %s\n", path);
-fd = Uopen(filename, O_RDWR|O_APPEND, 0);
+fd = Uopen(filename, O_RDWR|O_APPEND, 0600);
if (fd < 0)
{
if (errno != ENOENT) return -1;