termux-packages/root-packages/openvpn/src-openvpn-options.c.patch

13 lines
456 B
Diff
Raw Permalink Normal View History

2019-09-18 13:48:31 +02:00
diff -uNr openvpn-2.4.7/src/openvpn/options.c openvpn-2.4.7.mod/src/openvpn/options.c
--- openvpn-2.4.7/src/openvpn/options.c 2019-02-20 14:28:23.000000000 +0200
+++ openvpn-2.4.7.mod/src/openvpn/options.c 2019-09-18 14:41:05.337638310 +0300
@@ -898,7 +898,7 @@
o->tmp_dir = getenv("TMPDIR");
if (!o->tmp_dir)
{
- o->tmp_dir = "/tmp";
+ o->tmp_dir = "@TERMUX_PREFIX@/tmp";
}
#endif /* _WIN32 */
#endif /* P2MP_SERVER */