Skip Menu |

This queue is for tickets about the Directory-Iterator-PP CPAN distribution.

Report information
The Basics
Id: 80334
Status: resolved
Priority: 0/
Queue: Directory-Iterator-PP

People
Owner: steve.sanbeg [...] gmail.com
Requestors: NEILB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.000
Fixed in: 1.000001



Subject: Fails with a message about lstat
When using the module on MacOSX 10.7.5, I get the following message: The stat preceding -l _ wasn't an lstat at /usr/local/lib/perl5/site_perl/5.16.1/Directory/Iterator/PP.pm line 42. The offending code is: my $path = File::Spec->join("$self->{dir}", $de); if ( -d $path and ! -l _) { If I change this to: my $path = File::Spec->join("$self->{dir}", $de); return undef unless lstat($path); if ( -d _ and ! -l _) { Then everything runs fine. Not sure if that's the best/right fix, but hey, it works for me :-) Cheers, Neil
I've never seen that error, but your fix seems reasonable. Did you see that in make test, or was it only reproduceable elsewhere? Thanks -Steve
Show quoted text
> I've never seen that error, but your fix seems reasonable. > > Did you see that in make test, or was it only reproduceable elsewhere?
Did see it in make test (though have to admit I wasn't paying super close attention to that, just saw that it passed). I hit this error in real usage. Thanks for releasing the fix so quickly! Cheers, Neil