journal-file: refuse opening non-regular journal files
authorLennart Poettering <lennart@poettering.net>
Mon, 19 Feb 2018 16:35:36 +0000 (17:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Feb 2018 11:53:10 +0000 (12:53 +0100)
commit8d6a4d33e1c38864b064df39473f4e74ef949b36
treed397f77d441e1833b9fdfd21d261727bafeddafc
parent00f5ad93b5c3c0e09e6d135a6a82ac53fd97ceca
journal-file: refuse opening non-regular journal files

Let's check the file node type when we open/stat journal files: refuse
anything that is not a regular file...
src/journal/journal-file.c
src/journal/sd-journal.c