chiark / gitweb /
journalctl: properly honour -n when -f is passed, too
[elogind.git] / src / journal / journalctl.c
index 4d9864729b2a9b0516bbd411955e86ff6b3adfd1..52db7a9365185adfd94475f8342c444f1bd0c533 100644 (file)
@@ -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;