X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnames.c;h=37708f81169cc77d4c093cbee10c04c44b8b8d4f;hb=2d2e94406c5f595eff67a01ee6bb1190f77c37ff;hp=a631ad97e7fcde60c0216e66d7324bf55952db72;hpb=918067f117d5b9983a8f2273fd81983362a2ff88;p=tinc diff --git a/src/names.c b/src/names.c index a631ad97..37708f81 100644 --- a/src/names.c +++ b/src/names.c @@ -26,6 +26,7 @@ char *netname = NULL; char *confdir = NULL; /* base configuration directory */ char *confbase = NULL; /* base configuration directory for this instance of tinc */ +bool confbase_given; char *identname = NULL; /* program name for syslog */ char *unixsocketname = NULL; /* UNIX socket location */ char *logfilename = NULL; /* log file location */ @@ -41,6 +42,7 @@ void make_names(void) { char installdir[1024] = ""; DWORD len = sizeof installdir; #endif + confbase_given = confbase; if(netname && confbase) logger(DEBUG_ALWAYS, LOG_INFO, "Both netname and configuration directory given, using the latter...");