From 2bc475274bd467532a1de0cf708072292d215474 Mon Sep 17 00:00:00 2001 From: Fabian Maurer Date: Mon, 19 Nov 2018 22:11:10 +0100 Subject: [PATCH] Generate tinc-up.bat on windows --- src/invitation.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.25.1