X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=fda20c4b4086a5d7d9260bd1d6db9ccbaf310e1b;hp=b6a6c29cd39384d14df10f437a4acd3694046801;hb=0821e327f23d81e4b001479b9de62151a3c0a1bc;hpb=09d60499af3acef2ba9bd7be15e8d1c44249f8d5 diff --git a/src/tincd.c b/src/tincd.c index b6a6c29c..fda20c4b 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -438,14 +438,14 @@ static void make_names(void) { #ifdef HAVE_MINGW if(!RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\tinc", 0, KEY_READ, &key)) { if(!RegQueryValueEx(key, NULL, 0, 0, (LPBYTE)installdir, &len)) { - if(!logfilename) - xasprintf(&logfilename, "%s/log/%s.log", identname); if(!confbase) { if(netname) xasprintf(&confbase, "%s/%s", installdir, netname); else xasprintf(&confbase, "%s", installdir); } + if(!logfilename) + xasprintf(&logfilename, "%s/tinc.log", confbase); } RegCloseKey(key); if(*installdir)