Mercurial > dovecot > original-hg > dovecot-1.1
changeset 8240:ebec9c600766 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:16:44 -0400 |
parents | 603997f27859 |
children | 576e77047959 |
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 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 @@ 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);