Skip to content

Backport v2023<-v2024dev1: Fix journalctl cursor use

Walter Lozano requested to merge wip/wlozano/cursor into apertis/v2023

Backport !19 (merged) and !20 (merged)

Using --after-cursor in combination with -t audit does produces the expected output since the filtering logic is applied before and after that the cursor is moved to next valid entry. In this case, using --after-cursor will cause the output to miss the first entry in the log.

To fix it save the cursor also taking into account the type of entry we are interested on, so later when we use it we can safetly check entries with --after-crusor.

infrastructure/apertis-issues#62 (closed)

Signed-off-by: Walter Lozano walter.lozano@collabora.com

Edited by Walter Lozano

Merge request reports