Fix tincctl start.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 15 Jul 2012 19:15:35 +0000 (21:15 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 15 Jul 2012 19:15:35 +0000 (21:15 +0200)
src/tincctl.c

index b2a6561f1654eb80955ba12fd4e7577708fc0a8f..c1654186bea9b9eb6a75b6cbfb2172390446af09 100644 (file)
@@ -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