Kaynağa Gözat

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

Ryan C. Gordon 15 yıl önce
ebeveyn
işleme
125c170f7d
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  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;
 
-    /* !!! FIXME: lstat()? */
-    if (stat(filename, &statbuf))
+    if (lstat(filename, &statbuf))
     {
         if (errno == ENOENT)
         {