summaryrefslogtreecommitdiff
path: root/lib/libfetch/ftp.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2000-07-08 09:27:47 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2000-07-08 09:27:47 +0000
commit51e3d46ec069432b4f0135d615d1a41357769a02 (patch)
treef65158ec6e761c8ce073c81f34f12809794aa0e9 /lib/libfetch/ftp.c
parentc87a63c10f22774db603ed6530e2e309a0372128 (diff)
Notes
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r--lib/libfetch/ftp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index e6c520f6d010..bb34aed08446 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -300,13 +300,12 @@ _ftp_transfer(int cd, char *oper, char *file,
* is IMHO the one and only weak point in the FTP protocol.
*/
ln = last_reply;
- for (p = ln + 3; *p && *p != '('; p++)
+ for (p = ln + 3; *p && !isdigit(*p); p++)
/* nothing */ ;
if (!*p) {
e = 999;
goto ouch;
}
- p++;
switch (e) {
case FTP_PASSIVE_MODE:
case FTP_LPASSIVE_MODE: