Use lstat() instead of stat() for POSIX __PHYSFS_platformStat().
authorRyan C. Gordon <icculus@icculus.org>
Sun, 05 Sep 2010 02:42:04 -0400
changeset 1126 f7877496507c
parent 1125 bcff76dbd9fd
child 1127 a05b64b41a10
Use lstat() instead of stat() for POSIX __PHYSFS_platformStat().
src/platform_posix.c
--- a/src/platform_posix.c	Sun Sep 05 02:41:13 2010 -0400
+++ b/src/platform_posix.c	Sun Sep 05 02:42:04 2010 -0400
@@ -396,8 +396,7 @@
 {
     struct stat statbuf;
 
-    /* !!! FIXME: lstat()? */
-    if (stat(filename, &statbuf))
+    if (lstat(filename, &statbuf))
     {
         if (errno == ENOENT)
         {