physfs.c
changeset 41 ff60d39d0862
parent 39 bc29e1ee7ef6
child 44 534901592376
--- a/physfs.c	Mon Jul 16 14:36:28 2001 +0000
+++ b/physfs.c	Mon Jul 16 17:36:28 2001 +0000
@@ -1022,6 +1022,7 @@
     char **retval = NULL;
     LinkedStringList *rc;
     LinkedStringList *finalList = NULL;
+    int omitSymLinks = !allowSymLinks;
 
     while (*path == '/')
         path++;
@@ -1031,7 +1032,7 @@
         DirHandle *h = i->dirHandle;
         if (__PHYSFS_verifySecurity(h, path))
         {
-            rc = h->funcs->enumerateFiles(h, path);
+            rc = h->funcs->enumerateFiles(h, path, omitSymLinks);
             interpolateStringLists(&finalList, rc);
         } /* if */
     } /* for */