]> granicus.if.org Git - file/commitdiff
Fixed 0 file problem.
authorChristos Zoulas <christos@zoulas.com>
Wed, 18 May 2011 18:11:23 +0000 (18:11 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 18 May 2011 18:11:23 +0000 (18:11 +0000)
magic/Magdir/msdos

index 731d50bee3b78e5441b0e4851dc637aecbc3c2a2..f8852cb2559bae43b6247fbdd385a887f4f1c382 100644 (file)
@@ -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
 #
 
 >>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)