]> 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 3b62971d69e867ecc76c955b9c443eb93352579f..a8b2e061cecea711d28e93de1f60d0d368273c90 100644 (file)
@@ -1,5 +1,5 @@
 #------------------------------------------------------------------------------
-# $File: compress,v 1.49 2011/12/07 22:04:27 christos Exp $
+# $File: compress,v 1.50 2013/08/15 12:53:10 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