mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 15:58:29 +00:00
systemctl: fix argument handling when invoked as "shutdown"
(cherry picked from commit 75836b9d20)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
f60acf162d
commit
46ae5b6431
@@ -6387,7 +6387,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:
|
||||
@@ -6428,6 +6428,8 @@ static int shutdown_parse_argv(int argc, char *argv[]) {
|
||||
|
||||
case 't':
|
||||
case 'a':
|
||||
case 'f':
|
||||
case 'F':
|
||||
/* Compatibility nops */
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user