From 5f28a6e8babf209471302cd5372435a2a6843dff Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Fri, 16 May 2008 12:02:19 +0000 Subject: 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 --- src/src/transports/tf_maildir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3