journalctl: fix --no-tail handling

Fixes a bug introduced by 62f21ec91a.
This commit is contained in:
Yu Watanabe
2023-05-28 14:52:32 +09:00
parent 20e933ae74
commit 3f2203f64d
+4 -1
View File
@@ -1047,7 +1047,10 @@ static int parse_argv(int argc, char *argv[]) {
assert_not_reached();
}
if (arg_follow && !arg_no_tail && !arg_since_set && arg_lines == ARG_LINES_DEFAULT)
if (arg_no_tail)
arg_lines = ARG_LINES_ALL;
if (arg_follow && !arg_since_set && arg_lines == ARG_LINES_DEFAULT)
arg_lines = 10;
if (arg_follow && !arg_merge && !arg_boot) {