]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
acl: Don't read/write dovecot-acl-list with acl_globals_only=yes
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 21 Jun 2017 22:12:56 +0000 (01:12 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 1 Aug 2017 10:40:33 +0000 (13:40 +0300)
It's only an optimization for the dovecot-acl files, which don't exist
with acl_globals_only=yes

src/plugins/acl/acl-backend-vfile-acllist.c

index ab68bf8b1ea6a5791e080262965266b9b5513d72..12d7310a5458069103e8fd546c5ea925a810a422 100644 (file)
@@ -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;