Add mtime to stat
This commit is contained in:
parent
0053d8d076
commit
aa1ab10ee1
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user