dovecot-1.1: Fixed deleting control directory when it wasn't the...

dovecot at dovecot.org dovecot at dovecot.org
Fri Nov 21 21:30:06 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/940fc5bdebf1
changeset: 8020:940fc5bdebf1
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Nov 21 21:29:44 2008 +0200
description:
Fixed deleting control directory when it wasn't the same as index directory.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/mailbox-list.c |    2 +-

diffs (12 lines):

diff -r d5a60586b66e -r 940fc5bdebf1 src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c	Fri Nov 21 17:01:21 2008 +0200
+++ b/src/lib-storage/mailbox-list.c	Fri Nov 21 21:29:44 2008 +0200
@@ -467,7 +467,7 @@ int mailbox_list_delete_index_control(st
 	dir = mailbox_list_get_path(list, name, MAILBOX_LIST_PATH_TYPE_CONTROL);
 	if (*dir != '\0' && strcmp(dir, path) != 0 &&
 	    strcmp(dir, index_dir) != 0) {
-		if (mailbox_list_try_delete(list, index_dir) < 0)
+		if (mailbox_list_try_delete(list, dir) < 0)
 			return -1;
 	}
 	return 0;


More information about the dovecot-cvs mailing list