[dovecot-cvs] dovecot/src/lib-storage mail-storage.c, 1.62, 1.63 mailbox-list.c, 1.1, 1.2

tss at dovecot.org tss at dovecot.org
Sat Nov 18 11:53:51 UTC 2006


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

Modified Files:
	mail-storage.c mailbox-list.c 
Log Message:
Fixes



Index: mail-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- mail-storage.c	16 Nov 2006 00:16:32 -0000	1.62
+++ mail-storage.c	18 Nov 2006 11:53:49 -0000	1.63
@@ -334,6 +334,9 @@
 {
 	*is_file_r = storage->mailbox_is_file;
 
+	if (*name == '\0')
+		name = NULL;
+
 	return mailbox_list_get_path(storage->list, name,
 				     MAILBOX_LIST_PATH_TYPE_MAILBOX);
 }
@@ -341,6 +344,9 @@
 const char *mail_storage_get_mailbox_control_dir(struct mail_storage *storage,
 						 const char *name)
 {
+	if (*name == '\0')
+		name = NULL;
+
 	return mailbox_list_get_path(storage->list, name,
 				     MAILBOX_LIST_PATH_TYPE_CONTROL);
 }
@@ -348,6 +354,9 @@
 const char *mail_storage_get_mailbox_index_dir(struct mail_storage *storage,
 					       const char *name)
 {
+	if (*name == '\0')
+		name = NULL;
+
 	return mailbox_list_get_path(storage->list, name,
 				     MAILBOX_LIST_PATH_TYPE_INDEX);
 }

Index: mailbox-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mailbox-list.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- mailbox-list.c	16 Nov 2006 00:16:32 -0000	1.1
+++ mailbox-list.c	18 Nov 2006 11:53:49 -0000	1.2
@@ -21,6 +21,8 @@
 	"Internal error occurred. Refer to server log for more information."
 #define CRITICAL_MSG_STAMP CRITICAL_MSG " [%Y-%m-%d %H:%M:%S]"
 
+unsigned int mailbox_list_module_id = 0;
+
 void (*hook_mailbox_list_created)(struct mailbox_list *list);
 
 static ARRAY_DEFINE(mailbox_list_drivers, const struct mailbox_list *);



More information about the dovecot-cvs mailing list