From 0247d400b145f35284dc0a95d806373766cb4a06 Mon Sep 17 00:00:00 2001 From: des Date: Thu, 27 Jul 2000 08:48:48 +0000 Subject: Don't fail if _ftp_stat() reports a protocol error, since that most likely means that the server doesn't understand SIZE or MDTM, which should not be a hard failure. Submitted by: ume --- lib/libfetch/ftp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libfetch') diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 031a243..7da413f 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -796,6 +796,7 @@ fetchXGetFTP(struct url *url, struct url_stat *us, char *flags) /* stat file */ if (us && _ftp_stat(cd, url->doc, us) == -1 + && fetchLastErrCode != FETCH_PROTO && fetchLastErrCode != FETCH_UNAVAIL) return NULL; -- cgit v1.1