bugGNU tar - Bugs: bug #63048, chksum field explanation in GNU...

 
 

bug #63048: chksum field explanation in GNU tar manual is wrong

Submitter:  LGTR <lgtr>
Submitted:  Sun 11 Sep 2022 09:58:26 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  gray
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 18 Apr 2023 08:17:25 AM UTC, comment #2: 

Fixed in 6a1581240bfccfd12bfe88cb4075ddd0482d879b. Thank you.

Sergey Poznyakoff <gray>
Group administrator
Mon 12 Sep 2022 10:05:15 PM UTC, comment #1: 

I've seen that the manual says:
"When calculating the checksum, the chksum field is treated as if it were all blanks."

However the "blank" word has different meaning in different english jargons/slangs. I see for the author is means a space (0x20), however for other people blank means empty (0x00/NULL) or even zero (0x30/0) I think a little clarification should be added specifying the hex or decimal value for the chksum field.

LGTR <lgtr>
Sun 11 Sep 2022 09:58:26 PM UTC, original submission:  

GNU Tar 1.34 manual:
https://www.gnu.org/software/tar/manual/html_node/Standard.html

chksum explanation states that its value is the sum of all bytes in the header block.

That is incorrect. chksum is the is the sum of all bytes in the header block EXCEPT those in the 8 offsets for the chksum itself (offsets 148..155), with either:

1. Replacing each byte in chksum offset (148..155) by a space (20 hexadecimal, 30 decimal), before performing the sum, or
2. adding 256 decimal (100 hex) at the end in a single take.

LGTR <lgtr>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gray (Posted a comment)
  • -email is unavailable- added by lgtr (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-04-18 gray StatusNone Fixed
        Assigned toNone gray
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code