From: Richard Levitte Date: Sat, 1 May 2021 05:29:27 +0000 (+0200) Subject: OpenSSL::Test: When prefixing command with $^X on Windows, fix it up! X-Git-Tag: openssl-3.0.0-alpha16~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d6c144e8d0c53e8947e3a76225ea33b3e29abc8;p=thirdparty%2Fopenssl.git OpenSSL::Test: When prefixing command with $^X on Windows, fix it up! The perl interpreter name itself might contain spaces and need quoting. __fixup_prg() does this for us. Fixes #14256 Co-authored-by: Tomáš Mráz Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/15084) --- diff --git a/util/perl/OpenSSL/Test.pm b/util/perl/OpenSSL/Test.pm index 4dc1bad1886..55f26cc6309 100644 --- a/util/perl/OpenSSL/Test.pm +++ b/util/perl/OpenSSL/Test.pm @@ -1232,7 +1232,7 @@ sub __wrap_cmd { # In the Windows case, we run perl explicitly. We might not # need it, but that depends on if the user has associated the # '.pl' extension with a perl interpreter, so better be safe. - @prefix = ( $^X, $std_wrapper ); + @prefix = ( __fixup_prg($^X), $std_wrapper ); } else { # Otherwise, we assume Unix semantics, and trust that the #! # line activates perl for us.