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

dovecot at dovecot.org dovecot at dovecot.org
Sun Apr 12 06:12:56 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.3/rev/e77f2df8c666
changeset: 9077:e77f2df8c666
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 52bf76fa5b85 -r e77f2df8c666 src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c	Sat Apr 11 22:27:23 2009 -0400
+++ b/src/lib-storage/index/mbox/mbox-storage.c	Sat Apr 11 23:12:48 2009 -0400
@@ -310,6 +310,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