Skip to content

Commit 7510be9

Browse files
yuwatabluca
authored andcommitted
journalctl: fix --no-tail handling
Fixes a bug introduced by 62f21ec. (cherry picked from commit 3f2203f) (cherry picked from commit 75d4967) (cherry picked from commit 9e452bb)
1 parent f6234a5 commit 7510be9

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
@@ -1059,7 +1059,10 @@ static int parse_argv(int argc, char *argv[]) {
10591059
assert_not_reached();
10601060
}
10611061

1062-
if (arg_follow && !arg_no_tail && !arg_since_set && arg_lines == ARG_LINES_DEFAULT)
1062+
if (arg_no_tail)
1063+
arg_lines = ARG_LINES_ALL;
1064+
1065+
if (arg_follow && !arg_since_set && arg_lines == ARG_LINES_DEFAULT)
10631066
arg_lines = 10;
10641067

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

0 commit comments

Comments
 (0)