From: Timo Sirainen Date: Mon, 6 Sep 2010 15:35:13 +0000 (+0100) Subject: lib-storage: Don't fail with "maildir_name not supported" when using empty DIRNAME= X-Git-Tag: 2.0.2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6600c05e2ab38e9f662582b63c56b0c980a03748;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Don't fail with "maildir_name not supported" when using empty DIRNAME= --- diff --git a/src/lib-storage/mailbox-list.c b/src/lib-storage/mailbox-list.c index fc021beb6b..273a957072 100644 --- a/src/lib-storage/mailbox-list.c +++ b/src/lib-storage/mailbox-list.c @@ -128,7 +128,7 @@ int mailbox_list_create(const char *driver, struct mail_namespace *ns, class_p = array_idx(&mailbox_list_drivers, idx); if (((*class_p)->props & MAILBOX_LIST_PROP_NO_MAILDIR_NAME) != 0 && - set->maildir_name != NULL) { + set->maildir_name != NULL && *set->maildir_name != '\0') { *error_r = "maildir_name not supported by this driver"; return -1; }