]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dbox: No longer allow an empty MAILBOXDIR. Future code relies on this.
authorTimo Sirainen <tss@iki.fi>
Tue, 24 Mar 2009 21:10:29 +0000 (17:10 -0400)
committerTimo Sirainen <tss@iki.fi>
Tue, 24 Mar 2009 21:10:29 +0000 (17:10 -0400)
--HG--
branch : HEAD

src/lib-storage/index/dbox/dbox-storage.c

index 2711f42384b76ed993b1a17a0a3d8cc7760286c3..74f9bdacb47f0407bd0a492ae4e2255b9011b9f2 100644 (file)
@@ -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;