dovecot-1.2: lib-storage: Fixed creating indexes for read-only m...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Feb 17 08:02:47 EET 2011
details: http://hg.dovecot.org/dovecot-1.2/rev/fe9a5bb62470
changeset: 9640:fe9a5bb62470
user: Timo Sirainen <tss at iki.fi>
date: Thu Feb 17 08:02:45 2011 +0200
description:
lib-storage: Fixed creating indexes for read-only mailboxes.
diffstat:
src/lib-storage/mailbox-list.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r ab81fbb195e2 -r fe9a5bb62470 src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c Tue Jan 25 00:10:46 2011 +0200
+++ b/src/lib-storage/mailbox-list.c Thu Feb 17 08:02:45 2011 +0200
@@ -345,8 +345,8 @@
*gid_r = (gid_t)-1;
*gid_origin_r = "defaults";
} else {
- *file_mode_r = st.st_mode & 0666;
- *dir_mode_r = st.st_mode & 0777;
+ *file_mode_r = (st.st_mode & 0666) | 0600;
+ *dir_mode_r = (st.st_mode & 0777) | 0700;
*gid_origin_r = path;
if (!S_ISDIR(st.st_mode)) {
More information about the dovecot-cvs
mailing list