From 721614a2b240041f460cfa8473b8dbcde25a3ca6 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 31 Aug 2017 19:03:03 +0200 Subject: [PATCH] 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) --- util/perl/OpenSSL/Test.pm | 5 ----- 1 file changed, 5 deletions(-) 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. -- 2.25.1