dovecot-2.2: lib-storage: mailbox list index didn't get its perm...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Apr 7 18:50:41 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/0b7cb5fdc7b5
changeset: 16228:0b7cb5fdc7b5
user: Timo Sirainen <tss at iki.fi>
date: Sun Apr 07 18:50:31 2013 +0300
description:
lib-storage: mailbox list index didn't get its permissions from the root dir.
diffstat:
src/lib-storage/list/mailbox-list-index.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r 6e8d5d78ce0d -r 0b7cb5fdc7b5 src/lib-storage/list/mailbox-list-index.c
--- a/src/lib-storage/list/mailbox-list-index.c Sun Apr 07 18:49:32 2013 +0300
+++ b/src/lib-storage/list/mailbox-list-index.c Sun Apr 07 18:50:31 2013 +0300
@@ -40,6 +40,7 @@
{
struct mailbox_list_index *ilist = INDEX_LIST_CONTEXT(list);
const struct mail_storage_settings *set = list->mail_set;
+ struct mailbox_permissions perm;
enum mail_index_open_flags index_flags;
unsigned int lock_timeout;
@@ -55,6 +56,11 @@
lock_timeout = set->mail_max_lock_timeout == 0 ? UINT_MAX :
set->mail_max_lock_timeout;
+ mailbox_list_get_root_permissions(list, &perm);
+ mail_index_set_permissions(ilist->index, perm.file_create_mode,
+ perm.file_create_gid,
+ perm.file_create_gid_origin);
+
mail_index_set_lock_method(ilist->index, set->parsed_lock_method,
lock_timeout);
if (mail_index_open_or_create(ilist->index, index_flags) < 0) {
More information about the dovecot-cvs
mailing list