summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libfetch/ftp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index 0e13bf5..fab45f5 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -532,6 +532,9 @@ fetchStatFTP(struct url *url, struct url_stat *us, char *flags)
time_t t;
int e, cd;
+ us->size = -1;
+ us->atime = us->mtime = 0;
+
/* connect to server */
if ((cd = _ftp_cached_connect(url, flags)) == NULL)
return -1;
OpenPOWER on IntegriCloud