ports/security/softether-devel/files/patch-src__Mayaqua__Unix.c
Koichiro Iwao 2119784436 security/softether-devel: update to v4.27-9668-beta
As security/softether and -devel are created and maintained by different
people for a long time, there was a lot of difference between and no
consistency between both ports.

I grab both ports and renew this port based on security/softether. Now
there're least differences such as VERSION, COMMENT, CONFLICTS between
both. To make both ports consistent, I quit fetching from GitHub. Using
upstream site[1] instead. Upstream distributes -rtm and -beta suffixed
tarballs. -rtm corresponds to security/softether, -beta does to
security/softether-devel now.

[1] https://www.softether-download.com/

Approved by:	mentors (implicit)
2018-11-05 02:57:19 +00:00

30 lines
948 B
C

--- src/Mayaqua/Unix.c.orig 2016-05-03 06:16:53 UTC
+++ src/Mayaqua/Unix.c
@@ -931,7 +931,7 @@ void *UnixNewSingleInstance(char *instan
GetExeDir(dir, sizeof(dir));
// File name generation
- Format(name, sizeof(name), "%s/.%s", dir, tmp);
+ Format(name, sizeof(name), "/var/db/softether/.%s", tmp);
fd = open(name, O_WRONLY);
if (fd == -1)
@@ -2320,7 +2320,7 @@ void UnixGenPidFileName(char *name, UINT
Hash(hash, exe_name, StrLen(exe_name), false);
BinToStr(tmp1, sizeof(tmp1), hash, sizeof(hash));
- Format(name, size, "%s/.pid_%s", dir, tmp1);
+ Format(name, size, "/var/db/softether/%s.pid", tmp1);
}
// Delete the PID file
@@ -2365,7 +2365,7 @@ void UnixGenCtlFileName(char *name, UINT
Hash(hash, exe_name, StrLen(exe_name), false);
BinToStr(tmp1, sizeof(tmp1), hash, sizeof(hash));
- Format(name, size, "%s/.ctl_%s", dir, tmp1);
+ Format(name, size, "/var/db/softether/.ctl_%s", tmp1);
}
// Write the CTL file