From 62f21ec91ad8e7e24079962f4df066b0094fe68d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 17 Jan 2012 15:21:40 +0100 Subject: journalctl: properly honour -n when -f is passed, too --- src/journal/journalctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/journal/journalctl.c') diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 4d9864729b..52db7a9365 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -152,7 +152,7 @@ static int parse_argv(int argc, char *argv[]) { } } - if (arg_follow && !arg_no_tail) + if (arg_follow && !arg_no_tail && arg_lines < 0) arg_lines = 10; return 1; -- cgit v1.2.3-54-g00ecf