1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-08 08:58:27 +03:00

systemctl: fix argument handling when invoked as "shutdown"

This commit is contained in:
Jan Synacek 2014-12-15 10:39:00 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent df17ddee08
commit 75836b9d20
Notes: Lennart Poettering 2015-02-12 13:06:35 +01:00
Backport: bugfix

View File

@ -6926,7 +6926,7 @@ static int shutdown_parse_argv(int argc, char *argv[]) {
assert(argc >= 0);
assert(argv);
while ((c = getopt_long(argc, argv, "HPrhkt:afFc", options, NULL)) >= 0)
while ((c = getopt_long(argc, argv, "HPrhkKt:afFc", options, NULL)) >= 0)
switch (c) {
case ARG_HELP:
@ -6967,6 +6967,8 @@ static int shutdown_parse_argv(int argc, char *argv[]) {
case 't':
case 'a':
case 'f':
case 'F':
/* Compatibility nops */
break;