]> git.ipfire.org Git - thirdparty/systemd.git/commit
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>
Sat, 28 Mar 2020 08:39:33 +0000 (09:39 +0100)
commit8581b9f9732d4c158bb5f773230a65ce77f2c292
treed5e97e979907c8c9ad0bded0011423bd905d7656
parent2df0df56dddc758607ea503006db0997d8e0aec0
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
src/journal/sd-journal.c