Navigation Menu

Skip to content

Commit

Permalink
Fixed GRP_enumerateFiles() so that it will only list files in the roo…
Browse files Browse the repository at this point in the history
…t of

the readable file tree.
  • Loading branch information
icculus committed Jul 15, 2001
1 parent 6507303 commit fe77666
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions archivers/grp.c
Expand Up @@ -207,6 +207,9 @@ static LinkedStringList *GRP_enumerateFiles(DirHandle *h, const char *dirname)
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);
Expand Down

0 comments on commit fe77666

Please sign in to comment.