]> granicus.if.org Git - file/commitdiff
Put back stricter checks for DOS/MBR partition:
authorChristos Zoulas <christos@zoulas.com>
Thu, 1 Jan 2015 17:43:47 +0000 (17:43 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 1 Jan 2015 17:43:47 +0000 (17:43 +0000)
https://bugs.debian.org/774219

magic/Magdir/filesystems

index 2075c7d99e89bc3cd921bc76cef5360304d7f80b..844784b3bb7c7ac520ab2b2811ab7686e8fb92a0 100644 (file)
@@ -1,5 +1,5 @@
 #------------------------------------------------------------------------------
-# $File: filesystems,v 1.106 2014/10/23 17:17:09 christos Exp $
+# $File: filesystems,v 1.107 2014/12/03 18:02:52 christos Exp $
 # filesystems:  file(1) magic for different filesystems
 #
 0      name    partid  
 >>(11.s-2)     uleshort        0xAA55          DOS/MBR boot sector
 # for sector sizes with 512 or more Bytes
 >0x1FE         leshort         0xAA55          DOS/MBR boot sector
+
+# keep old DOS/MBR boot sector as dummy for mbr and bootloader displaying
+# only for sector sizes with 512 or more Bytes
+0x1FE          leshort         0xAA55          DOS/MBR boot sector
+#
+# to display information (50) before DOS BPB (strength=70) and after DOS floppy (120) like in old file version
+!:strength +65
 >2             string          OSBS            OS/BS MBR
 # added by Joerg Jenderek at Feb 2013 according to http://thestarman.pcministry.com/asm/mbr/
 # and http://en.wikipedia.org/wiki/Master_Boot_Record