diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-16 21:04:04 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-16 21:04:04 +0000 |
commit | 4e6ea2c3b30d1ef2a7f2c68db5d82351f13b502f (patch) | |
tree | e87d56404d662c2bff7ca69affa0f1844fc833db /lib/ExtUtils/Manifest.pm | |
parent | 2216f30a5dac149d1cc2bcb601b9e69c1ff374bf (diff) | |
download | perl-4e6ea2c3b30d1ef2a7f2c68db5d82351f13b502f.tar.gz |
[win32] merge change#985 from maintbranch
p4raw-link: @985 on //depot/maint-5.004/perl: cb99a88456c6181881501e9f4881bc3d3d3e919e
p4raw-id: //depot/win32/perl@1002
Diffstat (limited to 'lib/ExtUtils/Manifest.pm')
-rw-r--r-- | lib/ExtUtils/Manifest.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ExtUtils/Manifest.pm b/lib/ExtUtils/Manifest.pm index 8437346c91..55570892f8 100644 --- a/lib/ExtUtils/Manifest.pm +++ b/lib/ExtUtils/Manifest.pm @@ -242,7 +242,11 @@ sub ln { link($srcFile, $dstFile); local($_) = $dstFile; # chmod a+r,go-w+X (except "X" only applies to u=x) my $mode= 0444 | (stat)[2] & 0700; - chmod( $mode | ( $mode & 0100 ? 0111 : 0 ), $_ ); + if (! chmod( $mode | ( $mode & 0100 ? 0111 : 0 ), $_ )) { + unlink $dstFile; + return; + } + 1; } sub best { |