From ea5e091ea0732184c4cef82889b1a5d15f14828d Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 18 Jun 2012 20:39:04 +0200 Subject: Only use tmpdir if tmp_dir is really used. This fixes starting openvpn compiled as client only version of systems that have no /tmp (Android). --tmp-dir could only be set if P2MP_SERVER has been enabled too. Signed-off-by: Arne Schwabe Acked-by: Gert Doering Message-Id: 1340044749-10694-2-git-send-email-arne@rfc2549.org URL: http://article.gmane.org/gmane.network.openvpn.devel/6741 Signed-off-by: David Sommerseth --- src/openvpn/options.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/openvpn/options.h') diff --git a/src/openvpn/options.h b/src/openvpn/options.h index 9b6adea..ee0c69d 100644 --- a/src/openvpn/options.h +++ b/src/openvpn/options.h @@ -399,11 +399,13 @@ struct options struct plugin_option_list *plugin_list; #endif - const char *tmp_dir; + #if P2MP #if P2MP_SERVER + /* the tmp dir is for now only used in the P2P server context */ + const char *tmp_dir; bool server_defined; in_addr_t server_network; in_addr_t server_netmask; -- cgit