]> git.ipfire.org Git - thirdparty/systemd.git/commit
journalctl: fix when --grep is used with --follow
authorMike Yuan <me@yhndnzj.com>
Thu, 23 Mar 2023 14:17:40 +0000 (22:17 +0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 27 Mar 2023 08:28:59 +0000 (10:28 +0200)
commitc673fd52e048138a6786fb9114c1ddbf0057d6fb
tree7be5c0c337b218a4efff79704d5f40e4ad8d7074
parent957b934f82fcba18a25da3bd426e01dbf9e85cd4
journalctl: fix when --grep is used with --follow

Follow-up for #25147 (db4691961ca52759fe6645d0fddb659ee4299ac2)

--follow sets arg_lines to 10, which breaks
--grep as the latter implies --reverse.
So let's not set --reverse if --follow is used.
src/journal/journalctl.c