From: Fabian Maurer Date: Mon, 19 Nov 2018 21:11:10 +0000 (+0100) Subject: Generate tinc-up.bat on windows X-Git-Tag: release-1.1pre18~33 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=2bc475274bd467532a1de0cf708072292d215474;p=tinc Generate tinc-up.bat on windows --- diff --git a/src/invitation.c b/src/invitation.c index 35f236ed..29769686 100644 --- a/src/invitation.c +++ b/src/invitation.c @@ -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) {