From 6d3e897bc9b8654c0b66351e2c1b8ab159db679b Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Thu, 1 Jan 2015 17:43:47 +0000 Subject: [PATCH] Put back stricter checks for DOS/MBR partition: https://bugs.debian.org/774219 --- magic/Magdir/filesystems | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/magic/Magdir/filesystems b/magic/Magdir/filesystems index 00baaed9..939a0920 100644 --- a/magic/Magdir/filesystems +++ b/magic/Magdir/filesystems @@ -1,5 +1,5 @@ #------------------------------------------------------------------------------ -# $File: filesystems,v 1.107 2014/12/03 18:02:52 christos Exp $ +# $File: filesystems,v 1.108 2015/01/01 17:43:47 christos Exp $ # filesystems: file(1) magic for different filesystems # 0 name partid @@ -260,6 +260,13 @@ >>(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 -- 2.40.0