# HG changeset patch # User Timo Sirainen # Date 1227295784 -7200 # Node ID 81bc28227b6c4d531456c3c945a8cc5c947aae6d # Parent ae30ea8532ee9ce829fb51478fdd0b8cfa4b1420 Fixed deleting control directory when it wasn't the same as index directory. diff -r ae30ea8532ee -r 81bc28227b6c src/lib-storage/mailbox-list.c --- a/src/lib-storage/mailbox-list.c Fri Nov 21 21:19:16 2008 +0200 +++ b/src/lib-storage/mailbox-list.c Fri Nov 21 21:29:44 2008 +0200 @@ -585,7 +585,7 @@ 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;