Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Path-Class CPAN distribution.

Maintainer(s)' notes

I prefer that bugs & patches are filed on GitHub rather than on RT: https://github.com/kenahoo/Path-Class/issues. Thanks.

Report information
The Basics
Id: 45104
Status: resolved
Priority: 0/
Queue: Path-Class

People
Owner: Nobody in particular
Requestors: ittetsu.miyazaki [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 0.17



Subject: $dir->children() It becomes an error when there is a file(or dir) of "0"
--- Dir.pm Fri Apr 17 18:23:50 2009 +++ Dir.pm.patch Fri Apr 17 18:36:21 2009 @@ -164,7 +164,7 @@ my $dh = $self->open or Carp::croak( "Can't open directory $self: $!" ); my @out; - while (my $entry = $dh->read) { + while (defined(my $entry = $dh->read)) { # XXX What's the right cross-platform way to do this? next if (!$opts{all} && ($entry eq '.' || $entry eq '..')); push @out, $self->file($entry);
This is a very serious bug as it also affects the behaviour of recurse(). If I have this directory structure: files/V/M files/V/M/A files/V/M/A/u files/V/M/A/u/VMAucCZIg2mS3w7GA6CRt2JsxXpVoL files/o files/o/0 files/o/0/a files/o/0/a/j files/o/0/a/j/o0ajiGvT0ZqPtXF0Hgl1djoq0464OD recurse() skips THE ENTIRES "files/o" branch!!! Can this be fixed ASAP? I'm already used a patched Path::Class::Dir, but this would be better fixed on CPAN as soon as possible as it causes unpredictable behaviour. Michele.