sd-journal: remove the dead code and actually fix #14695 v239-18.6
authorMichal Sekletár <msekleta@redhat.com>
Fri, 27 Mar 2020 16:01:59 +0000 (17:01 +0100)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Mon, 4 May 2020 14:20:31 +0000 (16:20 +0200)
commitf903a10d666f11a0147fa7baf7aeafd60cbfe44e
tree89a5c9bf2b0cf5988625281d450182d71a8918f0
parent0d33f461f8b824ab94239c1c1495c2cb7c9de54f
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)

Resolves: #1826216
src/journal/sd-journal.c