mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +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:
parent
43a99a7afe
commit
6cebe83cfa
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user