]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix --askpass not allowing for password input via stdin
authorJames Geboski <jgeboski@gmail.com>
Tue, 8 Jan 2013 22:52:57 +0000 (17:52 -0500)
committerGert Doering <gert@greenie.muc.de>
Mon, 13 Jul 2015 19:41:37 +0000 (21:41 +0200)
commit4d093fff305a3054d88ae2c803665cf90d512c7e
tree15ac8e1c5e6d7f1b6783460be1a7506b6d074949
parentb131c7b974d9d4d3f0a6ab3a81719af6f7ab2ad6
Fix --askpass not allowing for password input via stdin

This resolves --askpass treating stdin as a file during the file access
check. In turn, this leads to openvpn failing to start if this option is
set to stdin.

By default, --askpass reads the certificate's password from stdin rather
than a file. Without passing the CHKACC_ACPTSTDIN flag to
check_file_access(), stdin is marked as being a nonexistent file.

Trac #248

Signed-off-by: James Geboski <jgeboski@gmail.com>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <55A41225.2020705@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9918
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 4e1e3ba1d8582a1e95dd6f9564e97c99784959a7)
src/openvpn/options.c