mirror of
https://github.com/systemd/systemd.git
synced 2026-08-10 17:14:31 +00:00
Reproducer: journalctl -F _SYSTEMD_UNIT -u test.service --no-pager journalctl -u test.service --no-pager -n 1 Before, the field listing ignored the unit filter and listed unrelated units, while the normal journal query applied the filter. sd_journal_query_unique() cannot represent journalctl filters such as unit, boot, time, cursor, or grep filters. Walking the journal line by line would make field listing linear in the number of entries and duplicate unique-value handling. Keep the scope-option predicate next to add_filters(), and reject field listings combined with options that actually limit the journal. Display-only options such as --pager-end are left alone.