summaryrefslogtreecommitdiff
path: root/archival/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/tar.c')
-rw-r--r--archival/tar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 1cdae29..992128e 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -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;