Skip Menu |

This queue is for tickets about the Net-FTP-File CPAN distribution.

Report information
The Basics
Id: 45216
Status: resolved
Priority: 0/
Queue: Net-FTP-File

People
Owner: Nobody in particular
Requestors: espen.seeberg [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.05
Fixed in: 0.06



Subject: Missing parameter causes isdir to die
If Net::FTP::isdir fails, $setmsg is called without the $ftp-argument causing it to die.
Subject: File.pm.patch
--- File.pm.old 2009-04-22 16:38:59.000000000 +0200 +++ File.pm.new 2009-04-22 16:40:13.000000000 +0200 @@ -91,7 +91,7 @@ sub Net::FTP::isdir { my $r = $ftp->cwd(@_); my $d = $ftp->cwd($c); my $e = $ftp->pwd(); - $setmsg->("Could not CWD into original directory $c") if $c ne $e || !$d; + $setmsg->($ftp,"Could not CWD into original directory $c") if $c ne $e || !$d; return undef if $_fatal; return $r ? 1 : 0; }