Skip to content

Commit 75d4967

Browse files
yuwatakeszybz
authored andcommitted
journalctl: fix --no-tail handling
Fixes a bug introduced by 62f21ec. (cherry picked from commit 3f2203f)
1 parent f1ea9cd commit 75d4967

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/journal/journalctl.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,10 @@ static int parse_argv(int argc, char *argv[]) {
10351035
assert_not_reached();
10361036
}
10371037

1038-
if (arg_follow && !arg_no_tail && !arg_since_set && arg_lines == ARG_LINES_DEFAULT)
1038+
if (arg_no_tail)
1039+
arg_lines = ARG_LINES_ALL;
1040+
1041+
if (arg_follow && !arg_since_set && arg_lines == ARG_LINES_DEFAULT)
10391042
arg_lines = 10;
10401043

10411044
if (arg_follow && !arg_merge && !arg_boot) {

0 commit comments

Comments
 (0)