diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-03-09 13:49:09 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-03-09 13:49:09 +0000 |
commit | 64e94f5fa6c0cbab4bb9e0260fb07d7ae8decb6a (patch) | |
tree | b9bb54ce6cf6d36cb7bf164d6eaabd3eadfd8850 /usr.bin/gzip | |
parent | 9bfa810838b92c42bb7b11fb3e4bf4c6e6d110b7 (diff) | |
download | FreeBSD-src-64e94f5fa6c0cbab4bb9e0260fb07d7ae8decb6a.zip FreeBSD-src-64e94f5fa6c0cbab4bb9e0260fb07d7ae8decb6a.tar.gz |
Teach gunzip that .tbz and .tbz2 uncompress to .tar, in a manner similar to
its existing understanding that .tgz uncompresses to .tar.
MFC after: 3 days
PR: 121519
Submitted by: Ighighi <ighighi at gmail.com>
Diffstat (limited to 'usr.bin/gzip')
-rw-r--r-- | usr.bin/gzip/gzip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/gzip/gzip.c b/usr.bin/gzip/gzip.c index ac98fe5..603cdc6 100644 --- a/usr.bin/gzip/gzip.c +++ b/usr.bin/gzip/gzip.c @@ -133,6 +133,8 @@ static suffixes_t suffixes[] = { SUFFIX(".tgz", ".tar"), #ifndef NO_BZIP2_SUPPORT SUFFIX(BZ2_SUFFIX, ""), + SUFFIX(".tbz", ".tar"), + SUFFIX(".tbz2", ".tar"), #endif #ifndef NO_COMPRESS_SUPPORT SUFFIX(Z_SUFFIX, ""), |