]> granicus.if.org Git - file/commitdiff
See Debian#657545: The "Linux/i386 core file" rule in linux:42 has a
authorChristos Zoulas <christos@zoulas.com>
Sun, 2 Mar 2014 00:01:29 +0000 (00:01 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 2 Mar 2014 00:01:29 +0000 (00:01 +0000)
bigger strength (70) than "JPEG image data" in jpeg:12 (50). As a
result, the provided file is mis-detected as "Linux/i386 core".

magic/Magdir/linux

index 210fd89695888ae51433883135d9b7c12a984c07..4a9fdf9e23f12807c59b106f15847bb6961ec3c2 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: linux,v 1.52 2013/11/19 23:18:15 christos Exp $
+# $File: linux,v 1.53 2014/01/08 22:26:12 christos Exp $
 # linux:  file(1) magic for Linux files
 #
 # Values for Linux/i386 binaries, from Daniel Quinlan <quinlan@yggdrasil.com>
@@ -40,6 +40,7 @@
 >28    long            !0              not stripped
 # core dump file, from Bill Reynolds <bill@goshawk.lanl.gov>
 216    lelong          0421            Linux/i386 core file
+!:strength / 2
 >220   string          >\0             of '%s'
 >200   lelong          >0              (signal %d)
 #