Generate tinc-up.bat on windows
authorFabian Maurer <dark.shadow4@web.de>
Mon, 19 Nov 2018 21:11:10 +0000 (22:11 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 30 Nov 2018 13:36:28 +0000 (14:36 +0100)
src/invitation.c

index 35f236ed8dbb00cad9c0e9ca3b7494199667d1d5..29769686e96f1cf775929a9cc0ec7e85e690a024 100644 (file)
@@ -987,7 +987,12 @@ ask_netname:
 
        char filename2[PATH_MAX];
        snprintf(filename, sizeof(filename), "%s" SLASH "tinc-up.invitation", confbase);
+
+#ifdef HAVE_MINGW
+       snprintf(filename2, sizeof(filename2), "%s" SLASH "tinc-up.bat", confbase);
+#else
        snprintf(filename2, sizeof(filename2), "%s" SLASH "tinc-up", confbase);
+#endif
 
        if(valid_tinc_up) {
                if(tty) {