mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-04 17:47:03 +03:00
journalct: do no allow --this-boot to take arguments
Before --this-boot was deprecated in a331b5e6d47243, it did not take any arguments.
This commit is contained in:
parent
f3bd7561c5
commit
8453f06257
@ -348,6 +348,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
ARG_NO_FULL,
|
||||
ARG_NO_TAIL,
|
||||
ARG_NEW_ID128,
|
||||
ARG_THIS_BOOT,
|
||||
ARG_LIST_BOOTS,
|
||||
ARG_USER,
|
||||
ARG_SYSTEM,
|
||||
@ -392,9 +393,9 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
{ "new-id128", no_argument, NULL, ARG_NEW_ID128 },
|
||||
{ "quiet", no_argument, NULL, 'q' },
|
||||
{ "merge", no_argument, NULL, 'm' },
|
||||
{ "this-boot", no_argument, NULL, ARG_THIS_BOOT }, /* deprecated */
|
||||
{ "boot", optional_argument, NULL, 'b' },
|
||||
{ "list-boots", no_argument, NULL, ARG_LIST_BOOTS },
|
||||
{ "this-boot", optional_argument, NULL, 'b' }, /* deprecated */
|
||||
{ "dmesg", no_argument, NULL, 'k' },
|
||||
{ "system", no_argument, NULL, ARG_SYSTEM },
|
||||
{ "user", no_argument, NULL, ARG_USER },
|
||||
@ -544,6 +545,10 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
arg_merge = true;
|
||||
break;
|
||||
|
||||
case ARG_THIS_BOOT:
|
||||
arg_boot = true;
|
||||
break;
|
||||
|
||||
case 'b':
|
||||
arg_boot = true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user