dovecot-1.1: mbox: When doing autodetection, don't just create t...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Apr 12 06:16:49 EEST 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/ebec9c600766
changeset: 8240:ebec9c600766
user: Timo Sirainen <tss at iki.fi>
date: Sat Apr 11 23:16:44 2009 -0400
description:
mbox: When doing autodetection, don't just create the missing mbox directory.
diffstat:
1 file changed, 4 insertions(+)
src/lib-storage/index/mbox/mbox-storage.c | 4 ++++
diffs (14 lines):
diff -r 603997f27859 -r ebec9c600766 src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c Thu Apr 09 18:49:54 2009 -0400
+++ b/src/lib-storage/index/mbox/mbox-storage.c Sat Apr 11 23:16:44 2009 -0400
@@ -303,6 +303,10 @@ mbox_get_list_settings(struct mailbox_li
it's root dir if we've already chroot()ed, otherwise
either $HOME/mail or $HOME/Mail */
list_set->root_dir = get_root_dir(flags);
+ if (list_set->root_dir == NULL) {
+ *error_r = "Autodetection failed";
+ return -1;
+ }
} else {
if (debug)
i_info("mbox: data=%s", data);
More information about the dovecot-cvs
mailing list