From 308048a191425b7a8113414040bc5a3169867def Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 20 May 2018 15:55:03 +0300 Subject: [PATCH] lib-index: fsck: Don't change log_file_tail_offset=0 --- src/lib-index/mail-index-fsck.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib-index/mail-index-fsck.c b/src/lib-index/mail-index-fsck.c index c58c06befd..e4d5f4a8d3 100644 --- a/src/lib-index/mail-index-fsck.c +++ b/src/lib-index/mail-index-fsck.c @@ -47,7 +47,8 @@ mail_index_fsck_log_pos(struct mail_index *index, struct mail_index_map *map, if (hdr->log_file_tail_offset > hdr->log_file_head_offset) hdr->log_file_tail_offset = hdr->log_file_head_offset; - else if (hdr->log_file_tail_offset < MAIL_TRANSACTION_LOG_HEADER_MIN_SIZE) + else if (hdr->log_file_tail_offset != 0 && + hdr->log_file_tail_offset < MAIL_TRANSACTION_LOG_HEADER_MIN_SIZE) hdr->log_file_tail_offset = MAIL_TRANSACTION_LOG_HEADER_MIN_SIZE; } else { /* index's log_file_seq is newer than exists. move it to -- 2.47.3