Revert "soong_zip: set local header crc for symlinks"
This reverts commit b88c4dfb87
.
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
This commit is contained in:
parent
b88c4dfb87
commit
5aff065626
|
@ -795,8 +795,6 @@ func (z *ZipWriter) writeSymlink(rel, file string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
fileHeader.CRC32 = crc32.ChecksumIEEE([]byte(dest))
|
|
||||||
|
|
||||||
ze := make(chan *zipEntry, 1)
|
ze := make(chan *zipEntry, 1)
|
||||||
futureReaders := make(chan chan io.Reader, 1)
|
futureReaders := make(chan chan io.Reader, 1)
|
||||||
futureReader := make(chan io.Reader, 1)
|
futureReader := make(chan io.Reader, 1)
|
||||||
|
|
Loading…
Reference in New Issue