Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9203:c8dc38a3b902 HEAD
Maildir: Fixed using in-memory indexes when some required directory was missing.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 07 Jul 2009 21:51:37 -0400 |
parents | 797474444551 |
children | f3c6cabae3af |
files | src/lib-storage/index/maildir/maildir-util.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-util.c Tue Jul 07 21:43:57 2009 -0400 +++ b/src/lib-storage/index/maildir/maildir-util.c Tue Jul 07 21:51:37 2009 -0400 @@ -191,7 +191,7 @@ for (i = 0; i < N_ELEMENTS(dirs); i++) { path = dirs[i]; - if (path == NULL || stat(path, &st) == 0) + if (*path == '\0' || stat(path, &st) == 0) continue; if (errno != ENOENT) { mail_storage_set_critical(box->storage,