marsadm: avoid mutual symlink clobbering

This commit is contained in:
Thomas Schoebel-Theuer 2020-03-24 21:09:13 +01:00
parent ea804c111a
commit 762477849c

View File

@ -1187,7 +1187,7 @@ sub is_link_recent {
sub to_tmp {
my $path = shift;
$path =~ s:^(.*)/:$1/.tmp.:;
$path =~ s:^(.*)/:$1/.tmp.$$.:;
return $path;
}