From: Guus Sliepen Date: Sun, 17 Apr 2016 12:36:29 +0000 (+0200) Subject: Use ifconfig_header(). X-Git-Tag: release-1.1pre12~12 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=097c69fc6a223213302fe9ffbe00a4c05357e660;p=tinc Use ifconfig_header(). --- diff --git a/src/invitation.c b/src/invitation.c index 07594ff6..35e8e492 100644 --- a/src/invitation.c +++ b/src/invitation.c @@ -613,8 +613,7 @@ make_names: return false; } - fprintf(fup, "#!/bin/sh\n"); - long fuppos = ftell(fup); + ifconfig_header(fup); // Filter first chunk on approved keywords, split between tinc.conf and hosts/Name // Generate a tinc-up script from Ifconfig and Route keywords.