Include the 2 byte length field for the optional "extra data"

field when computing the length of the gzip header.

Thanks to Dag-Erling for pointing me to the OpenSSH tarballs,
which are the first files I've seen that actually used this field.
This commit is contained in:
Tim Kientzle 2009-05-23 04:31:05 +00:00
parent 8782031576
commit 9f1994b5e6

View File

@ -148,6 +148,7 @@ peek_at_header(struct archive_read_filter *filter, int *pbits)
if (p == NULL)
return (0);
len += ((int)p[len + 1] << 8) | (int)p[len];
len += 2;
}
/* Null-terminated optional filename. */