X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fftp.pl;h=fd78162a404f37c677c9bd6e8b431892d68bdb74;hb=d3cf3892100cfc5e4143b94111b619e8eb2b1937;hp=f366cdb6fdb8c127c4bbca60f6dbe9f3fd05c1f2;hpb=c296029969658ed2c8d9a223d4b09026463ca970;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/ftp.pl b/lib/ftp.pl index f366cdb..fd78162 100644 --- a/lib/ftp.pl +++ b/lib/ftp.pl @@ -88,8 +88,9 @@ # Initial revision # -require 'chat2.pl'; -eval "require 'socket.ph'" || eval "require 'sys/socket.ph'" || die "socket.ph missing: $!\n"; +require 'chat2.pl'; # into main +eval "require 'socket.ph'" || eval "require 'sys/socket.ph'" + || die "socket.ph missing: $!\n"; package ftp; @@ -140,7 +141,7 @@ $real_site = ""; $ftp_show = 0; sub ftp'debug { - $ftp_show = @_[0]; + $ftp_show = $_[0]; # if( $ftp_show ){ # print STDERR "ftp debugging on\n"; # } @@ -148,7 +149,7 @@ sub ftp'debug sub ftp'set_timeout { - $timeout = @_[0]; + $timeout = $_[0]; $timeout_open = $timeout; $timeout_read = 20 * $timeout; if( $ftp_show ){ @@ -245,7 +246,7 @@ sub ftp'login local( $remote_user, $remote_password ) = @_; if( $proxy ){ - &ftp'send( "USER $remote_user@$site" ); + &ftp'send( "USER $remote_user\@$site" ); } else { &ftp'send( "USER $remote_user" );