diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-06-13 10:42:25 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-13 10:47:21 -0700 |
commit | a5a46eb90f530c731084a57783ca9fdbf1a52163 (patch) | |
tree | 13b77bd8f9ad3a31b25b48b1af41993fafc9ae94 /t/t4013/diff.show_--root_initial | |
parent | Git 1.7.11-rc0 (diff) | |
download | tgif-a5a46eb90f530c731084a57783ca9fdbf1a52163.tar.xz |
archive: ustar header checksum is computed unsigned
POSIX.1 (pax) is pretty clear on this:
The chksum field shall be the ISO/IEC 646:1991 standard IRV
representation of the octal value of the simple sum of all octets
in the header logical record. Each octet in the header shall be
treated as an unsigned value. These values shall be added to an
unsigned integer, initialized to zero, the precision of which is
not less than 17 bits. When calculating the checksum, the chksum
field is treated as if it were all <space> characters.
so is GNU:
http://www.gnu.org/software/tar/manual/html_node/Checksumming.html
Found by 7zip folks and reported by Rafał Mużyło.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.show_--root_initial')
0 files changed, 0 insertions, 0 deletions