Blame SOURCES/file-5.14-netpbm.patch

b3cb2e
diff --git a/magic/Magdir/images b/magic/Magdir/images
b3cb2e
index e94905c..a25d292 100644
b3cb2e
--- a/magic/Magdir/images
b3cb2e
+++ b/magic/Magdir/images
b3cb2e
@@ -32,17 +32,42 @@
b3cb2e
 
b3cb2e
 # PBMPLUS images
b3cb2e
 # The next byte following the magic is always whitespace.
b3cb2e
-0	search/1	P1		Netpbm PBM image text
b3cb2e
+# strength is changed to try these patterns before "x86 boot sector"
b3cb2e
+0	search/1	P1		
b3cb2e
+>3	regex		=[0-9]*\ [0-9]*		Netpbm PBM image text
b3cb2e
+>3	regex		=[0-9]+\ 		\b, size = %sx
b3cb2e
+>>3	regex		=\ [0-9]+	\b%s
b3cb2e
+!:strength + 45
b3cb2e
 !:mime	image/x-portable-bitmap
b3cb2e
-0	search/1b	P2		Netpbm PGM image text
b3cb2e
+0	search/1	P2		
b3cb2e
+>3	regex		=[0-9]*\ [0-9]*		Netpbm PGM image text
b3cb2e
+>3	regex		=[0-9]+\ 		\b, size = %sx
b3cb2e
+>>3	regex		=\ [0-9]+	\b%s
b3cb2e
+!:strength + 45
b3cb2e
 !:mime	image/x-portable-greymap
b3cb2e
 0	search/1	P3		Netpbm PPM image text
b3cb2e
+>3	regex		=[0-9]*\ [0-9]*		Netpbm PPM image text
b3cb2e
+>3	regex		=[0-9]+\ 		\b, size = %sx
b3cb2e
+>>3	regex		=\ [0-9]+	\b%s
b3cb2e
+!:strength + 45
b3cb2e
 !:mime	image/x-portable-pixmap
b3cb2e
-0	string		P4		Netpbm PBM "rawbits" image data
b3cb2e
+0	string		P4		
b3cb2e
+>3	regex		=[0-9]*\ [0-9]*		Netpbm PBM "rawbits" image data
b3cb2e
+>3	regex		=[0-9]+\ 		\b, size = %sx
b3cb2e
+>>3	regex		=\ [0-9]+	\b%s
b3cb2e
+!:strength + 45
b3cb2e
 !:mime	image/x-portable-bitmap
b3cb2e
-0	string		P5		Netpbm PGM "rawbits" image data
b3cb2e
+0	string		P5		
b3cb2e
+>3	regex		=[0-9]*\ [0-9]*		Netpbm PGM "rawbits" image data
b3cb2e
+>3	regex		=[0-9]+\ 		\b, size = %sx
b3cb2e
+>>3	regex		=\ [0-9]+	\b%s
b3cb2e
+!:strength + 45
b3cb2e
 !:mime	image/x-portable-greymap
b3cb2e
-0	string		P6		Netpbm PPM "rawbits" image data
b3cb2e
+0	string		P6		
b3cb2e
+>3	regex		=[0-9]*\ [0-9]*		Netpbm PPM "rawbits" image data
b3cb2e
+>3	regex		=[0-9]+\ 		\b, size = %sx
b3cb2e
+>>3	regex		=\ [0-9]+	\b%s
b3cb2e
+!:strength + 45
b3cb2e
 !:mime	image/x-portable-pixmap
b3cb2e
 0	string		P7		Netpbm PAM image file
b3cb2e
 !:mime	image/x-portable-pixmap