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

Issue 5647047: charm: fix symlink and file mode when bundling/expanding

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by niemeyer
Modified:
6 months, 1 week ago
Reviewers:
mp+91960, gustavo, kapil.foss, fwereade, rog
Visibility:
Public.

Description

https://code.launchpad.net/~niemeyer/juju/go-charm-symlinks/+merge/91960 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : charm: fix symlink and file mode when bundling/expanding #

Patch Set 3 : charm: fix symlink and file mode when bundling/expanding #

Patch Set 4 : charm: fix symlink and file mode when bundling/expanding #

Total comments: 10

Patch Set 5 : charm: fix symlink and file mode when bundling/expanding #

Total comments: 5

Patch Set 6 : charm: fix symlink and file mode when bundling/expanding #

Patch Set 7 : charm: fix symlink and file mode when bundling/expanding #

Total comments: 6

Patch Set 8 : charm: fix symlink and file mode when bundling/expanding #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -15 lines) Patch
M charm/bundle.go View 1 2 3 4 5 6 7 4 chunks +33 lines, -3 lines 0 comments Download
M charm/bundle_test.go View 1 2 3 4 5 6 7 2 chunks +30 lines, -1 line 0 comments Download
M charm/charm_test.go View 1 2 3 4 5 6 7 2 chunks +41 lines, -2 lines 0 comments Download
M charm/dir.go View 1 2 3 4 5 6 7 2 chunks +47 lines, -4 lines 0 comments Download
M charm/dir_test.go View 1 2 3 4 5 6 7 5 chunks +56 lines, -5 lines 0 comments Download

Messages

Total messages: 19
niemeyer
Please take a look.
12 years, 3 months ago (2012-02-08 01:29:33 UTC) #1
niemeyer
Please take a look.
12 years, 3 months ago (2012-02-08 01:38:13 UTC) #2
fwereade
LGTM: can't see anything to complain about here :).
12 years, 3 months ago (2012-02-08 09:13:21 UTC) #3
rog
https://codereview.appspot.com/5647047/diff/6001/charm/bundle.go File charm/bundle.go (right): https://codereview.appspot.com/5647047/diff/6001/charm/bundle.go#newcode201 charm/bundle.go:201: err = os.MkdirAll(path, mode & 0777) do we care ...
12 years, 3 months ago (2012-02-08 09:56:55 UTC) #4
niemeyer
PTAL https://codereview.appspot.com/5647047/diff/6001/charm/bundle.go File charm/bundle.go (right): https://codereview.appspot.com/5647047/diff/6001/charm/bundle.go#newcode201 charm/bundle.go:201: err = os.MkdirAll(path, mode & 0777) On 2012/02/08 ...
12 years, 3 months ago (2012-02-08 16:27:21 UTC) #5
niemeyer
Please take a look.
12 years, 3 months ago (2012-02-08 16:37:52 UTC) #6
rog
https://codereview.appspot.com/5647047/diff/7001/charm/dir.go File charm/dir.go (right): https://codereview.appspot.com/5647047/diff/7001/charm/dir.go#newcode171 charm/dir.go:171: perm := os.FileMode(0644) i think i'd be inclined to ...
12 years, 3 months ago (2012-02-08 17:14:29 UTC) #7
niemeyer
https://codereview.appspot.com/5647047/diff/7001/charm/dir.go File charm/dir.go (right): https://codereview.appspot.com/5647047/diff/7001/charm/dir.go#newcode177 charm/dir.go:177: h.SetMode(fi.Mode()&^0777|perm) On 2012/02/08 17:14:29, rog wrote: > do we ...
12 years, 3 months ago (2012-02-08 17:21:54 UTC) #8
niemeyer
Please take a look.
12 years, 3 months ago (2012-02-08 17:32:01 UTC) #9
rog
https://codereview.appspot.com/5647047/diff/7001/charm/dir.go File charm/dir.go (right): https://codereview.appspot.com/5647047/diff/7001/charm/dir.go#newcode177 charm/dir.go:177: h.SetMode(fi.Mode()&^0777|perm) On 2012/02/08 17:21:54, niemeyer wrote: > On 2012/02/08 ...
12 years, 3 months ago (2012-02-08 17:40:18 UTC) #10
niemeyer
https://codereview.appspot.com/5647047/diff/7001/charm/dir.go File charm/dir.go (right): https://codereview.appspot.com/5647047/diff/7001/charm/dir.go#newcode177 charm/dir.go:177: h.SetMode(fi.Mode()&^0777|perm) On 2012/02/08 17:40:18, rog wrote: > sorry, i ...
12 years, 3 months ago (2012-02-08 17:55:52 UTC) #11
niemeyer
Please take a look.
12 years, 3 months ago (2012-02-08 18:47:29 UTC) #12
niemeyer
On 2012/02/08 18:47:29, niemeyer wrote: > Please take a look. Anything else?
12 years, 3 months ago (2012-02-10 13:03:26 UTC) #13
fwereade
Apart from 1 minor, LGTM. https://codereview.appspot.com/5647047/diff/13/charm/bundle.go File charm/bundle.go (right): https://codereview.appspot.com/5647047/diff/13/charm/bundle.go#newcode243 charm/bundle.go:243: func hasDotDot(path string) bool ...
12 years, 3 months ago (2012-02-10 13:52:32 UTC) #14
rog
LGTM https://codereview.appspot.com/5647047/diff/13/charm/bundle.go File charm/bundle.go (right): https://codereview.appspot.com/5647047/diff/13/charm/bundle.go#newcode244 charm/bundle.go:244: return len(path) >= 2 && path[:2] == ".." ...
12 years, 3 months ago (2012-02-10 15:20:13 UTC) #15
niemeyer
https://codereview.appspot.com/5647047/diff/13/charm/bundle.go File charm/bundle.go (right): https://codereview.appspot.com/5647047/diff/13/charm/bundle.go#newcode243 charm/bundle.go:243: func hasDotDot(path string) bool { On 2012/02/10 13:52:32, fwereade ...
12 years, 3 months ago (2012-02-10 16:29:47 UTC) #16
niemeyer
*** Submitted: charm: fix symlink and file mode when bundling/expanding R=fwereade, rog CC= https://codereview.appspot.com/5647047
12 years, 3 months ago (2012-02-10 16:34:45 UTC) #17
kapil.foss
It doesn't appear the de-referenced symlink has its type checked.
12 years, 3 months ago (2012-02-10 16:50:30 UTC) #18
gustavo_niemeyer.net
12 years, 3 months ago (2012-02-10 16:56:40 UTC) #19
On Fri, Feb 10, 2012 at 14:50,  <kapil.foss@gmail.com> wrote:
> It doesn't appear the de-referenced symlink has its type checked.

The link is never dereferenced. We just check its target, which is the
link's content, for validity.

-- 
Gustavo Niemeyer
http://niemeyer.net
http://niemeyer.net/plus
http://niemeyer.net/twitter
http://niemeyer.net/blog

-- I'm not absolutely sure of anything.
Sign in to reply to this message.

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