Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(329)

Issue 5624048: code review 5624048: archive/zip: support full range of FileMode flags (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by niemeyer
Modified:
12 years, 3 months ago
Reviewers:
CC:
golang-dev, adg, rog
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : code review 5624048: archive/zip: support full range of FileMode flags #

Patch Set 3 : diff -r 389444436d35 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 389444436d35 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 5 : diff -r 886ac920d2b9 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -17 lines) Patch
M src/pkg/archive/zip/reader_test.go View 1 2 1 chunk +17 lines, -2 lines 0 comments Download
M src/pkg/archive/zip/struct.go View 1 2 4 chunks +51 lines, -12 lines 0 comments Download
A src/pkg/archive/zip/testdata/symlink.zip View 1 2 Binary file 0 comments Download
M src/pkg/archive/zip/writer_test.go View 1 2 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5
niemeyer
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 3 months ago (2012-02-04 00:11:42 UTC) #1
adg
LGTM http://codereview.appspot.com/5624048/diff/3/src/pkg/archive/zip/struct.go File src/pkg/archive/zip/struct.go (right): http://codereview.appspot.com/5624048/diff/3/src/pkg/archive/zip/struct.go#newcode157 src/pkg/archive/zip/struct.go:157: // but these seem to be the values ...
12 years, 3 months ago (2012-02-05 23:58:26 UTC) #2
niemeyer
http://codereview.appspot.com/5624048/diff/3/src/pkg/archive/zip/struct.go File src/pkg/archive/zip/struct.go (right): http://codereview.appspot.com/5624048/diff/3/src/pkg/archive/zip/struct.go#newcode157 src/pkg/archive/zip/struct.go:157: // but these seem to be the values agreed ...
12 years, 3 months ago (2012-02-06 01:06:35 UTC) #3
rog
LGTM On 6 February 2012 01:06, <n13m3y3r@gmail.com> wrote: > > http://codereview.appspot.com/5624048/diff/3/src/pkg/archive/zip/struct.go > File src/pkg/archive/zip/struct.go (right): ...
12 years, 3 months ago (2012-02-06 11:20:46 UTC) #4
niemeyer
12 years, 3 months ago (2012-02-06 13:59:04 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=42021369841c ***

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
http://codereview.appspot.com/5624048
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b