Mercurial > dovecot > original-hg > dovecot-1.2
changeset 358:cf4b8f204aea HEAD
If the data file was fully truncated, the mmap wasn't updated and it crashed
later.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 06 Oct 2002 04:10:51 +0300 |
parents | 16d22ccf3f54 |
children | 9fd132e47845 |
files | src/lib-index/mail-index-data.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-data.c Sun Oct 06 03:46:38 2002 +0300 +++ b/src/lib-index/mail-index-data.c Sun Oct 06 04:10:51 2002 +0300 @@ -349,7 +349,7 @@ return index_data_set_syscall_error(data, "write_full()"); } - return TRUE; + return mmap_update(data, 0, 0); } int mail_index_data_mark_deleted(MailIndexData *data)