+Change 820 on 2003/06/17 by <gbarr@pobox.com> (Graham Barr)
+
+ Net::FTP
+ - Fix uninit warning when sending the ALLO command inside put
+
+Change 819 on 2003/06/13 by <gbarr@pobox.com> (Graham Barr)
+
+ Release 1.15
+
Change 818 on 2003/06/13 by <gbarr@pobox.com> (Graham Barr)
Net::FTP
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
# _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;
=for html <hr>
-I<$Id: //depot/libnet/Net/FTP.pm#76 $>
+I<$Id: //depot/libnet/Net/FTP.pm#78 $>
=cut