mirror of
https://github.com/schoebel/mars
synced 2025-02-16 12:06:51 +00:00
marsadm: use lamport clock as mtime of symbolic links
Fixes the following bug: Symbolic links which are created in userspace get the current time as mtime.
This commit is contained in:
parent
c877c43eff
commit
2e441d0d11
@ -96,7 +96,7 @@ sub finish_links {
|
||||
}
|
||||
while (my $link = shift @link_list) {
|
||||
my $link_tmp = to_tmp($link);
|
||||
utime($timestamp, $timestamp, $link_tmp);
|
||||
system("touch -h -d \"\@$timestamp\" $link_tmp") == 0 or ldie "cannot set mtime on symlink '$link_tmp'\n";
|
||||
rename($link_tmp, $link) or ldie "cannot finalize symlink '$link'\n";
|
||||
if ($verbose) {
|
||||
my $target = readlink($link);
|
||||
|
Loading…
Reference in New Issue
Block a user