Subject: | incorrect handling of directory entry names which are numbers |
The code which scans the directory listing does not take into account
the fact that directory entry names may be numbers. Here's an actual
example:
ftp://cdaftp.cfa.harvard.edu/pub/byobsid/0
The problem is at line 111 in Net::FTP::Find::Mixin:
107 local (
108 $permissions, $link, $user, $group,
$size, $month, $mday, $year_or_time, $_
109 ) = split(/\s+/, $e, 9);
110
111 next unless $_;
It should check for existence, e.g. "next unless defined $_"