]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: don't assert on mmap'ed object type
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Apr 2020 09:53:51 +0000 (11:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Apr 2020 10:12:55 +0000 (12:12 +0200)
commit0600ff0e66f844ade3fe4e44c54dc05e67c28026
tree33489815e25e11528a9449da0cba88cc972e2d64
parent13933c6b6f7d01285d7ccf9db894273dd3528e8d
journal: don't assert on mmap'ed object type

Mappings canbe replaced by all zeroes under our feet if vacuuming
decides to unallocate some file. Hence let's not check for this kind of
stuff in an assert.

(Typically, we should genreate runtime errors in this case, in
particular EBADMSG, which the callers generally look for. But in this
case this is just an extra precaution check anyway, so let's just remove
it.)
src/journal/sd-journal.c