dovecot-1.1: Maildir: Fixed using in-memory indexes when some re...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jul 8 04:51:51 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/e19fd6f3d18c
changeset: 8318:e19fd6f3d18c
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 07 21:51:37 2009 -0400
description:
Maildir: Fixed using in-memory indexes when some required directory was missing.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/maildir/maildir-util.c |    2 +-

diffs (12 lines):

diff -r c4b32e6b9fb0 -r e19fd6f3d18c src/lib-storage/index/maildir/maildir-util.c
--- a/src/lib-storage/index/maildir/maildir-util.c	Tue Jul 07 16:02:51 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-util.c	Tue Jul 07 21:51:37 2009 -0400
@@ -108,7 +108,7 @@ static int maildir_create_subdirs(struct
 
 	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,


More information about the dovecot-cvs mailing list