Procházet zdrojové kódy

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

Ryan C. Gordon před 15 roky
rodič
revize
125c170f7d
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  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)
         {