[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-keywords.c, 1.14, 1.15
tss at dovecot.org
tss at dovecot.org
Wed Feb 14 18:32:27 UTC 2007
Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv30678/index/maildir
Modified Files:
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.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- maildir-keywords.c 18 Jan 2007 17:20:49 -0000 1.14
+++ maildir-keywords.c 14 Feb 2007 18:32:24 -0000 1.15
@@ -303,6 +303,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