diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-18 07:12:26 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-18 07:12:26 +0000 |
| commit | 269532d987725193b5350742fedf5dc9eff7c304 (patch) | |
| tree | 25dd9cc7fe1687c27d0654fe331cf41c240f29dc /lib/libfetch/ftp.c | |
| parent | 482cf5c2e7bd37b70e13ca260a48f6376f513549 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch/ftp.c')
| -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 */ |
