diff options
author | Richard Levitte <levitte@openssl.org> | 2024-06-05 21:43:01 +0200 |
---|---|---|
committer | Neil Horman <nhorman@openssl.org> | 2024-06-15 14:02:18 +0200 |
commit | 6e01d3114b77c82cf83a2bfe53f7ba97840fbe36 (patch) | |
tree | 453cc1bbeae51d443f554adbbb2ce615ca52a05a | |
parent | Fix memory leak in quic_trace.c (diff) | |
download | openssl-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-x | Configure | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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/; |