diff options
| author | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-09-18 13:01:12 +0000 |
|---|---|---|
| committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-09-18 13:01:12 +0000 |
| commit | 13b21828a8a6b2943944a05f9bc7e9a7432846fe (patch) | |
| tree | 76acf0e35441ab9a8a740fc6881d0952b04fcc94 /lib/libstand/zipfs.c | |
| parent | 2fb2e1897d269e7ff6db43654cc3a845ab008af6 (diff) | |
Notes
Diffstat (limited to 'lib/libstand/zipfs.c')
| -rw-r--r-- | lib/libstand/zipfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libstand/zipfs.c b/lib/libstand/zipfs.c index 61e72154b767..c95621cc6d9d 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 */ |
