mirror of
https://github.com/openssl/openssl.git
synced 2025-04-18 20:40:45 +08:00
OpenSSL::Test: Fix directory calculations in __cwd()
The previous fix contained a mistake, where any absolute path in %directories would be cleared away instead of just being left alone. Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
fc6076ca27
commit
768a3eca39
@ -854,7 +854,12 @@ sub __cwd {
|
||||
rmtree(".", { safe => 0, keep_root => 1 });
|
||||
}
|
||||
|
||||
%directories = %tmp_directories;
|
||||
# We put back new values carefully. Doing the obvious
|
||||
# %directories = ( %tmp_irectories )
|
||||
# will clear out any value that happens to be an absolute path
|
||||
foreach (keys %tmp_directories) {
|
||||
$directories{$_} = $tmp_directories{$_};
|
||||
}
|
||||
foreach (keys %tmp_ENV) {
|
||||
$ENV{$_} = $tmp_ENV{$_};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user