From 8723e7e91c9f9ddc6dccbd4620e3e574b540db97 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 9 Oct 2026 13:12:12 -0700 Subject: [PATCH] tar: *.tlz now implies lzip, not lzma Suggested by Antonio Diaz Diaz in: https://lists.gnu.org/r/bug-tar/2026-10/msg00002.html * src/suffix.c (compression_suffixes): Change tlz from LZMA to LZIP. --- NEWS | 6 +++++- doc/tar.texi | 2 +- src/suffix.c | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 7b05757f..0bfbbe4d 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -GNU tar NEWS - User visible changes. 2026-09-30 +GNU tar NEWS - User visible changes. 2026-10-09 Please send GNU tar bug reports to version 1.35.90 (git) @@ -44,6 +44,10 @@ option. Formerly, the behavior was undocumented and differed from one tar version to the next. +** The *.tlz extension in a tarball now implies lzip, not lzma. + This matches the change made to pkgtools in Slackware 15.0 (2022), + after lzma was superseded by xz in 2009. + ** Support for RTU-style contiguous files has been withdrawn. RTU’s supplier dropped support for RTU decades ago. diff --git a/doc/tar.texi b/doc/tar.texi index 28f20c75..9b668bb3 100644 --- a/doc/tar.texi +++ b/doc/tar.texi @@ -10051,8 +10051,8 @@ suffix. The following suffixes are recognized: @item @samp{.tbz2} @tab @command{bzip2} @item @samp{.tbz} @tab @command{bzip2} @item @samp{.lz} @tab @command{lzip} +@item @samp{.tlz} @tab @command{lzip} @item @samp{.lzma} @tab @command{lzma} -@item @samp{.tlz} @tab @command{lzma} @item @samp{.lzo} @tab @command{lzop} @item @samp{.xz} @tab @command{xz} @item @samp{.zst} @tab @command{zstd} diff --git a/src/suffix.c b/src/suffix.c index 818f55f3..bd9e7fbe 100644 --- a/src/suffix.c +++ b/src/suffix.c @@ -45,8 +45,8 @@ static struct compression_suffix const compression_suffixes[] = { { S(tbz2, BZIP2) }, { S(tz2, BZIP2) }, { S(lz, LZIP) }, + { S(tlz, LZIP) }, { S(lzma, LZMA) }, - { S(tlz, LZMA) }, { S(lzo, LZOP) }, { S(tzo, LZOP) }, { S(xz, XZ) },