]> Cypherpunks repositories - gostls13.git/commit
archive/zip: support full range of FileMode flags
authorGustavo Niemeyer <gustavo@niemeyer.net>
Mon, 6 Feb 2012 13:58:32 +0000 (11:58 -0200)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Mon, 6 Feb 2012 13:58:32 +0000 (11:58 -0200)
commit02fb021161cf36cf7326380fb1ff9239cd195067
treed8ff41f7d9402eb516259267370e12f6714628d1
parent419c53af30c1898a75ac0ef5ba49533ea91ddcfc
archive/zip: support full range of FileMode flags

Zip files may actually store symlinks, and that's represented
as a file with unix flag S_IFLNK and with its data containing
the symlink target name.

The other flags are being supported too. Now that the os package
has the full range of flags in a system agnostic manner, there's
no reason to discard that information.

R=golang-dev, adg, rogpeppe
CC=golang-dev
https://golang.org/cl/5624048
src/pkg/archive/zip/reader_test.go
src/pkg/archive/zip/struct.go
src/pkg/archive/zip/testdata/symlink.zip [new file with mode: 0644]
src/pkg/archive/zip/writer_test.go