From: Christos Zoulas Date: Tue, 19 Nov 2013 20:38:57 +0000 (+0000) Subject: PR/287: Add another lzma case; there is no reliable way to check the format. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3be0f274515e9eb618e9bac941c28f30a87acd50;p=file PR/287: Add another lzma case; there is no reliable way to check the format. --- diff --git a/magic/Magdir/compress b/magic/Magdir/compress index 67e2635e..1a2ff516 100644 --- a/magic/Magdir/compress +++ b/magic/Magdir/compress @@ -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. @@ -191,10 +191,13 @@ # 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