OpenSSL::Test::__fixup_prg: don't check program existence

The program will fail to run if it doesn't exist anyway, no need to
check its existence here.

Fixes #4306

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4309)
This commit is contained in:
Richard Levitte 2017-08-31 19:03:03 +02:00
parent e66b62b86e
commit 721614a2b2

View File

@ -1084,11 +1084,6 @@ sub __fixup_prg {
$prefix = ($prog =~ /^(?:[\$a-z0-9_]+:)?[<\[]/i ? "mcr " : "mcr []");
}
# We test if the program to use exists.
if ( ! -x $prog ) {
$prog = undef;
}
if (defined($prog)) {
# Make sure to quotify the program file on platforms that may
# have spaces or similar in their path name.