From: Richard Levitte Date: Thu, 31 Aug 2017 17:03:03 +0000 (+0200) Subject: OpenSSL::Test::__fixup_prg: don't check program existence X-Git-Tag: OpenSSL_1_1_1-pre1~711 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=721614a2b240041f460cfa8473b8dbcde25a3ca6;p=oweals%2Fopenssl.git 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 (Merged from https://github.com/openssl/openssl/pull/4309) --- diff --git a/util/perl/OpenSSL/Test.pm b/util/perl/OpenSSL/Test.pm index f8fcbe906d..ffbb1968d4 100644 --- a/util/perl/OpenSSL/Test.pm +++ b/util/perl/OpenSSL/Test.pm @@ -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.