diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-08 09:27:47 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-08 09:27:47 +0000 |
| commit | 51e3d46ec069432b4f0135d615d1a41357769a02 (patch) | |
| tree | f65158ec6e761c8ce073c81f34f12809794aa0e9 /lib/libfetch/ftp.c | |
| parent | c87a63c10f22774db603ed6530e2e309a0372128 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch/ftp.c')
| -rw-r--r-- | lib/libfetch/ftp.c | 3 |
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: |
