From: Timo Sirainen Date: Wed, 21 Jun 2017 22:12:56 +0000 (+0300) Subject: acl: Don't read/write dovecot-acl-list with acl_globals_only=yes X-Git-Tag: 2.2.32.rc1~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c8ccc7674def03ffa087a97048c8c83f0aed338;p=thirdparty%2Fdovecot%2Fcore.git acl: Don't read/write dovecot-acl-list with acl_globals_only=yes It's only an optimization for the dovecot-acl files, which don't exist with acl_globals_only=yes --- diff --git a/src/plugins/acl/acl-backend-vfile-acllist.c b/src/plugins/acl/acl-backend-vfile-acllist.c index ab68bf8b1e..12d7310a54 100644 --- a/src/plugins/acl/acl-backend-vfile-acllist.c +++ b/src/plugins/acl/acl-backend-vfile-acllist.c @@ -46,6 +46,9 @@ static bool acl_list_get_root_dir(struct acl_backend_vfile *backend, const char *rootdir, *maildir; enum mailbox_list_path_type type; + if (backend->backend.globals_only) + return FALSE; + storage = mailbox_list_get_namespace(backend->backend.list)->storage; type = (storage->class_flags & MAIL_STORAGE_CLASS_FLAG_NO_ROOT) != 0 ? MAILBOX_LIST_PATH_TYPE_CONTROL : MAILBOX_LIST_PATH_TYPE_DIR;