Skip to content

Commit 9b0459a

Browse files
committed
PR/257: cuihao: put attributes inside the xz magic.
1 parent 0759562 commit 9b0459a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

magic/Magdir/compress

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#------------------------------------------------------------------------------
2-
# $File: compress,v 1.80 2021/03/15 17:49:24 christos Exp $
2+
# $File: compress,v 1.81 2021/04/19 17:01:45 christos Exp $
33
# compress: file(1) magic for pure-compression formats (no archives)
44
#
55
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, etc.
@@ -265,14 +265,13 @@
265265

266266
# http://tukaani.org/xz/xz-file-format.txt
267267
0 ustring \xFD7zXZ\x00 XZ compressed data, checksum
268+
!:strength * 2
269+
!:mime application/x-xz
268270
>7 byte&0xf 0x0 NONE
269271
>7 byte&0xf 0x1 CRC32
270272
>7 byte&0xf 0x4 CRC64
271273
>7 byte&0xf 0xa SHA-256
272274

273-
!:strength * 2
274-
!:mime application/x-xz
275-
276275
# https://github.com/ckolivas/lrzip/blob/master/doc/magic.header.txt
277276
0 string LRZI LRZIP compressed data
278277
>4 byte x - version %d

0 commit comments

Comments
 (0)