From: Graham Barr Date: Wed, 18 Jun 2003 16:41:31 +0000 (+0000) Subject: Sync with libnet 1.16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=511d7d53b733d6c97ea4e94a7969fd306373ab38;p=p5sagit%2Fp5-mst-13.2.git Sync with libnet 1.16 p4raw-id: //depot/perl@19812 --- diff --git a/lib/Net/ChangeLog.libnet b/lib/Net/ChangeLog.libnet index cf6e64d..057db8e 100644 --- a/lib/Net/ChangeLog.libnet +++ b/lib/Net/ChangeLog.libnet @@ -1,3 +1,12 @@ +Change 820 on 2003/06/17 by (Graham Barr) + + Net::FTP + - Fix uninit warning when sending the ALLO command inside put + +Change 819 on 2003/06/13 by (Graham Barr) + + Release 1.15 + Change 818 on 2003/06/13 by (Graham Barr) Net::FTP diff --git a/lib/Net/FTP.pm b/lib/Net/FTP.pm index ce402b0..aac963b 100644 --- a/lib/Net/FTP.pm +++ b/lib/Net/FTP.pm @@ -22,7 +22,7 @@ use Net::Config; use Fcntl qw(O_WRONLY O_RDONLY O_APPEND O_CREAT O_TRUNC); # use AutoLoader qw(AUTOLOAD); -$VERSION = "2.70"; # $Id: //depot/libnet/Net/FTP.pm#76 $ +$VERSION = "2.71"; # $Id: //depot/libnet/Net/FTP.pm#78 $ @ISA = qw(Exporter Net::Cmd IO::Socket::INET); # Someday I will "use constant", when I am not bothered to much about @@ -713,7 +713,8 @@ sub _store_cmd # _store_cmd call, figure out if the local file is a regular file(not # a pipe, or device) and if so get the file size from stat, and send # an ALLO command before sending the STOR, STOU, or APPE command. - $ftp->_ALLO(-s _) if -f $loc; # no ALLO if sending data from a pipe + my $size = -f $local && -s _; # no ALLO if sending data from a pipe + $ftp->_ALLO($size) if $size; } croak("Bad remote filename '$remote'\n") if $remote =~ /[\r\n]/s; @@ -1766,6 +1767,6 @@ under the same terms as Perl itself. =for html
-I<$Id: //depot/libnet/Net/FTP.pm#76 $> +I<$Id: //depot/libnet/Net/FTP.pm#78 $> =cut