[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.115.2.21, 1.115.2.22

tss at dovecot.org tss at dovecot.org
Wed Jan 24 20:10:02 UTC 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv23004

Modified Files:
      Tag: branch_1_0
	maildir-storage.c 
Log Message:
Don't append "/." to control dir when asking it for "".



Index: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.115.2.21
retrieving revision 1.115.2.22
diff -u -d -r1.115.2.21 -r1.115.2.22
--- maildir-storage.c	18 Jan 2007 17:20:45 -0000	1.115.2.21
+++ maildir-storage.c	24 Jan 2007 20:10:00 -0000	1.115.2.22
@@ -561,6 +561,10 @@
 {
 	struct maildir_storage *storage = (struct maildir_storage *)_storage;
 
+	if (*name == '\0') {
+		return storage->control_dir != NULL ?
+			storage->control_dir : storage->storage.dir;
+	}
 	return maildir_get_control_path(storage, name);
 }
 



More information about the dovecot-cvs mailing list