Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use lstat() instead of stat() for POSIX __PHYSFS_platformStat().
  • Loading branch information
icculus committed Sep 5, 2010
1 parent 7f0e710 commit 125c170
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform_posix.c
Expand Up @@ -396,8 +396,7 @@ int __PHYSFS_platformStat(const char *filename, int *exists, PHYSFS_Stat *st)
{
struct stat statbuf;

/* !!! FIXME: lstat()? */
if (stat(filename, &statbuf))
if (lstat(filename, &statbuf))
{
if (errno == ENOENT)
{
Expand Down

0 comments on commit 125c170

Please sign in to comment.