Commit 5745f4ba97 for openssl.org

commit 5745f4ba97a51945e80b0a970949b112e5225a47
Author: Richard Levitte <levitte@openssl.foundation>
Date:   Tue Nov 17 17:04:01 2026 +0100

    wrap.pl: normalize the program path's slashes on Windows

    A program path coming from foreign tooling (such as cmake) may carry
    forward slashes, which CreateProcess chokes on for executables on
    Windows container bind mounts, breaking the consumer tests of the
    exported cmake config in the vs2013 compiler-zoo jobs.

    Assisted-by: Pi:moonshotai/kimi-k3
    Signed-off-by: Richard Levitte <levitte@openssl.foundation>
    Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
    Merge-date: Thu Nov 19 10:10:03 2026
    Merged-from: https://github.com/openssl/openssl/pull/33796

diff --git a/util/wrap.pl.in b/util/wrap.pl.in
index c26500ee8b..685bbd5573 100644
--- a/util/wrap.pl.in
+++ b/util/wrap.pl.in
@@ -118,6 +118,11 @@ if ($^O eq 'VMS') {
     @cmd = ( @ARGV );
 }

+# A program path coming from foreign tooling (such as cmake) may carry
+# forward slashes, which CreateProcess chokes on for executables on Windows.
+# Normalize to native separators.
+$cmd[0] =~ s|/|\\|g if $^O eq 'MSWin32';
+
 # exec() keeps this script's pid, which matters to callers that signal the
 # command they started: a test recipe using open3() is handed this pid, not
 # the command's, so with a subprocess the signal never reaches the command.