chiark / gitweb /
journalctl: remove unexpected behavior of journalctl -b
[elogind.git] / src / journal / journalctl.c
index cb252eb0b89eaf282e0cbd2ce7c2efa7a58e821d..b347dfa18713c5c10be152b67db7371dcba02a22 100644 (file)
@@ -371,18 +371,7 @@ 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++;
-                                }
-                        }
+                        arg_boot_descriptor = optarg;
 
                         break;