dovecot-1.2: dbox: No longer allow an empty MAILBOXDIR. Future c...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Mar 24 23:10:34 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/7a463166d607
changeset: 8853:7a463166d607
user: Timo Sirainen <tss at iki.fi>
date: Tue Mar 24 17:10:29 2009 -0400
description:
dbox: No longer allow an empty MAILBOXDIR. Future code relies on this.
diffstat:
1 file changed, 5 insertions(+)
src/lib-storage/index/dbox/dbox-storage.c | 5 +++++
diffs (15 lines):
diff -r ed8e33c2199e -r 7a463166d607 src/lib-storage/index/dbox/dbox-storage.c
--- a/src/lib-storage/index/dbox/dbox-storage.c Tue Mar 24 13:06:31 2009 -0400
+++ b/src/lib-storage/index/dbox/dbox-storage.c Tue Mar 24 17:10:29 2009 -0400
@@ -73,6 +73,11 @@ dbox_get_list_settings(struct mailbox_li
if (mailbox_list_settings_parse(data, list_set, storage->ns,
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)
More information about the dovecot-cvs
mailing list