projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af81c43
)
Fix parsing of -b flag
author
Todd C. Miller
<Todd.Miller@courtesan.com>
Thu, 28 Sep 2017 22:39:59 +0000
(16:39 -0600)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 1 Oct 2017 19:38:46 +0000
(21:38 +0200)
Only the short -b option is missing, --batch works as expected.
src/tincctl.c
patch
|
blob
|
history
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
9eb9a1b
..
766b769
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-168,7
+168,7
@@
static bool parse_options(int argc, char **argv) {
int r;
int option_index = 0;
- while((r = getopt_long(argc, argv, "+c:n:", long_options, &option_index)) != EOF) {
+ while((r = getopt_long(argc, argv, "+
b
c:n:", long_options, &option_index)) != EOF) {
switch (r) {
case 0: /* long option */
break;