From: Jan Synacek Date: Mon, 15 Dec 2014 09:39:00 +0000 (+0100) Subject: systemctl: fix argument handling when invoked as "shutdown" X-Git-Tag: v219~967 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=75836b9d2071aab978ee78d7d797126a18a32052;p=elogind.git systemctl: fix argument handling when invoked as "shutdown" --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 649fb5cde..4c4648f4c 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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;