chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df17dde
)
systemctl: fix argument handling when invoked as "shutdown"
author
Jan Synacek
<jsynacek@redhat.com>
Mon, 15 Dec 2014 09:39:00 +0000
(10:39 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 16 Dec 2014 05:30:34 +0000
(
00:30
-0500)
src/systemctl/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index 649fb5cde5d292fcab33d3528830271bd1f93ba4..4c4648f4c45a20b838f29e2e59738771ed36e88d 100644
(file)
--- 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, "HPrhk
K
t: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;