From: ammon@rhythm.com Date: Tue, 19 Sep 2006 20:56:32 +0000 (-0700) Subject: [perl #40369] File::Find mishandles non-dangling symlinks X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fab43c1bb262944cb8f1d820af87e47b89cd3e12;p=p5sagit%2Fp5-mst-13.2.git [perl #40369] File::Find mishandles non-dangling symlinks From: ammon@rhythm.com (via RT) Message-ID: p4raw-id: //depot/perl@28876 --- diff --git a/lib/File/Find.pm b/lib/File/Find.pm index 213b4c0..864c207 100644 --- a/lib/File/Find.pm +++ b/lib/File/Find.pm @@ -1119,7 +1119,7 @@ sub _find_dir_symlnk($$$) { # ignore if invalid symlink unless (defined $new_loc) { - if ($dangling_symlinks) { + if (!defined -l _ && $dangling_symlinks) { if (ref $dangling_symlinks eq 'CODE') { $dangling_symlinks->($FN, $dir_pref); } else {