[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c,1.45,1.46

cras at procontrol.fi cras at procontrol.fi
Sun Apr 13 22:01:28 EEST 2003


Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory danu:/tmp/cvs-serv8810/lib-storage/index/mbox

Modified Files:
	mbox-storage.c 
Log Message:
Don't crash if there was locking problems when trying to rewrite mbox.



Index: mbox-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- mbox-storage.c	9 Mar 2003 09:56:05 -0000	1.45
+++ mbox-storage.c	13 Apr 2003 18:01:26 -0000	1.46
@@ -647,10 +647,12 @@
 	int failed = FALSE;
 
 	/* update flags by rewrite mbox file */
+        index_storage_init_lock_notify(ibox);
 	if (!mbox_index_rewrite(ibox->index)) {
 		mail_storage_set_index_error(ibox);
 		failed = TRUE;
 	}
+	ibox->index->set_lock_notify_callback(ibox->index, NULL, NULL);
 
 	return index_storage_close(box) && !failed;
 }




More information about the dovecot-cvs mailing list