[dovecot-cvs] dovecot/src/lib-storage mailbox-list.c,1.17,1.18

tss at dovecot.org tss at dovecot.org
Sun May 13 21:07:07 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv24036/lib-storage

Modified Files:
	mailbox-list.c 
Log Message:
Fixes for INDEX=MEMORY



Index: mailbox-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mailbox-list.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- mailbox-list.c	13 May 2007 17:10:49 -0000	1.17
+++ mailbox-list.c	13 May 2007 18:07:05 -0000	1.18
@@ -111,7 +111,8 @@
 		strcmp(set->control_dir, set->root_dir) == 0 ? NULL :
 		p_strdup(list->pool, set->control_dir);
 
-	if (list->set.index_dir != NULL) {
+	if (list->set.index_dir != NULL &&
+	   *list->set.index_dir != '\0') {
 		if (mkdir_parents(list->set.index_dir, 0700) < 0 &&
 		    errno != EEXIST)
 			i_error("mkdir(%s) failed: %m", list->set.index_dir);



More information about the dovecot-cvs mailing list