Explorar o código

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

Ryan C. Gordon %!s(int64=16) %!d(string=hai) anos
pai
achega
125c170f7d
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/platform_posix.c

+ 1 - 2
src/platform_posix.c

@@ -396,8 +396,7 @@ int __PHYSFS_platformStat(const char *filename, int *exists, PHYSFS_Stat *st)
 {
 {
     struct stat statbuf;
     struct stat statbuf;
 
 
-    /* !!! FIXME: lstat()? */
-    if (stat(filename, &statbuf))
+    if (lstat(filename, &statbuf))
     {
     {
         if (errno == ENOENT)
         if (errno == ENOENT)
         {
         {