Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6752:75f7163d4379 HEAD
Don't change ctime/mtime when stating if they're already set.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 08 Nov 2007 21:37:43 +0200 |
parents | a6782f59c44f |
children | de67ceff3199 |
files | src/lib-storage/index/raw/raw-mail.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/raw/raw-mail.c Thu Nov 08 21:27:44 2007 +0200 +++ b/src/lib-storage/index/raw/raw-mail.c Thu Nov 08 21:37:43 2007 +0200 @@ -21,8 +21,10 @@ return -1; } - mbox->mtime = st->st_mtime; - mbox->ctime = st->st_ctime; + if (mbox->mtime != (time_t)-1) + mbox->mtime = st->st_mtime; + if (mbox->ctime != (time_t)-1) + mbox->ctime = st->st_ctime; mbox->size = st->st_size; return 0; }