Skip to content

Commit

Permalink
POSIX version of __PHYSFS_platformStat() now reports symlinks correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 29, 2012
1 parent e40d80b commit 2593991
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/platform_posix.c
Expand Up @@ -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;
Expand Down

0 comments on commit 2593991

Please sign in to comment.