mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
Grok 125 replies to passive RETR. This fixes an interoperability bug with
Microsoft FTP Service. Reported by: asmodai, eivind
This commit is contained in:
parent
c8e1436029
commit
ea014d857f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64883
@ -76,6 +76,7 @@
|
||||
#define FTP_ANONYMOUS_USER "ftp"
|
||||
#define FTP_ANONYMOUS_PASSWORD "ftp"
|
||||
|
||||
#define FTP_CONNECTION_ALREADY_OPEN 125
|
||||
#define FTP_OPEN_DATA_CONNECTION 150
|
||||
#define FTP_OK 200
|
||||
#define FTP_FILE_STATUS 213
|
||||
@ -452,7 +453,7 @@ _ftp_transfer(int cd, char *oper, char *file,
|
||||
if (verbose)
|
||||
_fetch_info("initiating transfer");
|
||||
e = _ftp_cmd(cd, "%s %s", oper, _ftp_filename(file));
|
||||
if (e != FTP_OPEN_DATA_CONNECTION)
|
||||
if (e != FTP_CONNECTION_ALREADY_OPEN && e != FTP_OPEN_DATA_CONNECTION)
|
||||
goto ouch;
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user