openbsd-ports/net/mirror/patches/patch-ae
1998-06-10 10:26:22 +00:00

20 lines
566 B
Plaintext

*** ftp.pl.orig Mon Jun 8 14:11:39 1998
--- ftp.pl Mon Jun 8 14:11:42 1998
***************
*** 486,492 ****
return 0;
}
if( $ret == 1 ) {
! if( $response =~ m/^227 Entering Passive Mode \((\d+),(\d+),(\d+),(\d+),(\d+),(\d+)\)/ ){
$newhost = sprintf( "%d.%d.%d.%d", $1, $2, $3, $4 );
$newport = $5 * 256 + $6;
}
--- 486,492 ----
return 0;
}
if( $ret == 1 ) {
! if( $response =~ m/^227 .* \((\d+),(\d+),(\d+),(\d+),(\d+),(\d+)\)/ ){
$newhost = sprintf( "%d.%d.%d.%d", $1, $2, $3, $4 );
$newport = $5 * 256 + $6;
}