v05i028: /etc/magic lines for compress
Bob Peirce
news at investor.UUCP
Tue Nov 15 10:22:57 AEST 1988
In article <2643 at nuchat.UUCP> steve at nuchat.UUCP (Steve Nuchia) writes:
>Posting-number: Volume 5, Issue 28
>Submitted-by: "Steve Nuchia" <steve at nuchat.UUCP>
>Archive-name: compress.magic
>
>If you have a file(1) compatible with the one in sysVr3
>adding the following lines to /etc/magic will make it
>recognize compressed files.
>
>0 short 40223 compressed data
>>2 byte <0200 - %d bits
>>2 byte 0214 - 12 bits
>>2 byte 0215 - 13 bits
>>2 byte 0220 - 16 bits
>
We have SysVr2.2 and the 40223 needed to be changed to 8093 (1F9D hex).
Use "od -x" on a compressed file to see if your first word is different.
We also found a space in front of the '-' would be included in the
output leading to "compressed data - 16 bits" instead of "compressed
data- 16 bits".
Much thanks for the idea.
--
Bob Peirce, Pittsburgh, PA 412-471-5320
uucp: ...!{allegra, bellcore, cadre, idis, psuvax1}!pitt!investor!rbp
NOTE: Mail must be < 30K bytes/message
More information about the Comp.sources.bugs
mailing list