tar: handle tarfiles with (broken) checksums a-la Sun.

This commit is contained in:
Denis Vlasenko
2007-03-03 20:06:59 +00:00
parent 19c238bc90
commit dcbd51dd28
2 changed files with 16 additions and 6 deletions

View File

@@ -173,6 +173,9 @@ static void putOctal(char *cp, int len, off_t value)
static void chksum_and_xwrite(int fd, struct TarHeader* hp)
{
/* POSIX says that checksum is done on unsigned bytes
* (Sun and HP-UX fucked it up... more details in
* GNU tar source) */
const unsigned char *cp;
int chksum, size;