Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8939:302bfa9ae105 HEAD
mbox: When doing autodetection, don't just create the missing mbox directory.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 11 Apr 2009 23:12:48 -0400 |
parents | 3cc00d9d1c12 |
children | aba994bec90b |
files | src/lib-storage/index/mbox/mbox-storage.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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);