Corrected reported value for unknown PHYSFS_stat() access times.

This commit is contained in:
Ryan C. Gordon 2017-07-17 12:21:02 -04:00
parent de444a9866
commit e84277a1df
2 changed files with 3 additions and 3 deletions

View File

@ -884,15 +884,15 @@ static int ISO9660_stat(void *opaque, const char *name, PHYSFS_Stat *stat)
descriptor.extentpos, &extattr), -1);
stat->createtime = iso_volume_mktime(&extattr.create_time);
stat->modtime = iso_volume_mktime(&extattr.mod_time);
stat->accesstime = iso_volume_mktime(&extattr.mod_time);
} /* if */
else
{
stat->createtime = iso_mktime(&descriptor.recordtime);
stat->modtime = iso_mktime(&descriptor.recordtime);
stat->accesstime = iso_mktime(&descriptor.recordtime);
} /* else */
stat->accesstime = -1;
if (descriptor.flags.directory)
{
stat->filesize = 0;

View File

@ -1661,7 +1661,7 @@ static int ZIP_stat(void *opaque, const char *filename, PHYSFS_Stat *stat)
stat->modtime = ((entry) ? entry->last_mod_time : 0);
stat->createtime = stat->modtime;
stat->accesstime = 0;
stat->accesstime = -1;
stat->readonly = 1; /* .zip files are always read only */
return 1;