diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-18 07:13:59 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-18 07:13:59 +0000 |
| commit | 52a85ef4ff76f2a4d95a912a35515d8468655ec7 (patch) | |
| tree | 70bafddb6655a2870f7a1dabe372f16db0cf4045 | |
| parent | 2eba555b9cb17e7cb21b5c465eee00cbde165aec (diff) | |
Notes
| -rw-r--r-- | lib/libfetch/ftp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index b141bc173f74..6fb16b2d7378 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -240,6 +240,9 @@ _ftp_stat(int cd, char *file, struct url_stat *us) time_t t; int e; + us->size = -1; + us->atime = us->mtime = 0; + if ((s = strrchr(file, '/')) == NULL) s = file; else @@ -772,7 +775,8 @@ fetchXGetFTP(struct url *url, struct url_stat *us, char *flags) return NULL; /* stat file */ - if (us && _ftp_stat(cd, url->doc, us) == -1) + if (us && _ftp_stat(cd, url->doc, us) == -1 + && fetchLastErrCode != FETCH_UNAVAIL) return NULL; /* initiate the transfer */ |
