[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-storage.c,
1.15.2.3, 1.15.2.4
cras at dovecot.org
cras at dovecot.org
Wed May 31 16:17:24 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv21231/dbox
Modified Files:
Tag: branch_1_0
dbox-storage.c
Log Message:
Close index files before trying to unlink the index directory
Index: dbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-storage.c,v
retrieving revision 1.15.2.3
retrieving revision 1.15.2.4
diff -u -d -r1.15.2.3 -r1.15.2.4
--- dbox-storage.c 18 May 2006 09:38:02 -0000 1.15.2.3
+++ dbox-storage.c 31 May 2006 13:17:22 -0000 1.15.2.4
@@ -488,6 +488,10 @@
return -1;
}
+ /* make sure the indexes are closed before trying to delete the
+ directory that contains them */
+ index_storage_destroy_unrefed();
+
if (unlink_directory(mail_path, TRUE) < 0) {
if (!dbox_handle_errors(istorage)) {
mail_storage_set_critical(_storage,
More information about the dovecot-cvs
mailing list