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