1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 10:25:06 +03:00

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-25 19:17:10 +01:00
parent 43a99a7afe
commit 6cebe83cfa

View File

@ -371,7 +371,18 @@ static int parse_argv(int argc, char *argv[]) {
case 'b':
arg_boot = true;
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;