[comp.unix.wizards] useful /etc/magic entries

dupuy@amsterdam.UUCP (04/24/87)

Here are a few lines you can add to /etc/magic on your sun workstations in
order to recognize VAX executables and objects.  I guess you could do something
similar (in reverse) for your vaxen, but since 4.3+NFS' file(1) doesn't look
for /etc/magic, I've never bothered.  It really should be built in to file(1)
so you would see the state of setuid/setgid/sticky bits.  Or actually, there
should be support for checking that sort of thing in /etc/magic.

I've also thrown in an entry for the new P1003 tar format, based on John
Gilmore's implementation (haven't tested it).  Sadly, the ``standard'' Unix tar
doesn't have any magic bits...

0	long		00700200000	VAX executable
>16	long&0x7fffffff	>0		not stripped
0	long		01000200000	VAX pure executable
>16	long&0x7fffffff	>0		not stripped
0	long		01300200000	VAX demand-paged pure executable
>16	long&0x7fffffff	>0		not stripped
0	long		01100200000	PDP-11 executable
257	string		ustar  		new standard tar archive

@alex
---
arpanet: dupuy@columbia.edu
uucp:	...!seismo!columbia!dupuy