diff -up kdelibs-3.5.10/kioslave/ftp/ftp.cc.orig
kdelibs-3.5.10/kioslave/ftp/ftp.cc
|
old
|
new
|
int Ftp::ftpOpenPASVDataConnection()
|
| 876 | 876 | // The usual answer is '227 Entering Passive Mode. (160,39,200,55,6,245)' |
| 877 | 877 | // but anonftpd gives '227 =160,39,200,55,6,245' |
| 878 | 878 | int i[6]; |
| 879 | | char *start = strchr(ftpResponse(3), '('); |
| | 879 | const char *start = strchr(ftpResponse(3), '('); |
| 880 | 880 | if ( !start ) |
| 881 | 881 | start = strchr(ftpResponse(3), '='); |
| 882 | 882 | if ( !start || |
| … |
… |
int Ftp::ftpOpenEPSVDataConnection()
|
| 931 | 931 | return ERR_INTERNAL; |
| 932 | 932 | } |
| 933 | 933 | |
| 934 | | char *start = strchr(ftpResponse(3), '|'); |
| | 934 | const char *start = strchr(ftpResponse(3), '|'); |
| 935 | 935 | if ( !start || sscanf(start, "|||%d|", &portnum) != 1) |
| 936 | 936 | return ERR_INTERNAL; |
| 937 | 937 | |