]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Attempt to re-open CONIN$ if stdin has been redirected on Windows
authorDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 23 Sep 2016 13:56:17 +0000 (14:56 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 23 Sep 2016 14:27:03 +0000 (15:27 +0100)
commitb40bb63b4b96e55385cbb4c38ed2193880d182b2
treef90b4568f70980a65bbb3294fa914fab2a37c8cf
parent2c7a54bb70bbd1381375d995b14fceb261838eb8
Attempt to re-open CONIN$ if stdin has been redirected on Windows

This should hopefully fix the problem with --passwd-on-stdin, described
in https://github.com/openconnect/openconnect-gui/issues/101

It doesn't actually work for me in wine, as I get 'Access Denied' when
trying to use ReadConsoleW() on the resulting handle. But wine is strange,
and this at least shouldn't make things any *worse*.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
main.c