dovecot-1.2: mbox, dbox, cydir: Create mail directory with 0700 ...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 6 20:30:25 EET 2010
details: http://hg.dovecot.org/dovecot-1.2/rev/99caf87fb3ce
changeset: 9541:99caf87fb3ce
user: Timo Sirainen <tss at iki.fi>
date: Sat Feb 06 20:30:21 2010 +0200
description:
mbox, dbox, cydir: Create mail directory with 0700 permission, not 0770.
diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
src/lib-storage/index/cydir/cydir-storage.c | 2 +-
src/lib-storage/index/dbox/dbox-storage.c | 2 +-
src/lib-storage/index/mbox/mbox-storage.c | 2 +-
diffs (36 lines):
diff -r ef3b30b24c7c -r 99caf87fb3ce src/lib-storage/index/cydir/cydir-storage.c
--- a/src/lib-storage/index/cydir/cydir-storage.c Sat Feb 06 02:13:42 2010 +0200
+++ b/src/lib-storage/index/cydir/cydir-storage.c Sat Feb 06 20:30:21 2010 +0200
@@ -13,7 +13,7 @@
#include <dirent.h>
#include <sys/stat.h>
-#define CREATE_MODE 0770 /* umask() should limit it more */
+#define CREATE_MODE 0700
#define CYDIR_LIST_CONTEXT(obj) \
MODULE_CONTEXT(obj, cydir_mailbox_list_module)
diff -r ef3b30b24c7c -r 99caf87fb3ce src/lib-storage/index/dbox/dbox-storage.c
--- a/src/lib-storage/index/dbox/dbox-storage.c Sat Feb 06 02:13:42 2010 +0200
+++ b/src/lib-storage/index/dbox/dbox-storage.c Sat Feb 06 20:30:21 2010 +0200
@@ -19,7 +19,7 @@
#include <dirent.h>
#include <sys/stat.h>
-#define CREATE_MODE 0770 /* umask() should limit it more */
+#define CREATE_MODE 0700
#define DBOX_LIST_CONTEXT(obj) \
MODULE_CONTEXT(obj, dbox_mailbox_list_module)
diff -r ef3b30b24c7c -r 99caf87fb3ce src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c Sat Feb 06 02:13:42 2010 +0200
+++ b/src/lib-storage/index/mbox/mbox-storage.c Sat Feb 06 20:30:21 2010 +0200
@@ -21,7 +21,7 @@
#include <fcntl.h>
#include <sys/stat.h>
-#define CREATE_MODE 0770 /* umask() should limit it more */
+#define CREATE_MODE 0700
/* How often to touch the dotlock file when using KEEP_LOCKED flag */
#define MBOX_LOCK_TOUCH_MSECS (10*1000)
More information about the dovecot-cvs
mailing list