]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mbox: When doing autodetection, don't just create the missing mbox directory.
authorTimo Sirainen <tss@iki.fi>
Sun, 12 Apr 2009 03:12:48 +0000 (23:12 -0400)
committerTimo Sirainen <tss@iki.fi>
Sun, 12 Apr 2009 03:12:48 +0000 (23:12 -0400)
--HG--
branch : HEAD

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

index d35f0fab20ffd5d21c3eb80926aad8dcd20441fd..46da658aa3917b7257109e6f585553c6b53e91e0 100644 (file)
@@ -310,6 +310,10 @@ mbox_get_list_settings(struct mailbox_list_settings *list_set,
                   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);