journalctl: properly honour -n when -f is passed, too

This commit is contained in:
Lennart Poettering 2012-01-17 15:21:40 +01:00
parent 468d726bdd
commit 62f21ec91a
2 changed files with 9 additions and 1 deletions

8
TODO
View file

@ -21,6 +21,14 @@ Bugfixes:
Features: Features:
* systemctl journal command
* journalctl: --cursor support, priority filtering
* systemctl status: show coredumps
* systemctl status: show whether journal was rotated since service started
* save coredump in Windows/Mozilla minidump format * save coredump in Windows/Mozilla minidump format
* support crash reporting operation modes (https://live.gnome.org/GnomeOS/Design/Whiteboards/ProblemReporting) * support crash reporting operation modes (https://live.gnome.org/GnomeOS/Design/Whiteboards/ProblemReporting)

View 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; arg_lines = 10;
return 1; return 1;