diff options
Diffstat (limited to 'libftpconn/unix.c')
-rw-r--r-- | libftpconn/unix.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libftpconn/unix.c b/libftpconn/unix.c index e2a460c7..28efefdd 100644 --- a/libftpconn/unix.c +++ b/libftpconn/unix.c @@ -510,12 +510,13 @@ drwxrwxrwt 7 34 archive 512 May 1 14:28 /tmp else tm.tm_year = PARSE_INT () - 1900; - stat->st_mtime = mktime (&tm); - if (stat->st_mtime == (time_t)-1) + stat->st_mtim.tv_sec = mktime (&tm); + if (stat->st_mtim.tv_sec == (time_t)-1) return EGRATUITOUS; /* atime and ctime are the same as mtime. */ - stat->st_atime = stat->st_ctime = stat->st_mtime; + stat->st_atim.tv_sec = stat->st_ctim.tv_sec = stat->st_mtim.tv_sec; + stat->st_atim.tv_nsec = stat->st_ctim.tv_nsec = stat->st_mtim.tv_nsec = 0; /* Update *LINE to point to the filename. */ SKIP_WS (); @@ -731,7 +732,7 @@ finished: } /* Give a name which refers to a directory file, and a name in that - directory, this should return in COMPOSITE the composite name refering to + directory, this should return in COMPOSITE the composite name referring to that name in that directory, in malloced storage. */ error_t ftp_conn_unix_append_name (struct ftp_conn *conn, |