dovecot-1.2: mbox: When doing autodetection, don't just create t...

dovecot at dovecot.org dovecot at dovecot.org
Sun Apr 12 06:13:03 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/302bfa9ae105
changeset: 8939:302bfa9ae105
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Apr 11 23:12:48 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 3cc00d9d1c12 -r 302bfa9ae105 src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c	Sat Apr 11 21:59:26 2009 -0400
+++ b/src/lib-storage/index/mbox/mbox-storage.c	Sat Apr 11 23:12:48 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 ~/mail or ~/Mail */
 		list_set->root_dir = get_root_dir(storage);
+		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