9fc0f6
From 6a4da7d980bf91207d07e2a7b1c4d1d2fe59e3e8 Mon Sep 17 00:00:00 2001
9fc0f6
From: =?UTF-8?q?Mantas=20Mikul=C4=97nas?= <grawity@gmail.com>
9fc0f6
Date: Wed, 13 Nov 2013 13:36:16 +0200
9fc0f6
Subject: [PATCH] activate: fix crash when -s is passed
9fc0f6
9fc0f6
getopt_long() was told to accept -s which was never implemented.
9fc0f6
---
9fc0f6
 src/activate/activate.c | 2 +-
9fc0f6
 1 file changed, 1 insertion(+), 1 deletion(-)
9fc0f6
9fc0f6
diff --git a/src/activate/activate.c b/src/activate/activate.c
9fc0f6
index 83d25b1..535b330 100644
9fc0f6
--- a/src/activate/activate.c
9fc0f6
+++ b/src/activate/activate.c
9fc0f6
@@ -344,7 +344,7 @@ static int parse_argv(int argc, char *argv[]) {
9fc0f6
         assert(argc >= 0);
9fc0f6
         assert(argv);
9fc0f6
 
9fc0f6
-        while ((c = getopt_long(argc, argv, "+hl:saE:", options, NULL)) >= 0)
9fc0f6
+        while ((c = getopt_long(argc, argv, "+hl:aE:", options, NULL)) >= 0)
9fc0f6
                 switch(c) {
9fc0f6
                 case 'h':
9fc0f6
                         help();