Josh Cepek wrote:
Under Windows, when run_up_down() from misc.c executes the --up
script, the position of the parameters depends on the device name of
the tun/tap adapter. For example, a default installation creates a
device that may be called "Local Area Connection 2" (number varies),
but this device name isn't quoted when passed to the --up program.
This makes determining the actual name (or any other parameters for
that matter) nearly impossible.
I've attached a patch that quotes the device argument in the
run_up_down() function insuring it is always the first argument to the
--up script no matter how many spaces appear in the device name.
I've merged this patch into the subversion directory for the 2.1 series:
http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn/
It will be included in 2.1-rc8.
James