]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: use EBADMSG for invalid data in file mmap
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Jun 2025 20:21:16 +0000 (22:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 Jun 2025 20:31:21 +0000 (22:31 +0200)
commit7d52a608438948b523681653550bc2e90ee9dc9b
treec0a56fdc1dc42794adbfe339bf9ed91b93f6f287
parent29d10820021fdf03d2b307beb7d9969d3a571c7d
journal: use EBADMSG for invalid data in file mmap

We must assume that any data in the mmap can change anytime because the
file is deallocated or similar. Let's strictly use EBADMSG for reporting
invalid file contents though (as opposed to using EINVAL if our own code
passes a wrong parameter somwhere).
src/libsystemd/sd-journal/journal-file.c