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)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Wed, 15 Apr 2020 17:17:17 +0000 (19:17 +0200)
commit0f7ee0007b8267cc66b638a44da6ddd984ece412
tree0462db934d6cc76cb7e4a8579ca118a8b853770f
parent45275461f4a5293f15191ec5cb3bb80219ef2474
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: #1796128
src/journal/sd-journal.c