File: magic.diff

package info (click to toggle)
mono 1.9.1%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 173,128 kB
  • ctags: 310,695
  • sloc: cs: 1,855,117; ansic: 276,741; sh: 21,695; xml: 15,360; makefile: 6,139; perl: 1,508; asm: 689; yacc: 288; sql: 81
file content (15 lines) | stat: -rw-r--r-- 628 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
This is a patch that can be applied to the magic file used by file(1) to
recognize mono assemblies.
Apply it to the magic file (usually in /usr/share/file/magic or
/usr/share/misc/magic) and recompile it with file -C.

--- magic.old	2006-03-24 21:12:25.000000000 +0100
+++ magic	2006-03-24 21:12:17.000000000 +0100
@@ -7205,6 +7205,7 @@
 >>>>(0x3c.l+4)	leshort		0x290	PA-RISC
 >>>>(0x3c.l+22)	leshort&0x0100	>0	32-bit
 >>>>(0x3c.l+22)	leshort&0x1000	>0	system file
+>>>>(0x3c.l+232)	lelong	>0	Mono/.Net assembly
 
 >>>>(0x3c.l+0xf8)	string		UPX0 \b, UPX compressed
 >>>>(0x3c.l+0xf8)	search/0x140	PEC2 \b, PECompact2 compressed