[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-file.c, 1.16, 1.17

cras at dovecot.org cras at dovecot.org
Mon Apr 17 19:23:30 EEST 2006


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

Modified Files:
	mbox-file.c 
Log Message:
Don't try to call utime() for mbox if it's readonly, it'll just fail.



Index: mbox-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-file.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- mbox-file.c	26 Feb 2006 10:05:22 -0000	1.16
+++ mbox-file.c	17 Apr 2006 16:23:27 -0000	1.17
@@ -103,7 +103,7 @@
 	struct stat st;
 
 	if (mbox->ibox.recent_flags_count > 0 && mbox->ibox.keep_recent &&
-	    mbox->mbox_fd != -1) {
+	    mbox->mbox_fd != -1 && !mbox->mbox_readonly) {
 		/* we've seen recent messages which we want to keep recent.
 		   keep file's atime lower than mtime so \Marked status
 		   gets shown while listing */



More information about the dovecot-cvs mailing list