]> granicus.if.org Git - file/commitdiff
PR/287: Add another lzma case; there is no reliable way to check the format.
authorChristos Zoulas <christos@zoulas.com>
Tue, 19 Nov 2013 20:38:57 +0000 (20:38 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 19 Nov 2013 20:38:57 +0000 (20:38 +0000)
magic/Magdir/compress

index 67e2635e01b178b019e4f401a2c6b18fd5709209..1a2ff516e1625757ea49a1c2ddff28a0fa80ad92 100644 (file)
@@ -1,5 +1,5 @@
 #------------------------------------------------------------------------------
-# $File: compress,v 1.50 2013/08/15 12:53:10 christos Exp $
+# $File: compress,v 1.51 2013/11/19 20:38:57 christos Exp $
 # compress:  file(1) magic for pure-compression formats (no archives)
 #
 # compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, etc.
 
 # Type: LZMA
 0      lelong&0xffffff =0x5d
->12    leshort         =0xff                   LZMA compressed data,
+!:mime application/x-lzma
+>12    leshort         0xff                    LZMA compressed data,
+>>5    lequad          =0xffffffffffffffff     streamed
+>>5    lequad          !0xffffffffffffffff     non-streamed, size %lld
+>12    leshort         0                       LZMA compressed data,
 >>5    lequad          =0xffffffffffffffff     streamed
 >>5    lequad          !0xffffffffffffffff     non-streamed, size %lld
-!:mime application/x-lzma
 
 # http://tukaani.org/xz/xz-file-format.txt
 0      ustring         \xFD7zXZ\x00            XZ compressed data