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

Issue 5440130: code review 5440130: archive/zip: make zip understand os.FileMode.

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 4 months ago by rog
Modified:
14 years, 4 months ago
Reviewers:
r, adg, rsc
CC:
rsc, r, adg, golang-dev
Visibility:
Public.

Description

archive/zip: make zip understand os.FileMode. Fixes implicit dependency on underlying os file modes.

Patch Set 1 #

Patch Set 2 : diff -r 8e8c4fb05171 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 8e8c4fb05171 https://go.googlecode.com/hg/ #

Total comments: 7

Patch Set 4 : diff -r 8e8c4fb05171 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 8e8c4fb05171 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 8e8c4fb05171 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 8e8c4fb05171 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -23 lines) Patch
M src/pkg/archive/zip/reader_test.go View 1 2 3 9 chunks +51 lines, -13 lines 0 comments Download
M src/pkg/archive/zip/struct.go View 1 2 3 4 5 6 3 chunks +80 lines, -8 lines 0 comments Download
A src/pkg/archive/zip/testdata/unix.zip View 1 2 3 Binary file 0 comments Download
A src/pkg/archive/zip/testdata/winxp.zip View 1 2 3 Binary file 0 comments Download
M src/pkg/archive/zip/writer_test.go View 1 2 3 3 chunks +22 lines, -2 lines 0 comments Download

Messages

Total messages: 17
rog
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 4 months ago (2011-12-07 19:08:36 UTC) #1
r
LGTM modulo one tiny edit no need to single out team members for generic reviews ...
14 years, 4 months ago (2011-12-07 19:12:38 UTC) #2
niemeyer
Nice, thanks for taking care of this Roger. http://codereview.appspot.com/5440130/diff/1002/src/pkg/archive/zip/struct.go File src/pkg/archive/zip/struct.go (right): http://codereview.appspot.com/5440130/diff/1002/src/pkg/archive/zip/struct.go#newcode133 src/pkg/archive/zip/struct.go:133: switch ...
14 years, 4 months ago (2011-12-07 20:09:15 UTC) #3
rsc
http://codereview.appspot.com/5440130/diff/1002/src/pkg/archive/zip/struct.go File src/pkg/archive/zip/struct.go (right): http://codereview.appspot.com/5440130/diff/1002/src/pkg/archive/zip/struct.go#newcode119 src/pkg/archive/zip/struct.go:119: s_IFMT = 0xf000 Does the ZIP format define these? ...
14 years, 4 months ago (2011-12-07 20:11:05 UTC) #4
niemeyer
> src/pkg/archive/zip/struct.go:119: s_IFMT = 0xf000 > Does the ZIP format define these? > I have ...
14 years, 4 months ago (2011-12-07 21:19:43 UTC) #5
rsc
On Wed, Dec 7, 2011 at 16:19, <n13m3y3r@gmail.com> wrote: > It's unfortunately a bit vague ...
14 years, 4 months ago (2011-12-07 21:22:02 UTC) #6
niemeyer
> So where did the numbers come from? > You say that zipinfo agrees, but ...
14 years, 4 months ago (2011-12-07 21:37:07 UTC) #7
rog
http://codereview.appspot.com/5440130/diff/1002/src/pkg/archive/zip/struct.go File src/pkg/archive/zip/struct.go (right): http://codereview.appspot.com/5440130/diff/1002/src/pkg/archive/zip/struct.go#newcode119 src/pkg/archive/zip/struct.go:119: s_IFMT = 0xf000 On 2011/12/07 20:11:05, rsc wrote: > ...
14 years, 4 months ago (2011-12-07 22:42:21 UTC) #8
niemeyer
> this isn't quite equivalent if mode has more than one bit set. All of ...
14 years, 4 months ago (2011-12-07 22:57:52 UTC) #9
rsc
Why are we bothering with these bits at all? Russ
14 years, 4 months ago (2011-12-07 23:09:06 UTC) #10
gustavo_niemeyer.net
> Why are we bothering with these bits at all? True. The useful bits are ...
14 years, 4 months ago (2011-12-07 23:14:24 UTC) #11
rog
Hello rsc@golang.org, r@golang.org, n13m3y3r@gmail.com, gustavo@niemeyer.net (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 4 months ago (2011-12-08 11:28:57 UTC) #12
rog
On 7 December 2011 23:14, Gustavo Niemeyer <gustavo@niemeyer.net> wrote:>> Why are we bothering with these ...
14 years, 4 months ago (2011-12-08 11:40:24 UTC) #13
adg
LGTM, but since rsc had issues before I'll let him submit. WHAT A WONDERFUL FILE ...
14 years, 4 months ago (2011-12-09 05:08:06 UTC) #14
rsc
lgtm. yuck.
14 years, 4 months ago (2011-12-12 20:22:05 UTC) #15
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=264fb4d09991 *** archive/zip: make zip understand os.FileMode. Fixes implicit dependency on underlying ...
14 years, 4 months ago (2011-12-12 20:22:58 UTC) #16
niemeyer
14 years, 4 months ago (2011-12-13 21:28:38 UTC) #17
 
Sign in to reply to this message.

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