chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journalctl: remove unexpected behavior of journalctl -b
[elogind.git]
/
src
/
journal
/
journalctl.c
diff --git
a/src/journal/journalctl.c
b/src/journal/journalctl.c
index cb252eb0b89eaf282e0cbd2ce7c2efa7a58e821d..b347dfa18713c5c10be152b67db7371dcba02a22 100644
(file)
--- a/
src/journal/journalctl.c
+++ b/
src/journal/journalctl.c
@@
-371,18
+371,7
@@
static int parse_argv(int argc, char *argv[]) {
case 'b':
arg_boot = true;
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;
break;