dovecot-2.2: lib-storage: When creating user directory under dom...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Oct 24 12:23:46 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/fa8fa246189a
changeset: 15253:fa8fa246189a
user: Timo Sirainen <tss at iki.fi>
date: Wed Oct 24 12:23:36 2012 +0300
description:
lib-storage: When creating user directory under domain, set its setgid-bit on.
The previous mkdir_parents_chown() change changed this behavior. I'm not
entirely sure if the setgid-bit is a good idea or not in here, but we'll
just continue the existing behavior.
diffstat:
src/lib-storage/mailbox-list.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r a7f95f182560 -r fa8fa246189a src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c Wed Oct 24 12:15:19 2012 +0300
+++ b/src/lib-storage/mailbox-list.c Wed Oct 24 12:23:36 2012 +0300
@@ -1001,6 +1001,7 @@
if (perm->file_create_gid == (gid_t)-1 &&
(perm->dir_create_mode & S_ISGID) == 0) {
/* change the group for user directories */
+ perm->dir_create_mode |= S_ISGID;
perm->file_create_gid = getegid();
perm->file_create_gid_origin = "egid";
perm->gid_origin_is_mailbox_path = FALSE;
More information about the dovecot-cvs
mailing list