提交 768a3eca 编写于 作者: R Richard Levitte

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: NRich Salz <rsalz@openssl.org>
上级 fc6076ca
......@@ -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{$_};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册