Are SunOS 4.1 magic numbers wrong ?

Farooq Butt fmbutt at mrbt.sw.stratus.com
Tue Jul 31 14:05:36 AEST 1990


I just created two tarfiles on my SS1+ running 4.1.  
BUT, SunOS claims that:

cdecl.tar:	c program text
foo:		ascii text

BUT, BOTH of these are tarfiles, as demonstrated by:


mrbt% tar tvf foo
rw-rw-r--  0/10 417638 Jul 30 23:52 1990 ./cd.tar.uu
rw-r--r--831/10 303104 Jul 30 23:51 1990 ./cdecl.tar
mrbt% 


      and


mrbt% tar tvf cdecl.tar 
rwxr-sr-x831/42      0 Jul 30 23:46 1990 ./cdecl/
rwxr-xr-x831/42  43634 Feb 10 21:29 1989 ./cdecl/cdecl1
rwxr-xr-x831/42  27816 Feb 10 21:29 1989 ./cdecl/cdecl2
rwxr-xr-x831/42    362 Feb 10 21:29 1989 ./cdecl/MANIFEST
rwxr-xr-x831/42   9789 Feb 10 21:29 1989 ./cdecl/cdecl.1
rwxr-xr-x831/42  22746 Feb 10 21:29 1989 ./cdecl/cdgram.y
rwxr-xr-x831/42   2380 Feb 10 21:29 1989 ./cdecl/cdlex.l
rwxr-xr-x831/42   1322 Feb 10 21:29 1989 ./cdecl/makefile
rwxr-xr-x831/42   1038 Feb 10 21:29 1989 ./cdecl/testset
rwxr-xr-x831/42   1337 Feb 10 21:29 1989 ./cdecl/testset++
rwxr-xr-x831/42   1340 Feb 10 21:29 1989 ./cdecl/makefile~
rwxr-xr-x831/42  25555 Feb 10 21:29 1989 ./cdecl/cdecl.c
rw-r--r--831/42  49695 Jul 30 23:45 1990 ./cdecl/cdgram.c
rwxr-xr-x831/42  65536 Jul 30 23:46 1990 ./cdecl/c++decl
rwxr-xr-x831/42  65536 Jul 30 23:46 1990 ./cdecl/cdecl linked to ./cdecl/c++decl
rwxr-xr-x831/42   9817 Feb 10 21:29 1989 ./cdecl/cdecl.1~
rw-r--r--831/42  21444 Jul 30 23:45 1990 ./cdecl/cdlex.c
mrbt% 



Why is this happening ?  Does the "file" command despise me ?

-Farooq

--
Hi-Tech Disclaimer: NOTHING in the above article has any relationship
            to reality. If any reality correspondences are found, 
            please notify me IMMEDIATELY.  Any threats or abuse 
            of any kind is purely unintentional. My employer is not liable.  



More information about the Comp.unix.wizards mailing list