[systemd-devel] [PATCH] activate: fix crash when -s is passed

Mantas Mikulėnas grawity at gmail.com
Wed Nov 13 03:36:16 PST 2013


getopt_long() was told to accept -s which was never implemented.
---
 src/activate/activate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/activate/activate.c b/src/activate/activate.c
index 07e46b9..dffc6e2 100644
--- a/src/activate/activate.c
+++ b/src/activate/activate.c
@@ -317,7 +317,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':
                         return help();
-- 
1.8.4.2



More information about the systemd-devel mailing list