src/platform_posix.c
changeset 1106 94c3669d0311
parent 1098 4e86cec1143f
child 1115 bc7257f4f8da
--- a/src/platform_posix.c	Sat Aug 21 17:34:00 2010 -0400
+++ b/src/platform_posix.c	Sat Aug 21 19:10:42 2010 -0400
@@ -429,10 +429,8 @@
             *exists = 0;
             return 0;
         } /* if */
-        else
-        {
-            BAIL_MACRO(strerror(errno), -1);
-        } /* else */
+
+        BAIL_MACRO(strerror(errno), 0);
     } /* if */
 
     if (S_ISREG(statbuf.st_mode))
@@ -459,7 +457,7 @@
 
     /* !!! FIXME: maybe we should just report full permissions? */
     st->readonly = access(filename, W_OK);
-    return 0;
+    return 1;
 } /* __PHYSFS_platformStat */
 
 #endif  /* PHYSFS_PLATFORM_POSIX */