mirror of
https://github.com/schoebel/mars
synced 2025-01-14 02:50:48 +00:00
marsadm: avoid mutual symlink clobbering
This commit is contained in:
parent
ea804c111a
commit
762477849c
@ -1187,7 +1187,7 @@ sub is_link_recent {
|
||||
|
||||
sub to_tmp {
|
||||
my $path = shift;
|
||||
$path =~ s:^(.*)/:$1/.tmp.:;
|
||||
$path =~ s:^(.*)/:$1/.tmp.$$.:;
|
||||
return $path;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user