From: Timo Sirainen Date: Tue, 16 Nov 2010 18:51:37 +0000 (+0000) Subject: mbox: Another utime()=EPERM log message hiding. X-Git-Tag: 2.0.8~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d4c24127f4f83259c0f81851184abc34793dbe0;p=thirdparty%2Fdovecot%2Fcore.git mbox: Another utime()=EPERM log message hiding. --- diff --git a/src/lib-storage/index/mbox/mbox-file.c b/src/lib-storage/index/mbox/mbox-file.c index d3ad904490..404cdd438a 100644 --- a/src/lib-storage/index/mbox/mbox-file.c +++ b/src/lib-storage/index/mbox/mbox-file.c @@ -114,10 +114,9 @@ static void mbox_file_fix_atime(struct mbox_mailbox *mbox) if (st.st_atime >= st.st_mtime) { buf.modtime = st.st_mtime; buf.actime = buf.modtime - 1; - if (utime(mbox->box.path, &buf) < 0) { - mbox_set_syscall_error(mbox, "utimes()"); - return; - } + /* EPERM can happen with shared mailboxes */ + if (utime(mbox->box.path, &buf) < 0 && errno != EPERM) + mbox_set_syscall_error(mbox, "utime()"); } } }