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 35f236e..2976968 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) {