freebsd-ports/security/softether/files/patch-src__Mayaqua__Unix.c
Kurt Jaeger ff1c1f4c64 New port: security/softether
SoftEther VPN ("SoftEther" means "Software Ethernet") is a powerful,
multi-OS and easy-to-use multi-protocol VPN software. It supports
SSL-VPN (HTTPS), as well as OpenVPN, IPsec, L2TP, MS-SSTP, L2TPv3
and EtherIP tunneling protocols and has a clone function to support
OpenVPN clients.

WWW: http://www.softether.org

PR:		188437
Submitted by:	net@arrishq.net
Reviewed by:	marino
2015-09-01 16:30:28 +00:00

29 lines
826 B
C

--- src/Mayaqua/Unix.c.orig 2014-06-08 06:19:14 UTC
+++ src/Mayaqua/Unix.c
@@ -916,7 +916,7 @@
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)
@@ -2254,7 +2254,7 @@
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/.pid_%s", tmp1);
}
// Delete the PID file
@@ -2299,7 +2299,7 @@
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