dovecot-2.2: imapc: Don't assert-crash when ACL plugin tries to ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Apr 4 23:03:58 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/bb81deef6b42
changeset: 16176:bb81deef6b42
user: Timo Sirainen <tss at iki.fi>
date: Thu Apr 04 23:03:30 2013 +0300
description:
imapc: Don't assert-crash when ACL plugin tries to lookup "" mailbox.
diffstat:
src/lib-storage/index/imapc/imapc-list.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r e9cab6d5e82a -r bb81deef6b42 src/lib-storage/index/imapc/imapc-list.c
--- a/src/lib-storage/index/imapc/imapc-list.c Thu Apr 04 23:03:06 2013 +0300
+++ b/src/lib-storage/index/imapc/imapc-list.c Thu Apr 04 23:03:30 2013 +0300
@@ -193,7 +193,9 @@
const char *prefix = list->storage->set->imapc_list_prefix;
unsigned int prefix_len;
- if (*prefix != '\0' && strcasecmp(storage_name, "INBOX") != 0) {
+ if (*storage_name == '\0') {
+ /* ACL plugin does these lookups */
+ } else if (*prefix != '\0' && strcasecmp(storage_name, "INBOX") != 0) {
prefix_len = strlen(prefix);
i_assert(strncmp(prefix, storage_name, prefix_len) == 0 &&
storage_name[prefix_len] == list->sep);
More information about the dovecot-cvs
mailing list