summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-21 03:34:39 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-21 03:34:39 +0000
commit719911cc0ef424f213e0e6e02359decafbe1180f (patch)
tree1689e99ccc3e6fc0d8f4183bb5f3799193da04e5 /lib
parentbaba61acfed8013061d8c7012efc98fa91896d05 (diff)
downloadperl-719911cc0ef424f213e0e6e02359decafbe1180f.tar.gz
$File::Find::name doesn't reflect top level files
correctly (from Simon Cozens <simon@brecon.co.uk>) p4raw-id: //depot/perl@5849
Diffstat (limited to 'lib')
-rw-r--r--lib/File/Find.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/File/Find.pm b/lib/File/Find.pm
index 22a8ab3aed..ac73f1b5eb 100644
--- a/lib/File/Find.pm
+++ b/lib/File/Find.pm
@@ -349,7 +349,7 @@ sub _find_opt {
unless ($Is_Dir) {
unless (($_,$dir) = File::Basename::fileparse($abs_dir)) {
- ($dir,$_) = ('.', $top_item);
+ ($dir,$_) = ('./', $top_item);
}
$abs_dir = $dir;
@@ -370,9 +370,9 @@ sub _find_opt {
warn "Couldn't chdir $abs_dir: $!\n";
next Proc_Top_Item;
}
-
- $name = $abs_dir;
-
+
+ $name = $abs_dir . $_;
+
&$wanted_callback;
}