Blame SOURCES/file-5.14-netpbm.patch

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