dovecot-2.2: lib-storage: Recent change broke deleting mailboxes...

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 27 18:11:18 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/78f24e681302
changeset: 18028:78f24e681302
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 27 17:05:52 2014 +0200
description:
lib-storage: Recent change broke deleting mailboxes with LAYOUT=index

diffstat:

 src/lib-storage/list/mailbox-list-index-backend.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r c7629d149d7a -r 78f24e681302 src/lib-storage/list/mailbox-list-index-backend.c
--- a/src/lib-storage/list/mailbox-list-index-backend.c	Sun Oct 26 18:43:57 2014 +0200
+++ b/src/lib-storage/list/mailbox-list-index-backend.c	Mon Oct 27 17:05:52 2014 +0200
@@ -496,7 +496,8 @@
 	struct mailbox_list_index_sync_context *sync_ctx;
 	int ret;
 
-	if (strcmp(name, list->create_mailbox_name) == 0) {
+	if (list->create_mailbox_name != NULL &&
+	    strcmp(name, list->create_mailbox_name) == 0) {
 		/* we're rollbacking a failed create. if the name exists in the
 		   list, it was done by somebody else so we don't want to
 		   remove it. */


More information about the dovecot-cvs mailing list