]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix Windows script execution when called from script hooks
authorJosh Cepek <josh.cepek@usa.net>
Thu, 16 May 2013 14:09:23 +0000 (09:09 -0500)
committerGert Doering <gert@greenie.muc.de>
Sun, 19 May 2013 12:23:30 +0000 (14:23 +0200)
commita19e35a95bf4a0177ae115535a3755d3acd894e9
treedde20ef770b51aa237c7e5680ae530f3466b3aef
parenteb95f367348f4c2aae301cfa7c3adc8e0f2e711e
Fix Windows script execution when called from script hooks

Console applications under Windows, such as batch scripts, require the
CREATE_NO_WINDOW process flag when run without an actual console window
present. This change allows such scripts to execute and impact the hook
status by way of their return code.

Fixes bug #240.

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Acked-by: Heiko Hund <heiko.hund@sophos.com>
Message-Id: <kn2pao$5sv$1@ger.gmane.org>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7594
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/win32.c