X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincctl.c;h=c1654186bea9b9eb6a75b6cbfb2172390446af09;hb=36dee4c539521578005eed5e58b4803b73f0c889;hp=b2a6561f1654eb80955ba12fd4e7577708fc0a8f;hpb=439069bda62b25baaabeb765ac0557efa57b6cfb;p=tinc diff --git a/src/tincctl.c b/src/tincctl.c index b2a6561f..c1654186 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -655,6 +655,9 @@ static bool connect_tincd() { static int cmd_start(int argc, char *argv[]) { int i, j; char *c; + + argc += optind; + argv -= optind; char *slash = strrchr(argv[0], '/'); #ifdef HAVE_MINGW