chksum in tar header block

Hal N. Brooks hal at ugacs.UUCP
Thu Jan 28 00:37:38 AEST 1988



In Message-ID: <243 at mancol.UUCP> samperi at mancol.UUCP writes:

>  Can somebody explain how the chksum in a tar header block is computed? ...
>  I can't seem to compute a checksum by hand that agrees with the
>  figure displayed (using od -c for the dump). ...

and spaf replies:

>  Look in section 5 of your manual, at the entry that describes the
>  tar tape format.  It explains how the checksum is calculated.

I found that our AT&T System V documentation didn't include the tar(5)
page, so I had to rely on tar(5) from someone else's Ultrix manual.  At
any rate, you seem to already have access to this information.

The discrepancy I noted was that this manual page stated:

   "`Chksum' is a decimal ASCII value ..."

when it SHOULD have said:

   "`Chksum' is an OCTAL ASCII value ..."

Actually I shouldn't say `should', since I was using header documentation
belonging to a different system.

I have no comments on XENIX.

Let me know if this works for you.


-hal    (...gatech!ugacs!hal)

Hal Brooks
Univ. of Ga.
CS Dept. Systems Support

No warranty is expressed or implied.



More information about the Comp.unix.questions mailing list