sd-journal: remove the dead code and actually fix #14695
authorMichal Sekletár <msekleta@redhat.com>
Fri, 27 Mar 2020 16:01:59 +0000 (17:01 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Apr 2020 17:18:35 +0000 (19:18 +0200)
commite4b7c40dca12b714932b2b8cea8755d2e31f7703
tree2fffb52b147e4a11001c9c7a4d6db03888fe8532
parenta0b77ea24b314c6b23e7dda9a097db7d148e190e
sd-journal: remove the dead code and actually fix #14695

journal_file_fstat() returns an error if we call it on already unlinked
journal file and hence we never reach remove_file_real() which is the
entire point.

I must have made some mistake while testing the fix that got me thinking
the issue is gone while opposite was true.

Fixes #14695

(cherry picked from commit 8581b9f9732d4c158bb5f773230a65ce77f2c292)
src/journal/sd-journal.c