0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-20 12:02:28 +02:00

Don't look for 'stdin' file when using --auth-user-pass

This argument allows the keyword 'stdin' to indicate that the input
is to be read from the stdin.  Don't check for file existence if the
file name is set to 'stdin'

Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
David Sommerseth 2011-12-02 16:32:56 +01:00
parent e7d1ac82f9
commit 870cf166ad

View File

@ -2688,8 +2688,9 @@ options_postprocess_filechecks (struct options *options)
errs |= check_file_access (CHKACC_FILE, options->management_user_pass, R_OK,
"--management user/password file");
#endif /* ENABLE_MANAGEMENT */
errs |= check_file_access (CHKACC_FILE, options->auth_user_pass_file, R_OK,
"--auth-user-pass");
if( options->auth_user_pass_file && strcmp(options->auth_user_pass_file, "stdin") != 0 )
errs |= check_file_access (CHKACC_FILE, options->auth_user_pass_file, R_OK,
"--auth-user-pass");
/* ** System related ** */