mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 13:41:31 +00:00
activate: fix crash when -s is passed
getopt_long() was told to accept -s which was never implemented.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
b3b1073e2b
commit
3a1149687f
@@ -347,7 +347,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
assert(argc >= 0);
|
||||
assert(argv);
|
||||
|
||||
while ((c = getopt_long(argc, argv, "+hl:saE:", options, NULL)) >= 0)
|
||||
while ((c = getopt_long(argc, argv, "+hl:aE:", options, NULL)) >= 0)
|
||||
switch(c) {
|
||||
case 'h':
|
||||
help();
|
||||
|
||||
Reference in New Issue
Block a user