]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: Deduplicate entry items before they are stored in the entry object
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 12 Nov 2021 14:32:40 +0000 (14:32 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Nov 2021 22:38:09 +0000 (23:38 +0100)
commit5ec9fbae64bef896368f744a875dd0437a4c42f2
tree9992a912c0c8a6a25297fd21d77aecb34505e4fa
parent485c9e19e7ebcd912d5fbf11f40afc62951173f8
journal: Deduplicate entry items before they are stored in the entry object

If the iovec contains the same data more than once, we'll end up with
duplicate offsets in the items array. Let's make sure we remove any
duplicates before we store the items in an entry object.
src/libsystemd/sd-journal/journal-file.c