ports/security/softether5/files/patch-chain-certs-dir
Koichiro Iwao 7acdbb0cc1 security/softether5: Avoid hardcoded path in patches
Respect SE_LOGDIR, SE_DBDIR defined in Makefile. Unintended replaced with
hardcoded path by `make makepatch`.

While here, bump PORTREVISION to force rebuild with these paths.

Sponsored by:	HAW International, Inc.
2019-02-25 05:34:12 +00:00

31 lines
1 KiB
Text

--- src/Cedar/Protocol.c.orig 2019-02-03 19:43:50 UTC
+++ src/Cedar/Protocol.c
@@ -58,7 +58,7 @@ bool TryGetRootCertChain(LIST *o, X *x, bool auto_save
wchar_t exedir[MAX_SIZE];
GetExeDirW(exedir, sizeof(exedir));
- CombinePathW(dirname, sizeof(dirname), exedir, L"chain_certs");
+ CombinePathW(dirname, sizeof(dirname), L"%%SE_DBDIR%%", L"chain_certs");
MakeDirExW(dirname);
if (auto_save)
@@ -365,7 +365,7 @@ void AddAllChainCertsToCertList(LIST *o)
GetExeDirW(exedir, sizeof(exedir));
- CombinePathW(dirname, sizeof(dirname), exedir, L"chain_certs");
+ CombinePathW(dirname, sizeof(dirname), L"%%SE_DBDIR%%", L"chain_certs");
MakeDirExW(dirname);
--- src/Mayaqua/Network.c.orig 2019-02-03 19:43:50 UTC
+++ src/Mayaqua/Network.c
@@ -11520,7 +11520,7 @@ void AddChainSslCertOnDirectory(struct ssl_ctx_st *ctx
GetExeDirW(exedir, sizeof(exedir));
- CombinePathW(dirname, sizeof(dirname), exedir, L"chain_certs");
+ CombinePathW(dirname, sizeof(dirname), L"%%SE_DBDIR%%", L"chain_certs");
MakeDirExW(dirname);