Report "error" (usually just "File exists", which is harmless)

when symlink() fails.
This commit is contained in:
Bodo Möller 2000-06-14 10:09:46 +00:00
parent 24bec03beb
commit 9ef876f269

View File

@ -49,7 +49,7 @@ my $to = join('/', @to_path);
my $file;
foreach $file (@files) {
# print "ln -s $to/$file $from/$file\n";
symlink("$to/$file", "$from/$file");
print $file . " => $from/$file\n";
my $err = "";
symlink("$to/$file", "$from/$file") or $err = " [$!]";
print $file . " => $from/$file$err\n";
}