From: Aaron B. Dossett Date: Tue, 3 Oct 2000 11:03:04 +0000 (-0400) Subject: Re: PATCH for 20001003.004 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=18689f1df2fb576c03af71556727eae71184be94;p=p5sagit%2Fp5-mst-13.2.git Re: PATCH for 20001003.004 Message-Id: p4raw-id: //depot/perl@7135 --- diff --git a/installman b/installman index 72c76fd..1fd964d 100755 --- a/installman +++ b/installman @@ -244,7 +244,7 @@ sub link { sub rename { my($from,$to) = @_; - if (-f $to and not unlink($to)) { + if (-f $to and not &unlink($to)) { my($i); for ($i = 1; $i < 50; $i++) { last if CORE::rename($to, "$to.$i"); @@ -252,8 +252,8 @@ sub rename { warn("Cannot rename to `$to.$i': $!"), return 0 if $i >= 50; # Give up! } - link($from,$to) || return 0; - unlink($from); + &link($from,$to) || return 0; + &unlink($from) } sub chmod { diff --git a/installperl b/installperl index c65af5a..07c9bba 100755 --- a/installperl +++ b/installperl @@ -511,7 +511,7 @@ sub safe_unlink { sub safe_rename { my($from,$to) = @_; - if (-f $to and not unlink($to)) { + if (-f $to and not &unlink($to)) { my($i); for ($i = 1; $i < 50; $i++) { last if rename($to, "$to.$i"); @@ -520,7 +520,7 @@ sub safe_rename { if $i >= 50; # Give up! } link($from,$to) || return 0; - unlink($from); + &unlink($from); } sub link { @@ -625,16 +625,16 @@ sub installlib { #but we have to delete old *.al and *.ix files from the 5.000 #distribution: #This might not work because $archname might have changed. - unlink("$installarchlib/$name"); + &unlink("$installarchlib/$name"); } $packlist->{"$installlib/$name"} = { type => 'file' }; if (compare($_, "$installlib/$name") || $nonono) { - unlink("$installlib/$name"); + &unlink("$installlib/$name"); mkpath("$installlib/$dir", $verbose, 0777); # HP-UX (at least) needs to maintain execute permissions # on dynamically-loaded libraries. copy_if_diff($_, "$installlib/$name") - and chmod($name =~ /\.(so|$dlext)$/o ? 0555 : 0444, + and &chmod($name =~ /\.(so|$dlext)$/o ? 0555 : 0444, "$installlib/$name"); } }