27 lines
904 B
Diff
27 lines
904 B
Diff
|
From ed6556920c1a6cdfe0bb04e806bc1f54ea191545 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Mantas=20Mikul=C4=97nas?= <grawity@gmail.com>
|
||
|
Date: Wed, 13 Nov 2013 13:36:16 +0200
|
||
|
Subject: [PATCH] activate: fix crash when -s is passed
|
||
|
|
||
|
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 src/activate/activate.c src/activate/activate.c
|
||
|
index 537626d..2639d1c 100644
|
||
|
--- src/activate/activate.c
|
||
|
+++ src/activate/activate.c
|
||
|
@@ -344,7 +344,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();
|
||
|
--
|
||
|
1.7.9.2
|
||
|
|