From: Fabian Maurer Date: Mon, 19 Nov 2018 21:11:10 +0000 (+0100) Subject: Generate tinc-up.bat on windows X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2bc475274bd467532a1de0cf708072292d215474;p=oweals%2Ftinc.git Generate tinc-up.bat on windows --- diff --git a/src/invitation.c b/src/invitation.c index 35f236e..2976968 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) {