[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-uidlist.c, 1.49, 1.50

tss-movial at dovecot.org tss-movial at dovecot.org
Tue Apr 25 16:40:23 EEST 2006


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

Modified Files:
	maildir-uidlist.c 
Log Message:
Added nfs_safe_stat() to transparently work around ESTALE with stat().



Index: maildir-uidlist.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-uidlist.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- maildir-uidlist.c	9 Apr 2006 15:50:28 -0000	1.49
+++ maildir-uidlist.c	25 Apr 2006 13:40:21 -0000	1.50
@@ -375,7 +375,7 @@
         int ret;
 
 	if (uidlist->last_mtime != 0) {
-		if (stat(uidlist->fname, &st) < 0) {
+		if (nfs_safe_stat(uidlist->fname, &st) < 0) {
 			if (errno != ENOENT) {
 				mail_storage_set_critical(storage,
 					"stat(%s) failed: %m", uidlist->fname);



More information about the dovecot-cvs mailing list