summaryrefslogblamecommitdiff
path: root/ftp/mirror/files/patch-ae
blob: 281d14cbb23be87f6333f7dae0557f1cc1039a72 (plain) (tree)
1
2
3
4
5
6
7

                                        
               
                


                         




                                                                                                         


                         



                                                                                      
*** 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;
  		}