summaryrefslogtreecommitdiffstats
path: root/lib/libfetch
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2000-07-27 08:48:48 +0000
committerdes <des@FreeBSD.org>2000-07-27 08:48:48 +0000
commit0247d400b145f35284dc0a95d806373766cb4a06 (patch)
tree557d5a141da21d80188032cb97c68aaf3214db30 /lib/libfetch
parent73a0a27f049be3efb2cbc8a97564337bc23a6f3b (diff)
downloadFreeBSD-src-0247d400b145f35284dc0a95d806373766cb4a06.zip
FreeBSD-src-0247d400b145f35284dc0a95d806373766cb4a06.tar.gz
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
Diffstat (limited to 'lib/libfetch')
-rw-r--r--lib/libfetch/ftp.c1
1 files changed, 1 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud