From c0e1fa06cd97215d94757174919ea2dc7ef9b2bc Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 24 Mar 2009 17:10:29 -0400 Subject: [PATCH] dbox: No longer allow an empty MAILBOXDIR. Future code relies on this. --HG-- branch : HEAD --- src/lib-storage/index/dbox/dbox-storage.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib-storage/index/dbox/dbox-storage.c b/src/lib-storage/index/dbox/dbox-storage.c index 2711f42384..74f9bdacb4 100644 --- a/src/lib-storage/index/dbox/dbox-storage.c +++ b/src/lib-storage/index/dbox/dbox-storage.c @@ -74,6 +74,11 @@ dbox_get_list_settings(struct mailbox_list_settings *list_set, layout_r, alt_dir_r, error_r) < 0) return -1; + if (*list_set->mailbox_dir_name == '\0') { + *error_r = "dbox: MAILBOXDIR must not be empty"; + return -1; + } + if (*list_set->mailbox_dir_name == '\0' && list_set->subscription_fname == subs_fname) list_set->subscription_fname = DBOX_OLD_SUBSCRIPTION_FILE_NAME; -- 2.47.3