summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2022-10-22 11:14:53 +0300
committerSergey Poznyakoff <gray@gnu.org>2022-10-22 11:14:53 +0300
commit02f9af1b8df67e55ceb19ea1465d210a2fa1f02c (patch)
treeb2f8cd34c8e7e681ca429a0a5cec6fa8c38ab495
parent87f9e4210847a4491f0209618fb976c31614c73a (diff)
downloadtar-02f9af1b8df67e55ceb19ea1465d210a2fa1f02c.tar.gz
Fix savannah bug #63250
* src/buffer.c (magic): Add signature of LZMA files produced by xz.
-rw-r--r--src/buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 36b9c9c0..4edaef0b 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -308,6 +308,7 @@ static struct zip_magic const magic[] = {
{ ct_bzip2, 3, "BZh" },
{ ct_lzip, 4, "LZIP" },
{ ct_lzma, 6, "\xFFLZMA" },
+ { ct_lzma, 3, "\x5d\x00\x00" },
{ ct_lzop, 4, "\211LZO" },
{ ct_xz, 6, "\xFD" "7zXZ" },
{ ct_zstd, 4, "\x28\xB5\x2F\xFD" },