From 0cc2f502896ab7ea41fc771da8a24d8dfc8047fe Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Thu, 21 May 2015 18:28:41 +0000 Subject: [PATCH] add mime types from Guy Helmer --- magic/Magdir/cafebabe | 4 +++- magic/Magdir/mach | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/magic/Magdir/cafebabe b/magic/Magdir/cafebabe index a7da2138..0c4a89f1 100644 --- a/magic/Magdir/cafebabe +++ b/magic/Magdir/cafebabe @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: cafebabe,v 1.18 2015/02/05 19:04:03 christos Exp $ +# $File: cafebabe,v 1.19 2015/05/21 18:28:41 christos Exp $ # Cafe Babes unite! # # Since Java bytecode and Mach-O universal binaries have the same magic number, @@ -52,9 +52,11 @@ 0 belong 0xcafebabe >4 belong 1 Mach-O universal binary with 1 architecture: +!:mime application/x-mach-binary >>8 use mach-o \b >4 belong >1 >>4 belong <20 Mach-O universal binary with %d architectures: +!:mime application/x-mach-binary >>>8 use mach-o \b >>>28 use mach-o \b >>4 belong >2 diff --git a/magic/Magdir/mach b/magic/Magdir/mach index 23b9f8a1..7782e5be 100644 --- a/magic/Magdir/mach +++ b/magic/Magdir/mach @@ -1,6 +1,6 @@ #------------------------------------------------------------ -# $File: mach,v 1.19 2014/04/30 21:41:02 christos Exp $ +# $File: mach,v 1.20 2015/05/21 18:28:41 christos Exp $ # Mach has two magic numbers, 0xcafebabe and 0xfeedface. # Unfortunately the first, cafebabe, is shared with # Java ByteCode, so they are both handled in the file "cafebabe". @@ -207,8 +207,10 @@ # 0 lelong&0xfffffffe 0xfeedface Mach-O !:strength +1 +!:mime application/x-mach-binary >0 use \^mach-o-be 0 belong&0xfffffffe 0xfeedface Mach-O !:strength +1 +!:mime application/x-mach-binary >0 use mach-o-be -- 2.40.0