]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Un-break --auth-user-pass on windows
authorGert Doering <gert@greenie.muc.de>
Tue, 4 Aug 2015 12:53:16 +0000 (14:53 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 4 Aug 2015 15:44:31 +0000 (17:44 +0200)
commit0a1bb0f40f660efaabd7ee2a857791da6254337d
treeb61cdb81bcac6005ea6543485015d2a5aedf763e
parent0e58729cceb5da24c38d22468cd0362ab16938ed
Un-break --auth-user-pass on windows

Commit b131c7b974d9d4d3f0 introduced a check to create a meaningful
warning if we try to read a password after daemon()izing (by checking
whether stdin or stderr is connected to a tty).  For some reason this
breaks on Windows builds if run under GUI control - but since Windows
doesn't have this particular daemon() issue anyway, just #ifndef WIN32
the offending code.

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <1438692796-14663-1-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/10000
(cherry picked from commit 0ffd744332f51878c4df430ab14aca3126bdfc8a)
src/openvpn/misc.c