summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/ftp.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-08-19 11:43:11 +0000
committerdes <des@FreeBSD.org>2003-08-19 11:43:11 +0000
commita1cad5ae8bcaaca899fb2bb5e2624a48ccb33eb3 (patch)
treef5966bf348c78e45bc9a0a83caf7224711cc5420 /lib/libfetch/ftp.c
parentfe9e1d31262b42f44b703033edd9268f99aff34a (diff)
downloadFreeBSD-src-a1cad5ae8bcaaca899fb2bb5e2624a48ccb33eb3.zip
FreeBSD-src-a1cad5ae8bcaaca899fb2bb5e2624a48ccb33eb3.tar.gz
Some servers respond to RETR in active mode with 125 (connection already
open) rather than 150 (opening connection). There's no reason why we shouldn't accept that. PR: misc/42172 MFC in: 3 days
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r--lib/libfetch/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index ffc4462..f21aac4 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -689,7 +689,7 @@ _ftp_transfer(conn_t *conn, const char *oper, const char *file,
if (verbose)
_fetch_info("initiating transfer");
e = _ftp_cmd(conn, "%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;
/* accept the incoming connection and go to town */
OpenPOWER on IntegriCloud