aboutsummaryrefslogtreecommitdiff
path: root/openvpn.c
diff options
context:
space:
mode:
authorDavid Sommerseth2011-11-18 13:21:43 +0100
committerDavid Sommerseth2011-11-23 11:53:22 +0100
commit9f6ac06b6d15e14566b820018f295233e831eb68 (patch)
tree0ffec7736d424eba0d05e605886b0ab1a1422f8e /openvpn.c
parent93626f2cf71b4803aa1248a928bfc1ac8c9da18b (diff)
downloadopenvpn-9f6ac06b6d15e14566b820018f295233e831eb68.zip
openvpn-9f6ac06b6d15e14566b820018f295233e831eb68.tar.gz
Make '--win-sys env' default
Without this patch, the default path used by OpenVPN is hard coded to C:\WINDOWS. As users might install Windows in a different directory, this approach will cause OpenVPN to malfunction in some configurations. OpenVPN have supported using the system path, by adding --win-sys env. This patch removes the hard coded approach and uses the --win-sys env approach by default instead. Trac-ticket: 66 URL: http://thread.gmane.org/gmane.network.openvpn.user/32508 Signed-off-by: David Sommerseth <davids@redhat.com> Tested-by: Samuli Seppänen <samuli@openvpn.net> Acked-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'openvpn.c')
-rw-r--r--openvpn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openvpn.c b/openvpn.c
index 520fda1..b4d6fd2 100644
--- a/openvpn.c
+++ b/openvpn.c
@@ -162,7 +162,7 @@ main (int argc, char *argv[])
/* initialize environmental variable store */
c.es = env_set_create (NULL);
#ifdef WIN32
- env_set_add_win32 (c.es);
+ set_win_sys_path_via_env (c.es);
#endif
#ifdef ENABLE_MANAGEMENT