From 6a1c5e5a90ff380a47bde41458be2d1ae88b4399 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 22 Oct 2014 18:16:03 +0000 Subject: [PATCH] PR/390: Jan Kaluza: Fix detection of iso9660 filesystems --- magic/Magdir/filesystems | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/magic/Magdir/filesystems b/magic/Magdir/filesystems index 2d0d1ba8..7ba3edbc 100644 --- a/magic/Magdir/filesystems +++ b/magic/Magdir/filesystems @@ -1,5 +1,5 @@ #------------------------------------------------------------------------------ -# $File: filesystems,v 1.103 2014/09/11 15:09:34 christos Exp $ +# $File: filesystems,v 1.104 2014/10/22 18:16:03 christos Exp $ # filesystems: file(1) magic for different filesystems # 0 name partid @@ -538,6 +538,8 @@ >>>514 string !HdrS # not BeOS >>>>422 string !Be\ Boot\ Loader +>>>>>32769 string CD001 +>>>>>>0 use cdrom # jump over BPB instruction implies DOS bootsector or AdvanceMAME mbr >>>>>0 ubelong&0xFD000000 =0xE9000000 # AdvanceMAME mbr @@ -1913,16 +1915,7 @@ # defect IO.SYS+MSDOS.SYS ? #>>>>>0x162 use 2xDOS-filename -# CDROM Filesystems -# https://en.wikipedia.org/wiki/ISO_9660 -# Modified for UDF by gerardo.cacciari@gmail.com -32769 string CD001 -# mime line at that position does not work -# to display CD-ROM (70=81-11) after MBR (113=40+72+1), partition-table (71=50+21) and before Apple Driver Map (51) -!:strength -11 -# to display CD-ROM (114=81+33) before MBR (113=40+72+1), partition-table (71=50+21) and Apple Driver Map (51) -# does not work -#!:strength +33 +0 name cdrom >38913 string !NSR0 ISO 9660 CD-ROM filesystem data !:mime application/x-iso9660-image >38913 string NSR0 UDF filesystem data @@ -1939,6 +1932,18 @@ !:mime application/x-iso9660-image 32777 string CDROM High Sierra CD-ROM filesystem data +# CDROM Filesystems +# https://en.wikipedia.org/wiki/ISO_9660 +# Modified for UDF by gerardo.cacciari@gmail.com +32769 string CD001 +# mime line at that position does not work +# to display CD-ROM (70=81-11) after MBR (113=40+72+1), partition-table (71=50+21) and before Apple Driver Map (51) +!:strength -11 +# to display CD-ROM (114=81+33) before MBR (113=40+72+1), partition-table (71=50+21) and Apple Driver Map (51) +# does not work +#!:strength +33 +>0 use cdrom + # .cso files 0 string CISO Compressed ISO CD image -- 2.40.0