diff options
author | René Scharfe <l.s.r@web.de> | 2017-04-24 19:33:34 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-24 22:10:51 -0700 |
commit | 4cdf3f9d84568da72f1dcade812de7a42ecb6d15 (patch) | |
tree | ee733137bc2857d624e12c6cdd2a357fb5a69302 /path.c | |
parent | archive-zip: support archives bigger than 4GB (diff) | |
download | tgif-4cdf3f9d84568da72f1dcade812de7a42ecb6d15.tar.xz |
archive-zip: support files bigger than 4GB
Write a zip64 extended information extra field for big files as part of
their local headers and as part of their central directory headers.
Also write a zip64 version of the data descriptor in that case.
If we're streaming then we don't know the compressed size at the time we
write the header. Deflate can end up making a file bigger instead of
smaller if we're unlucky. Write a local zip64 header already for files
with a size of 2GB or more in this case to be on the safe side.
Both sizes need to be included in the local zip64 header, but the extra
field for the directory must only contain 64-bit equivalents for 32-bit
values of 0xffffffff.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
0 files changed, 0 insertions, 0 deletions