]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Recognize suffixes .z (gzip) and .tzo (lzop)
authorSergey Poznyakoff <gray@gnu.org>
Mon, 15 Jan 2024 20:52:27 +0000 (22:52 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Mon, 15 Jan 2024 20:52:27 +0000 (22:52 +0200)
src/suffix.c

index 51490b2d2d4e9aa7614174aaa4127b3b8d0d5307..6128ec0ba399f98b877d6af279db3bb0f9b23b56 100644 (file)
@@ -31,6 +31,7 @@ static struct compression_suffix compression_suffixes[] = {
 #define S(s,p) #s, sizeof (#s) - 1, __CAT2__(p,_PROGRAM)
   { "tar", 3, NULL },
   { S(gz,   GZIP) },
+  { S(z,    GZIP) },
   { S(tgz,  GZIP) },
   { S(taz,  GZIP) },
   { S(Z,    COMPRESS) },
@@ -43,6 +44,7 @@ static struct compression_suffix compression_suffixes[] = {
   { S(lzma, LZMA) },
   { S(tlz,  LZMA) },
   { S(lzo,  LZOP) },
+  { S(tzo,  LZOP) },
   { S(xz,   XZ) },
   { S(txz,  XZ) }, /* Slackware */
   { S(zst,  ZSTD) },