[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-keywords.c, 1.6.2.6, 1.6.2.7
tss at dovecot.org
tss at dovecot.org
Wed Feb 14 18:32:24 UTC 2007
Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv30676/index/maildir
Modified Files:
Tag: branch_1_0
maildir-keywords.c
Log Message:
fsync() subscriptions file and maildir-keywords before rename()ing them.
Index: maildir-keywords.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-keywords.c,v
retrieving revision 1.6.2.6
retrieving revision 1.6.2.7
diff -u -d -r1.6.2.6 -r1.6.2.7
--- maildir-keywords.c 18 Jan 2007 17:20:45 -0000 1.6.2.6
+++ maildir-keywords.c 14 Feb 2007 18:32:22 -0000 1.6.2.7
@@ -319,6 +319,12 @@
return -1;
}
}
+
+ if (fsync(fd) < 0) {
+ mail_storage_set_critical(STORAGE(mbox->storage),
+ "fsync(%s) failed: %m", path);
+ return -1;
+ }
return 0;
}
More information about the dovecot-cvs
mailing list