]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-index: fsck: Fix small log offsets to file's correct header size
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 20 May 2018 12:56:51 +0000 (15:56 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 7 Aug 2018 11:10:09 +0000 (14:10 +0300)
commitfcc1bf46f0e5ac7fc4079e84c2b41669b2093904
treea64b6c645f10bfcdac0f49c25854330a81efe45f
parent79168d0564ca9a78244545b3c0a40585810c07d6
lib-index: fsck: Fix small log offsets to file's correct header size

Use the file's actual current header size, not
MAIL_TRANSACTION_LOG_HEADER_MIN_SIZE, which is nowadays smaller. This
resulted in unnecessary errors like:

Corrupted transaction log file ...: Invalid min_file_offset: ..., min_file_offset (24) < hdr_size (40)
src/lib-index/mail-index-fsck.c