[dovecot-cvs] dovecot/src/lib-storage/index/cydir cydir-transaction.c, 1.2, 1.3

tss at dovecot.org tss at dovecot.org
Tue Apr 17 19:03:49 EEST 2007


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

Modified Files:
	cydir-transaction.c 
Log Message:
Map mailbox to mail_index_view, not to mail_index. Fixes crashes when the
same mailbox was opened multiple times.



Index: cydir-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/cydir/cydir-transaction.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cydir-transaction.c	30 Mar 2007 19:08:11 -0000	1.2
+++ cydir-transaction.c	17 Apr 2007 16:03:47 -0000	1.3
@@ -64,7 +64,7 @@
 
 static void cydir_transaction_created(struct mail_index_transaction *t)
 {
-	struct mailbox *box = MAIL_STORAGE_CONTEXT(t->view->index);
+	struct mailbox *box = MAIL_STORAGE_CONTEXT(t->view);
 
 	/* index can be for mailbox list index, in which case box=NULL */
 	if (box != NULL &&



More information about the dovecot-cvs mailing list