Fixed GRP_enumerateFiles() so that it will only list files in the root of
authorRyan C. Gordon <icculus@icculus.org>
Sun, 15 Jul 2001 09:28:37 +0000
changeset 31 41c23ac35615
parent 30 c9cc9b79112e
child 32 09a8197fad3b
Fixed GRP_enumerateFiles() so that it will only list files in the root of the readable file tree.
archivers/grp.c
--- a/archivers/grp.c	Sun Jul 15 09:27:41 2001 +0000
+++ b/archivers/grp.c	Sun Jul 15 09:28:37 2001 +0000
@@ -207,6 +207,9 @@
     LinkedStringList *l = NULL;
     LinkedStringList *prev = NULL;
 
+    if (*dirname != '\0')   /* no directories in GRP files. */
+        return(NULL);
+
         /* jump to first file entry... */
     errno = 0;
     BAIL_IF_MACRO(fseek(fh, 16, SEEK_SET) == -1, strerror(errno), NULL);