From: Todd C. Miller Date: Thu, 28 Sep 2017 22:39:59 +0000 (-0600) Subject: Fix parsing of -b flag X-Git-Tag: release-1.1pre16~70 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=453e6070ddfab2157f52536bdd7a79fc16f851f4 Fix parsing of -b flag Only the short -b option is missing, --batch works as expected. --- diff --git a/src/tincctl.c b/src/tincctl.c index 9eb9a1b0..766b769e 100644 --- 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, "+bc:n:", long_options, &option_index)) != EOF) { switch (r) { case 0: /* long option */ break;