]> git.pld-linux.org Git - packages/file.git/blob - magic-xz.patch
- upstream fix for xz files detection regression, rel 2
[packages/file.git] / magic-xz.patch
1 From 9b0459afab309a82aa4e46f73a4e50dd641f3d39 Mon Sep 17 00:00:00 2001
2 From: Christos Zoulas <christos@zoulas.com>
3 Date: Mon, 19 Apr 2021 17:01:45 +0000
4 Subject: [PATCH] PR/257: cuihao: put attributes inside the xz magic.
5
6 ---
7  magic/Magdir/compress | 7 +++----
8  1 file changed, 3 insertions(+), 4 deletions(-)
9
10 diff --git a/magic/Magdir/compress b/magic/Magdir/compress
11 index 64d11a736..41a65738f 100644
12 --- a/magic/Magdir/compress
13 +++ b/magic/Magdir/compress
14 @@ -1,5 +1,5 @@
15  #------------------------------------------------------------------------------
16 -# $File: compress,v 1.80 2021/03/15 17:49:24 christos Exp $
17 +# $File: compress,v 1.81 2021/04/19 17:01:45 christos Exp $
18  # compress:  file(1) magic for pure-compression formats (no archives)
19  #
20  # compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, etc.
21 @@ -265,14 +265,13 @@
22  
23  # http://tukaani.org/xz/xz-file-format.txt
24  0      ustring         \xFD7zXZ\x00            XZ compressed data, checksum
25 +!:strength * 2
26 +!:mime application/x-xz
27  >7     byte&0xf        0x0                     NONE
28  >7     byte&0xf        0x1                     CRC32
29  >7     byte&0xf        0x4                     CRC64
30  >7     byte&0xf        0xa                     SHA-256
31  
32 -!:strength * 2
33 -!:mime application/x-xz
34 -
35  # https://github.com/ckolivas/lrzip/blob/master/doc/magic.header.txt
36  0      string          LRZI                    LRZIP compressed data
37  >4     byte            x                       - version %d
This page took 0.045442 seconds and 3 git commands to generate.