]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts: fts_expunge_log_read_end() - Always unlink corrupted log files
authorMarco Bettini <marco.bettini@open-xchange.com>
Fri, 18 Nov 2022 15:31:03 +0000 (15:31 +0000)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 25 Nov 2022 08:33:05 +0000 (08:33 +0000)
Broken by 87b5c1fc03945708726c175d540fd307f7f78480

src/plugins/fts/fts-expunge-log.c

index 62297a668e31adf04e7a9400d03015070622c181..2ae56def088f9c66cfd2242a9421993f35d59255 100644 (file)
@@ -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);