summaryrefslogtreecommitdiffstats
path: root/lib/libstand/zipfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libstand/zipfs.c')
-rw-r--r--lib/libstand/zipfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libstand/zipfs.c b/lib/libstand/zipfs.c
index 61e7215..c95621c 100644
--- a/lib/libstand/zipfs.c
+++ b/lib/libstand/zipfs.c
@@ -173,8 +173,9 @@ zf_open(const char *fname, struct open_file *f)
if (f->f_flags != F_READ)
return(EPERM);
- /* If the name already ends in .gz, ignore it */
- if ((cp = strrchr(fname, '.')) && !strcmp(cp, ".gz"))
+ /* If the name already ends in .gz or .bz2, ignore it */
+ if ((cp = strrchr(fname, '.')) && (!strcmp(cp, ".gz")
+ || !strcmp(cp, ".bz2")))
return(ENOENT);
/* Construct new name */
OpenPOWER on IntegriCloud