dovecot-2.0: lib-storage: Don't try to create /dovecot.mailbox.i...

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 21 19:16:17 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/4f1b77b81cf3
changeset: 12694:4f1b77b81cf3
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 21 19:16:14 2011 +0200
description:
lib-storage: Don't try to create /dovecot.mailbox.index when indexes are disabled.

diffstat:

 src/lib-storage/mailbox-list.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0dcbd2357451 -r 4f1b77b81cf3 src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c	Mon Mar 21 19:10:08 2011 +0200
+++ b/src/lib-storage/mailbox-list.c	Mon Mar 21 19:16:14 2011 +0200
@@ -1111,7 +1111,7 @@
 	/* don't do this in mailbox_list_create(), because _get_path() might be
 	   overridden by storage (mbox). */
 	path = mailbox_list_get_path(list, NULL, MAILBOX_LIST_PATH_TYPE_INDEX);
-	if (path == NULL)
+	if (*path == '\0')
 		return FALSE;
 
 	path = t_strconcat(path, "/"MAILBOX_LOG_FILE_NAME, NULL);


More information about the dovecot-cvs mailing list