When re-linking files, really relink them. In other words, emulate ln -f.
authorAndy Polyakov <appro@openssl.org>
Mon, 20 Dec 2004 13:18:56 +0000 (13:18 +0000)
committerAndy Polyakov <appro@openssl.org>
Mon, 20 Dec 2004 13:18:56 +0000 (13:18 +0000)
util/mklink.pl

index 9386da7aa4c3a3f0f02e3d32583c06b0684f6e8b..c8653cecc37852358a936fba593ab2c0af35de30 100755 (executable)
@@ -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";