Mercurial > dovecot > core-2.2
changeset 22394:ce605f574d47
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
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 22 Jun 2017 01:12:56 +0300 |
parents | 7f042673da58 |
children | f9b51fa352bb |
files | src/plugins/acl/acl-backend-vfile-acllist.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/acl/acl-backend-vfile-acllist.c Wed Jun 21 16:54:25 2017 +0300 +++ b/src/plugins/acl/acl-backend-vfile-acllist.c Thu Jun 22 01:12:56 2017 +0300 @@ -46,6 +46,9 @@ 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;