chiark / gitweb /
systemctl: fix argument handling when invoked as "shutdown"
authorJan Synacek <jsynacek@redhat.com>
Mon, 15 Dec 2014 09:39:00 +0000 (10:39 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Dec 2014 05:30:34 +0000 (00:30 -0500)
src/systemctl/systemctl.c

index 649fb5cde5d292fcab33d3528830271bd1f93ba4..4c4648f4c45a20b838f29e2e59738771ed36e88d 100644 (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;