From: Mike Yuan Date: Tue, 5 Sep 2023 04:52:28 +0000 (+0800) Subject: journalctl: reset --lines= correctly if no argument X-Git-Tag: v255-rc1~585^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b5ff4391c99da1f6b4aef67b08bc77c0748385b;p=thirdparty%2Fsystemd.git journalctl: reset --lines= correctly if no argument Follow-up for 8d6791d2aa98c989101f572278e9b0a63edfec42 --- diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index f1c19af1b26..48747929beb 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -330,6 +330,7 @@ static int parse_lines(const char *arg, bool graceful) { default_noarg: arg_lines = 10; + arg_lines_oldest = false; return 0; }