dovecot-1.0: Maildir: Group of the created shared directory wasn...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jul 20 19:27:12 EEST 2008
details: http://hg.dovecot.org/dovecot-1.0/rev/2298061b424a
changeset: 5565:2298061b424a
user: Timo Sirainen <tss at iki.fi>
date: Sun Jul 20 19:27:09 2008 +0300
description:
Maildir: Group of the created shared directory wasn't set.
Patch by Simon Michelson.
diffstat:
1 file changed, 4 insertions(+)
src/lib-storage/index/maildir/maildir-storage.c | 4 ++++
diffs (14 lines):
diff -r c311c66a2d1b -r 2298061b424a src/lib-storage/index/maildir/maildir-storage.c
--- a/src/lib-storage/index/maildir/maildir-storage.c Sun Jul 20 17:58:22 2008 +0300
+++ b/src/lib-storage/index/maildir/maildir-storage.c Sun Jul 20 19:27:09 2008 +0300
@@ -662,6 +662,10 @@ static int maildir_create_shared(struct
}
umask(old_mask);
return -1;
+ }
+ if (chown(dir, (uid_t)-1, gid) < 0) {
+ mail_storage_set_critical(storage,
+ "chown(%s) failed: %m", dir);
}
for (i = 0; i < N_MAILDIR_SUBDIRS; i++) {
path = t_strconcat(dir, "/", maildir_subdirs[i], NULL);
More information about the dovecot-cvs
mailing list