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.3.0.rc1~1385 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65d4c71add523a7a061da7fb82e97cfc4f7163c3;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 50b6a833f8..58b761b445 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;