From 64e94f5fa6c0cbab4bb9e0260fb07d7ae8decb6a Mon Sep 17 00:00:00 2001 From: rwatson Date: Sun, 9 Mar 2008 13:49:09 +0000 Subject: 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 --- usr.bin/gzip/gzip.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.bin') 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, ""), -- cgit v1.1