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)
(cherry picked from commit 6e01d3114b
)
This commit is contained in:
parent
4cdc083185
commit
a58d2a69b5
1 changed files with 7 additions and 0 deletions
|
@ -3507,6 +3507,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/;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue