|
Lines 20-25
Link Here
|
| 20 |
Recommended reading explaining FTP details and quirks: |
20 |
Recommended reading explaining FTP details and quirks: |
| 21 |
http://cr.yp.to/ftp.html (by D.J. Bernstein) |
21 |
http://cr.yp.to/ftp.html (by D.J. Bernstein) |
| 22 |
*/ |
22 |
*/ |
|
|
23 |
// fix type conversion error josswern 23.02.2011 |
| 23 |
|
24 |
|
| 24 |
|
25 |
|
| 25 |
#define KIO_FTP_PRIVATE_INCLUDE |
26 |
#define KIO_FTP_PRIVATE_INCLUDE |
|
Lines 913-919
Link Here
|
| 913 |
// The usual answer is '227 Entering Passive Mode. (160,39,200,55,6,245)' |
914 |
// The usual answer is '227 Entering Passive Mode. (160,39,200,55,6,245)' |
| 914 |
// but anonftpd gives '227 =160,39,200,55,6,245' |
915 |
// but anonftpd gives '227 =160,39,200,55,6,245' |
| 915 |
int i[6]; |
916 |
int i[6]; |
| 916 |
char *start = strchr(ftpResponse(3), '('); |
917 |
// fix type conversion error josswern 23.02.2011 |
|
|
918 |
const char *start; // statt char *start 23.02.11 |
| 919 |
start = strchr(ftpResponse(3), '('); |
| 917 |
if ( !start ) |
920 |
if ( !start ) |
| 918 |
start = strchr(ftpResponse(3), '='); |
921 |
start = strchr(ftpResponse(3), '='); |
| 919 |
if ( !start || |
922 |
if ( !start || |
|
Lines 965-971
Link Here
|
| 965 |
return ERR_INTERNAL; |
968 |
return ERR_INTERNAL; |
| 966 |
} |
969 |
} |
| 967 |
|
970 |
|
| 968 |
char *start = strchr(ftpResponse(3), '|'); |
971 |
// fix type conversion error josswern 23.02.2011 |
|
|
972 |
const char *start = strchr(ftpResponse(3), '|'); // statt char *start = strchr(ftpResponse(3), '|'); josswern |
| 969 |
if ( !start || sscanf(start, "|||%d|", &portnum) != 1) |
973 |
if ( !start || sscanf(start, "|||%d|", &portnum) != 1) |
| 970 |
return ERR_INTERNAL; |
974 |
return ERR_INTERNAL; |
| 971 |
|
975 |
|