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

Issue 5823045: code review 5823045: misc/dist: force modes to 0755 or 0644 in tarballs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by adg
Modified:
13 years, 1 month ago
Reviewers:
bradfitz
CC:
golang-dev, dsymonds
Visibility:
Public.

Description

misc/dist: force modes to 0755 or 0644 in tarballs

Patch Set 1 #

Total comments: 2

Patch Set 2 : diff -r 8328e5baaf10 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M misc/dist/bindist.go View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 6
adg
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
13 years, 1 month ago (2012-03-14 06:03:18 UTC) #1
dsymonds
http://codereview.appspot.com/5823045/diff/1/misc/dist/bindist.go File misc/dist/bindist.go (right): http://codereview.appspot.com/5823045/diff/1/misc/dist/bindist.go#newcode540 misc/dist/bindist.go:540: if hdr.Mode|0111 != 0 { s/|/&/ right?
13 years, 1 month ago (2012-03-14 06:05:25 UTC) #2
dsymonds
Modulo the wrong binary operator, LGTM.
13 years, 1 month ago (2012-03-14 06:06:26 UTC) #3
adg
*** Submitted as http://code.google.com/p/go/source/detail?r=11f6f0da51f6 *** misc/dist: force modes to 0755 or 0644 in tarballs R=golang-dev, ...
13 years, 1 month ago (2012-03-14 06:09:20 UTC) #4
bradfitz
This is wrong. Mode != Permission. You're destroying the C_ISREG, etc bits on Mode. On ...
13 years, 1 month ago (2012-03-14 14:34:12 UTC) #5
bradfitz
13 years, 1 month ago (2012-03-14 14:50:32 UTC) #6
See
http://codereview.appspot.com/**5822046/<http://codereview.appspot.com/5822046/>

On Wed, Mar 14, 2012 at 7:34 AM, Brad Fitzpatrick <bradfitz@golang.org>wrote:

> This is wrong.
>
> Mode != Permission.  You're destroying the C_ISREG, etc bits on Mode.
>
>
> On Tue, Mar 13, 2012 at 11:09 PM, <adg@golang.org> wrote:
>
>> *** Submitted as
>>
http://code.google.com/p/go/**source/detail?r=11f6f0da51f6<http://code.google...
>>
>>
>> misc/dist: force modes to 0755 or 0644 in tarballs
>>
>> R=golang-dev, dsymonds
>> CC=golang-dev
>>
http://codereview.appspot.com/**5823045<http://codereview.appspot.com/5823045>
>>
>>
>>
>>
>>
http://codereview.appspot.com/**5823045/diff/1/misc/dist/**bindist.go<http://...
>> File misc/dist/bindist.go (right):
>>
>> http://codereview.appspot.com/**5823045/diff/1/misc/dist/**
>>
bindist.go#newcode540<http://codereview.appspot.com/5823045/diff/1/misc/dist/bindist.go#newcode540>
>> misc/dist/bindist.go:540: if hdr.Mode|0111 != 0 {
>> On 2012/03/14 06:05:26, dsymonds wrote:
>>
>>> s/|/&/ right?
>>>
>>
>> Yes, of course.
>>
>>
http://codereview.appspot.com/**5823045/<http://codereview.appspot.com/5823045/>
>>
>
>
Sign in to reply to this message.

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