diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-05-12 20:31:43 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-05-12 20:31:43 +0000 |
commit | 1bda73a7b0f45a2502ae93e33e30b98152d893f3 (patch) | |
tree | 7bdf8f59ec2c6443a071a0217f78f8a999596030 /misc.c | |
parent | Misc XGUI fixes. (diff) | |
download | openvpn-1bda73a7b0f45a2502ae93e33e30b98152d893f3.tar.xz |
Moved branch into official BETA21 position.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2959 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r-- | misc.c | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -22,12 +22,6 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifdef WIN32 -#include "config-win32.h" -#else -#include "config.h" -#endif - #include "syshead.h" #include "buffer.h" @@ -206,7 +200,7 @@ run_up_down (const char *command, ASSERT (arg); buf_printf (&cmd, - "%s %d %d %s %s %s", + "\"%s\" %d %d %s %s %s", arg, tun_mtu, link_mtu, ifconfig_local, ifconfig_remote, @@ -225,7 +219,7 @@ run_up_down (const char *command, setenv_str (es, "script_type", script_type); buf_printf (&cmd, - "%s %s %d %d %s %s %s", + "%s \"%s\" %d %d %s %s %s", command, arg, tun_mtu, link_mtu, @@ -438,6 +432,7 @@ openvpn_system (const char *command, const struct env_set *es, unsigned int flag void warn_if_group_others_accessible (const char* filename) { +#ifndef WIN32 #ifdef HAVE_STAT #if ENABLE_INLINE_FILES if (strcmp (filename, INLINE_FILE_TAG)) @@ -455,6 +450,7 @@ warn_if_group_others_accessible (const char* filename) } } #endif +#endif } /* @@ -1230,7 +1226,7 @@ get_user_pass (struct user_pass *up, if ((flags & GET_USER_PASS_NOFATAL) != 0) return false; else - msg (M_FATAL, "ERROR: could not read %s username/password/ok from management interface", prefix); + msg (M_FATAL, "ERROR: could not read %s username/password/ok/string from management interface", prefix); } } else |