Use lstat() instead of stat() for POSIX __PHYSFS_platformStat().

This commit is contained in:
Ryan C. Gordon 2010-09-05 02:42:04 -04:00
parent 7f0e7105a7
commit 125c170f7d
1 changed files with 1 additions and 2 deletions

View File

@ -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)
{