chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df49cca
)
activate: fix crash when -s is passed
author
Mantas Mikulėnas
<grawity@gmail.com>
Wed, 13 Nov 2013 11:36:16 +0000
(13:36 +0200)
committer
David Strauss
<david@davidstrauss.net>
Wed, 13 Nov 2013 14:20:43 +0000
(
00:20
+1000)
getopt_long() was told to accept -s which was never implemented.
src/activate/activate.c
patch
|
blob
|
history
diff --git
a/src/activate/activate.c
b/src/activate/activate.c
index 537626d390c3e47d22c56a56f7ab02df281561a6..2639d1cd53b4a08b9e989696d19fad1aa2975d28 100644
(file)
--- a/
src/activate/activate.c
+++ b/
src/activate/activate.c
@@
-319,7
+319,7
@@
static int parse_argv(int argc, char *argv[]) {
assert(argc >= 0);
assert(argv);
- while ((c = getopt_long(argc, argv, "+hl:
s
aE:", options, NULL)) >= 0)
+ while ((c = getopt_long(argc, argv, "+hl:aE:", options, NULL)) >= 0)
switch(c) {
case 'h':
return help();