From 259399124ad24a5389664f40319d541337a05de9 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 29 Nov 2012 11:45:01 -0500 Subject: [PATCH] POSIX version of __PHYSFS_platformStat() now reports symlinks correctly. --- src/platform_posix.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platform_posix.c b/src/platform_posix.c index 3b0994c0..0822be2b 100644 --- a/src/platform_posix.c +++ b/src/platform_posix.c @@ -367,6 +367,12 @@ int __PHYSFS_platformStat(const char *filename, int *exists, PHYSFS_Stat *st) st->filesize = 0; } /* else if */ + else if(S_ISLNK(statbuf.st_mode)) + { + st->filetype = PHYSFS_FILETYPE_SYMLINK; + st->filesize = 0; + } /* else if */ + else { st->filetype = PHYSFS_FILETYPE_OTHER;