From: Christos Zoulas Date: Wed, 18 May 2011 18:11:23 +0000 (+0000) Subject: Fixed 0 file problem. X-Git-Tag: FILE5_08~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19f5096d0b4c1a49af6cc4e0d086d6128c493bd8;p=file Fixed 0 file problem. --- diff --git a/magic/Magdir/msdos b/magic/Magdir/msdos index 731d50be..f8852cb2 100644 --- a/magic/Magdir/msdos +++ b/magic/Magdir/msdos @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: msdos,v 1.71 2011/01/10 14:01:10 christos Exp $ +# $File: msdos,v 1.72 2011/05/08 01:21:41 christos Exp $ # msdos: file(1) magic for MS-DOS files # @@ -389,10 +389,11 @@ >>4 uleshort&0x4842 >0 \bsupport >0 ubyte x \b) # DOS driver cmd640x.sys has 0x12 instead of 0xffffffff for pointer field to next device header -0 ulequad&0x000007a0ffffffed 0x0000000000000000 DOS-executable ( ->4 uleshort&0x8000 0x8000 \bcharacter device driver ->>10 string x %-.8s ->4 uleshort&0x4000 0x4000 \b,control strings-support) +# Too weak, matches files that only contain 0's +#0 ulequad&0x000007a0ffffffed 0x0000000000000000 DOS-executable ( +#>4 uleshort&0x8000 0x8000 \bcharacter device driver +#>>10 string x %-.8s +#>4 uleshort&0x4000 0x4000 \b,control strings-support) # test too generic ? 0 byte 0x8c DOS executable (COM)