From: Marco Bettini Date: Fri, 18 Nov 2022 15:31:03 +0000 (+0000) Subject: fts: fts_expunge_log_read_end() - Always unlink corrupted log files X-Git-Tag: 2.4.0~3383 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42e29be8c2ad6b045e832f91e4191b9bd689604f;p=thirdparty%2Fdovecot%2Fcore.git fts: fts_expunge_log_read_end() - Always unlink corrupted log files Broken by 87b5c1fc03945708726c175d540fd307f7f78480 --- diff --git a/src/plugins/fts/fts-expunge-log.c b/src/plugins/fts/fts-expunge-log.c index 62297a668e..2ae56def08 100644 --- a/src/plugins/fts/fts-expunge-log.c +++ b/src/plugins/fts/fts-expunge-log.c @@ -524,10 +524,8 @@ int fts_expunge_log_read_end(struct fts_expunge_log_read_ctx **_ctx) *_ctx = NULL; - if (ctx->corrupted) { - if (ctx->unlink) - i_unlink_if_exists(ctx->log->path); - } + if (ctx->corrupted) + i_unlink_if_exists(ctx->log->path); i_stream_unref(&ctx->input); i_free(ctx);