From 1da77999df7a8f5a91859eb43e4e806e3c50236d Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Fri, 30 Oct 2009 15:08:25 +0000 Subject: [PATCH] Further fix to maildirsize. Fixes: #727 --- doc/doc-txt/ChangeLog | 3 ++- 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", -- 2.25.1