]> granicus.if.org Git - file/commitdiff
Add missing extensions/mime from Andrew Roazen
authorChristos Zoulas <christos@zoulas.com>
Fri, 4 Dec 2015 20:48:02 +0000 (20:48 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 4 Dec 2015 20:48:02 +0000 (20:48 +0000)
magic/Magdir/archive
magic/Magdir/compress

index be587a957437836f7efa3e238a5ddf8dd5f17792..79fa115e16b6e102830177c473ace08f067d2a13 100644 (file)
@@ -1,5 +1,5 @@
 #------------------------------------------------------------------------------
-# $File: archive,v 1.97 2015/10/10 15:37:44 christos Exp $
+# $File: archive,v 1.98 2015/11/20 17:05:42 christos Exp $
 # archive:  file(1) magic for archive formats (see also "msdos" for self-
 #           extracting compressed archives)
 #
 # RAR (Roshal Archive) archive
 0      string          Rar!\x1a\7\0            RAR archive data
 !:mime application/x-rar
-!:ext  rar
+!:ext  rar/cbr
 # file header
 >(0xc.l+9)     byte    0x74
 >>(0xc.l+7)    use     rar-file-header
 # http://jasonblanks.com/wp-includes/images/papers/KnowyourarchiveRAR.pdf
 0      string          RE\x7e\x5e  RAR archive data (<v1.5)
 !:mime application/x-rar
-!:ext  rar
+!:ext  rar/cbr
 
 # SQUISH archiver (Greg Roelofs, newt@uchicago.edu)
 0      string          SQSH            squished archive data (Acorn RISCOS)
 # PKZIP multi-volume archive
 0      string          PK\x07\x08PK\x03\x04    Zip multi-volume archive data, at least PKZIP v2.50 to extract
 !:mime application/zip
+!:ext zip/cbz
 
 # Zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu)
 0      string          PK\005\006      Zip archive data (empty)
 0      string          PK\003\004
+!:mime application/zip
+!:ext zip/cbz
 
 # Specialised zip formats which start with a member named 'mimetype'
 # (stored uncompressed, with no 'extra field') containing the file's MIME type.
index 4fc53bb02d1b683d0758c4e37196ed64a6fcc36b..23c67ae54268bcfb71eb271ef83536b3dbdf0fa8 100644 (file)
@@ -1,5 +1,5 @@
 #------------------------------------------------------------------------------
-# $File: compress,v 1.63 2015/03/11 19:27:35 christos Exp $
+# $File: compress,v 1.64 2015/07/27 15:41:09 christos Exp $
 # compress:  file(1) magic for pure-compression formats (no archives)
 #
 # compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, etc.
 >6     byte            x                       version %d
 >7     byte            x                       \b.%d
 !:mime application/x-7z-compressed
+!:ext 7z/cb7
 
 # Type: LZMA
 0      lelong&0xffffff =0x5d