summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-17 15:21:40 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-18 13:56:02 +0100
commit62f21ec91ad8e7e24079962f4df066b0094fe68d (patch)
tree5e7b8ff0767940cfab9ad63129cb2fd33b013df1 /src/journal
parent468d726bdd0a383713964dec01fc38ca31256d62 (diff)
journalctl: properly honour -n when -f is passed, too
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journalctl.c2
1 files changed, 1 insertions, 1 deletions
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;