Revert "journalctl: remove unexpected behavior of journalctl -b"

This reverts commit cf5bccc2bb.

We should fix thinks properly if they aren't perfect, not just break
other things...
This commit is contained in:
Lennart Poettering
2013-12-26 01:52:45 +01:00
parent 43a99a7afe
commit 6cebe83cfa
+12 -1
View File
@@ -371,7 +371,18 @@ static int parse_argv(int argc, char *argv[]) {
case 'b':
arg_boot = true;
arg_boot_descriptor = optarg;
if (optarg)
arg_boot_descriptor = optarg;
else if (optind < argc) {
int boot;
if (argv[optind][0] != '-' ||
safe_atoi(argv[optind], &boot) >= 0) {
arg_boot_descriptor = argv[optind];
optind++;
}
}
break;