aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/file.c b/lib/file.c
index de5d52b32..b0af2fcd9 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -451,6 +451,8 @@ static CURLcode file_do(struct connectdata *conn, bool *done)
if( -1 != fstat(fd, &statbuf)) {
/* we could stat it, then read out the size */
expected_size = statbuf.st_size;
+ /* and store the modification time */
+ data->info.filetime = (long)statbuf.st_mtime;
fstated = TRUE;
}