From b8c4942413933d1cdb13773dc7db0caae460202d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 22 Jun 2011 15:56:10 -0400 Subject: [PATCH] POSIX version of __PHYSFS_platformStat() forgot to set *exists properly. Thanks to Frank Becker for the fix. --- src/platform_posix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform_posix.c b/src/platform_posix.c index 3a6f5b60..fcd05dc4 100644 --- a/src/platform_posix.c +++ b/src/platform_posix.c @@ -404,6 +404,8 @@ int __PHYSFS_platformStat(const char *filename, int *exists, PHYSFS_Stat *st) BAIL_MACRO(strerror(errno), 0); } /* if */ + *exists = 1; + if (S_ISREG(statbuf.st_mode)) { st->filetype = PHYSFS_FILETYPE_REGULAR;