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>
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{$_};
}