From: Andy Polyakov Date: Mon, 20 Dec 2004 13:18:56 +0000 (+0000) Subject: When re-linking files, really relink them. In other words, emulate ln -f. X-Git-Tag: BEN_FIPS_TEST_7~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=560f01fff95f1edd68ce54cb8fb4e8d6293d4b09;p=oweals%2Fopenssl.git When re-linking files, really relink them. In other words, emulate ln -f. --- 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";