]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-journal: make journal_file_next_entry() always return the nearest entry object 29417/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 27 Sep 2023 19:55:21 +0000 (04:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 6 Oct 2023 00:57:27 +0000 (09:57 +0900)
commit77db35bf10c39861a81a5c35aeff1260342f68d2
tree4ab335aa63ca053c21b2bb813f34ef7a2269d36d
parent80f96c0ce1510d1ad4f8e0699d1fbc8958777812
sd-journal: make journal_file_next_entry() always return the nearest entry object

Previously, if the input offset 'p' does not point to an entry object,
the function returns the next of the nearest entry object on
DIRECTION_DOWN, as generic_array_bisect() already returns the nearest
entry object.
src/libsystemd/sd-journal/journal-file.c