sd-journal: remove the dead code and actually fix #14695 v239-31.1
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:21:14 +0000 (16:21 +0200)
commit0faa7696c9fa504b7cfea189340871d262814c40
treeaca739b430c3612b852e29beb7a143f76be08611
parentc01a24e9ad46eb17de5c37296194d2ce97916439
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: #1826217
src/journal/sd-journal.c