From 560f01fff95f1edd68ce54cb8fb4e8d6293d4b09 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Mon, 20 Dec 2004 13:18:56 +0000 Subject: [PATCH] When re-linking files, really relink them. In other words, emulate ln -f. --- util/mklink.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/util/mklink.pl b/util/mklink.pl index 9386da7aa4..c8653cecc3 100755 --- a/util/mklink.pl +++ b/util/mklink.pl @@ -52,6 +52,7 @@ $symlink_exists=eval {symlink("",""); 1}; foreach $file (@files) { my $err = ""; if ($symlink_exists) { + unlink "$from/$file"; symlink("$to/$file", "$from/$file") or $err = " [$!]"; } else { unlink "$from/$file"; -- 2.25.1