Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4198:def18c75ced2 HEAD
Don't try to call utime() for mbox if it's readonly, it'll just fail.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 17 Apr 2006 19:23:27 +0300 |
parents | c3ded5b815aa |
children | fa135b615b01 |
files | src/lib-storage/index/mbox/mbox-file.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-file.c Fri Apr 14 21:20:54 2006 +0300 +++ b/src/lib-storage/index/mbox/mbox-file.c Mon Apr 17 19:23:27 2006 +0300 @@ -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 */