Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/ftp/mirror/files/patch-ftp.pl
18157 views
1
*** ftp.pl.orig Fri Jun 5 11:10:27 1998
2
--- ftp.pl Fri Sep 10 10:40:50 1999
3
***************
4
*** 150,156 ****
5
# (Normally set elsewhere - this is just a sensible default.)
6
# Is expected to take count and code as arguments and prompt
7
# for the secret key with 'password:' on stdout and then print the password.
8
! $ftp'keygen_prog = '/usr/local/bin/key';
9
10
# Uncomment to turn on lots of debugging.
11
# &debug( 10 );
12
--- 150,156 ----
13
# (Normally set elsewhere - this is just a sensible default.)
14
# Is expected to take count and code as arguments and prompt
15
# for the secret key with 'password:' on stdout and then print the password.
16
! $ftp'keygen_prog = '/usr/bin/key';
17
18
# Uncomment to turn on lots of debugging.
19
# &debug( 10 );
20
***************
21
*** 486,492 ****
22
return 0;
23
}
24
if( $ret == 1 ) {
25
! if( $response =~ m/^227 Entering Passive Mode \((\d+),(\d+),(\d+),(\d+),(\d+),(\d+)\)/ ){
26
$newhost = sprintf( "%d.%d.%d.%d", $1, $2, $3, $4 );
27
$newport = $5 * 256 + $6;
28
}
29
--- 486,492 ----
30
return 0;
31
}
32
if( $ret == 1 ) {
33
! if( $response =~ m/^227 .* \((\d+),(\d+),(\d+),(\d+),(\d+),(\d+)\)/ ){
34
$newhost = sprintf( "%d.%d.%d.%d", $1, $2, $3, $4 );
35
$newport = $5 * 256 + $6;
36
}
37
38