[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.266,1.267

tss at dovecot.org tss at dovecot.org
Sat Mar 10 21:30:29 EET 2007


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv3789

Modified Files:
	mail-index.c 
Log Message:
When moving index file to memory, change the filename to be "(in-memory
index)".



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.266
retrieving revision 1.267
diff -u -d -r1.266 -r1.267
--- mail-index.c	10 Mar 2007 19:29:33 -0000	1.266
+++ mail-index.c	10 Mar 2007 19:30:26 -0000	1.267
@@ -1901,6 +1901,9 @@
 	/* set the index as being into memory */
 	i_free_and_null(index->dir);
 
+	i_free(index->filepath);
+	index->filepath = i_strdup("(in-memory index)");
+
 	if (index->map == NULL) {
 		/* index was never even opened. just mark it as being in
 		   memory and let the caller re-open the index. */



More information about the dovecot-cvs mailing list