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 b2a6561..c165418 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