Add mtime to stat

This commit is contained in:
piepie62 2020-05-20 00:05:19 -04:00
parent 0053d8d076
commit aa1ab10ee1

View File

@ -839,6 +839,13 @@ archive_stat(struct _reent *r,
archive_file_t tmpfd = { .fd = fd }; archive_file_t tmpfd = { .fd = fd };
rc = archive_fstat(r, &tmpfd, st); rc = archive_fstat(r, &tmpfd, st);
FSFILE_Close(fd); FSFILE_Close(fd);
if (R_SUCCEEDED(rc))
{
u64 mtime;
rc = archive_getmtime(file, &mtime);
st->st_mtim.tv_sec = mtime;
st->st_mtim.tv_nsec = 0;
}
return rc; return rc;
} }