POSIX version of __PHYSFS_platformStat() now reports symlinks correctly.

This commit is contained in:
Ryan C. Gordon 2012-11-29 11:45:01 -05:00
parent e40d80b00f
commit 259399124a
1 changed files with 6 additions and 0 deletions

View File

@ -367,6 +367,12 @@ int __PHYSFS_platformStat(const char *filename, int *exists, PHYSFS_Stat *st)
st->filesize = 0;
} /* else if */
else if(S_ISLNK(statbuf.st_mode))
{
st->filetype = PHYSFS_FILETYPE_SYMLINK;
st->filesize = 0;
} /* else if */
else
{
st->filetype = PHYSFS_FILETYPE_OTHER;