summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2024-06-05 21:43:01 +0200
committerNeil Horman <nhorman@openssl.org>2024-06-15 14:02:18 +0200
commit6e01d3114b77c82cf83a2bfe53f7ba97840fbe36 (patch)
tree453cc1bbeae51d443f554adbbb2ce615ca52a05a
parentFix memory leak in quic_trace.c (diff)
downloadopenssl-6e01d3114b77c82cf83a2bfe53f7ba97840fbe36.tar.xz
openssl-6e01d3114b77c82cf83a2bfe53f7ba97840fbe36.zip
Configure: make absolutedir() use rel2abs() on Windows too
perl's realpath() seems to be buggy on Windows, so we turn to rel2abs() there as well. Fixes #23593 Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24569)
-rwxr-xr-xConfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/Configure b/Configure
index c15f5b2fff..73a95a000d 100755
--- a/Configure
+++ b/Configure
@@ -3522,6 +3522,13 @@ sub absolutedir {
return rel2abs($dir);
}
+ # realpath() on Windows seems to check if the directory actually exists,
+ # which isn't what is wanted here. All we want to know is if a directory
+ # spec is absolute, not if it exists.
+ if ($^O eq "MSWin32") {
+ return rel2abs($dir);
+ }
+
# We use realpath() on Unix, since no other will properly clean out
# a directory spec.
use Cwd qw/realpath/;