aboutsummaryrefslogtreecommitdiffstats
path: root/zip
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2018-06-23 06:14:01 +0000
committerColin Cross <ccross@android.com>2018-06-23 06:14:01 +0000
commit5aff065626d13eb0699087f83bf28873978546ef (patch)
tree8f4a9c5ae8cfe3db923077d703c527290eb1004c /zip
parentb88c4dfb8794c0618067c127794445e8fd821c33 (diff)
downloadbuild_soong-5aff065626d13eb0699087f83bf28873978546ef.tar.gz
build_soong-5aff065626d13eb0699087f83bf28873978546ef.tar.bz2
build_soong-5aff065626d13eb0699087f83bf28873978546ef.zip
Revert "soong_zip: set local header crc for symlinks"
This reverts commit b88c4dfb8794c0618067c127794445e8fd821c33. This made it worse, now that the local header crc matches the global header, unzip will attempt to unzip the symlink. However, the local header size is still incorrect, so it produces an empty file instead of a symlink. Bug: 110716403 Change-Id: Ifd9aabc04d180b7ead4aec8566c151206b6b7c57
Diffstat (limited to 'zip')
-rw-r--r--zip/zip.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/zip/zip.go b/zip/zip.go
index 4d29f669..b7e37646 100644
--- a/zip/zip.go
+++ b/zip/zip.go
@@ -795,8 +795,6 @@ func (z *ZipWriter) writeSymlink(rel, file string) error {
return err
}
- fileHeader.CRC32 = crc32.ChecksumIEEE([]byte(dest))
-
ze := make(chan *zipEntry, 1)
futureReaders := make(chan chan io.Reader, 1)
futureReader := make(chan io.Reader, 1)