diff options
author | Nigel Metheringham <nigel@exim.org> | 2009-10-30 15:08:25 +0000 |
---|---|---|
committer | Nigel Metheringham <nigel@exim.org> | 2009-10-30 15:08:25 +0000 |
commit | 1da77999df7a8f5a91859eb43e4e806e3c50236d (patch) | |
tree | 8c2f322a5e3d4e0d31b6181f284a107df339ad99 | |
parent | c2b89b988a4d2713e101a4a299f6cd87ee1905d7 (diff) |
Further fix to maildirsize. Fixes: #727
-rw-r--r-- | doc/doc-txt/ChangeLog | 3 | ||||
-rw-r--r-- | src/src/transports/tf_maildir.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index 9611cfd46..42a5926e4 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -1,4 +1,4 @@ -$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.583 2009/10/26 13:22:13 nm4 Exp $ +$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.584 2009/10/30 15:08:25 nm4 Exp $ Change log file for Exim from version 4.21 ------------------------------------------- @@ -124,6 +124,7 @@ NM/24 Bugzilla 688: Fix exiwhat to handle log_selector = +pid Patch provided by Heiko Schlittermann NM/25 Bugzilla 727: Use transport mode as default mode for maildirsize file + plus update to original patch. NM/26 Bugzilla 799: Documentation correction for ratelimit diff --git a/src/src/transports/tf_maildir.c b/src/src/transports/tf_maildir.c index 98862cc90..06b27ff4a 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.12 2009/10/19 12:42:13 nm4 Exp $ */ +/* $Cambridge: exim/src/src/transports/tf_maildir.c,v 1.13 2009/10/30 15:08:25 nm4 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -559,7 +559,7 @@ else tempname = string_sprintf("%s/tmp/%lu.H%luP%lu.%s", path, tv.tv_sec, tv.tv_usec, getpid(), primary_hostname); - fd = Uopen(tempname, O_RDWR|O_CREAT|O_EXCL, 0600); + fd = Uopen(tempname, O_RDWR|O_CREAT|O_EXCL, ob->mode ? ob->mode : 0600); if (fd >= 0) { (void)sprintf(CS buffer, OFF_T_FMT "S,%dC\n" OFF_T_FMT " %d\n", |