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

Issue 4521053: code review 4521053: os/user: Windows support

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by pjmlp
Modified:
12 years, 10 months ago
CC:
golang-dev
Visibility:
Public.

Description

os/user: Windows support Fixes issue 1789.

Patch Set 1 #

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

Total comments: 59

Patch Set 3 : diff -r 2f0fa51fa2da https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 2f0fa51fa2da https://go.googlecode.com/hg/ #

Total comments: 33

Patch Set 5 : diff -r 2f0fa51fa2da https://go.googlecode.com/hg/ #

Total comments: 12

Patch Set 6 : diff -r 4ce4c75f9bb5 https://go.googlecode.com/hg/ #

Total comments: 22

Patch Set 7 : diff -r 4ce4c75f9bb5 https://go.googlecode.com/hg/ #

Total comments: 24

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

Total comments: 10

Patch Set 9 : diff -r 229964514e15 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -10 lines) Patch
M src/pkg/os/user/Makefile View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/os/user/lookup_unix.go View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -0 lines 0 comments Download
A src/pkg/os/user/lookup_windows.go View 1 2 3 4 5 6 7 8 1 chunk +176 lines, -0 lines 0 comments Download
M src/pkg/os/user/user.go View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -3 lines 0 comments Download
M src/pkg/os/user/user_test.go View 1 2 3 4 5 6 7 8 3 chunks +68 lines, -7 lines 0 comments Download

Messages

Total messages: 45
brainman
It's a start. Lets try to make it as simple as possible. Alex http://codereview.appspot.com/4521053/diff/2001/src/pkg/os/user/lookup_unix.go File ...
12 years, 11 months ago (2011-05-10 13:15:45 UTC) #1
pjmlp
Hi, here are my comments. Please let me know your view on them, so that ...
12 years, 11 months ago (2011-05-11 09:30:26 UTC) #2
brainman
On 2011/05/11 09:30:26, pjmlp wrote: > > here are my comments. Please let me know ...
12 years, 11 months ago (2011-05-11 12:46:47 UTC) #3
bradfitz
A few comments. I'm mostly relying on brainman to handle this review. We could also ...
12 years, 11 months ago (2011-05-13 01:21:48 UTC) #4
pjmlp
Hello bradfitz, brainman (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 11 months ago (2011-05-16 12:53:32 UTC) #5
pjmlp
Hi, tried to follow most of the last recomendations. Commenting here, because I forgot to ...
12 years, 11 months ago (2011-05-16 12:57:37 UTC) #6
bradfitz
Please do all the syscall changes in a separate CL. Also, don't change the line ...
12 years, 11 months ago (2011-05-16 23:42:31 UTC) #7
pjmlp
On 2011/05/16 23:42:31, bradfitz wrote: > Please do all the syscall changes in a separate ...
12 years, 11 months ago (2011-05-17 07:59:01 UTC) #8
pjmlp
Hello bradfitz, brainman (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-05-17 08:03:29 UTC) #9
pjmlp
Hello bradfitz, brainman (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-05-17 08:07:42 UTC) #10
mattn
On 2011/05/17 08:07:42, pjmlp wrote: > Hello bradfitz, brainman (cc: mailto:golang-dev@googlegroups.com), > > Please take ...
12 years, 11 months ago (2011-05-18 00:52:26 UTC) #11
brainman
Shouldn't we have tests going for Windows too? I don't think it was good idea ...
12 years, 11 months ago (2011-05-18 05:57:22 UTC) #12
brainman
On 2011/05/18 00:52:26, mattn wrote: > > Do you forget to upload file in syscall ...
12 years, 11 months ago (2011-05-18 05:58:59 UTC) #13
pjmlp
I took care of most of the comments. Will upload a new change set. Please ...
12 years, 11 months ago (2011-05-18 08:30:31 UTC) #14
pjmlp
Hello bradfitz, brainman, mattn (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-05-18 08:36:23 UTC) #15
brainman
http://codereview.appspot.com/4521053/diff/14001/src/pkg/os/user/lookup_windows.go File src/pkg/os/user/lookup_windows.go (right): http://codereview.appspot.com/4521053/diff/14001/src/pkg/os/user/lookup_windows.go#newcode101 src/pkg/os/user/lookup_windows.go:101: func UserNameEx(format int32) (name string, err os.Error) { On ...
12 years, 11 months ago (2011-05-18 12:29:25 UTC) #16
bradfitzgoog
http://codereview.appspot.com/4521053/diff/12002/src/pkg/os/user/user.go File src/pkg/os/user/user.go (right): http://codereview.appspot.com/4521053/diff/12002/src/pkg/os/user/user.go#newcode15 src/pkg/os/user/user.go:15: Uid Id // user id We're not going to ...
12 years, 11 months ago (2011-05-18 14:11:02 UTC) #17
brainman
http://codereview.appspot.com/4521053/diff/12002/src/pkg/os/user/user.go File src/pkg/os/user/user.go (right): http://codereview.appspot.com/4521053/diff/12002/src/pkg/os/user/user.go#newcode15 src/pkg/os/user/user.go:15: Uid Id // user id On 2011/05/18 14:11:02, bradfitzgoog ...
12 years, 11 months ago (2011-05-19 02:54:04 UTC) #18
bradfitz
http://codereview.appspot.com/4521053/diff/12002/src/pkg/os/user/user.go File src/pkg/os/user/user.go (right): http://codereview.appspot.com/4521053/diff/12002/src/pkg/os/user/user.go#newcode15 src/pkg/os/user/user.go:15: Uid Id // user id On 2011/05/19 02:54:04, brainman ...
12 years, 11 months ago (2011-05-19 20:21:41 UTC) #19
pjmlp
On 2011/05/19 20:21:41, bradfitz wrote: > http://codereview.appspot.com/4521053/diff/12002/src/pkg/os/user/user.go > File src/pkg/os/user/user.go (right): > > http://codereview.appspot.com/4521053/diff/12002/src/pkg/os/user/user.go#newcode15 > ...
12 years, 11 months ago (2011-05-19 20:41:26 UTC) #20
bradfitz
On Thu, May 19, 2011 at 1:41 PM, <paulo.jpinto@gmail.com> wrote: > On 2011/05/19 20:21:41, bradfitz ...
12 years, 11 months ago (2011-05-19 20:49:46 UTC) #21
brainman
On 2011/05/19 20:21:41, bradfitz wrote: > > Sorry, what I meant is that it should ...
12 years, 11 months ago (2011-05-20 02:44:47 UTC) #22
pjmlp
Hi I'll be uploading the new version shortly. - Changed again the User struct; - ...
12 years, 11 months ago (2011-05-20 13:50:53 UTC) #23
pjmlp
Hello bradfitz@golang.org, alex.brainman@gmail.com, mattn.jp@gmail.com, bradfitz@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-05-20 13:51:18 UTC) #24
bradfitz
This is getting close. http://codereview.appspot.com/4521053/diff/17004/src/pkg/os/user/lookup_unix.go File src/pkg/os/user/lookup_unix.go (right): http://codereview.appspot.com/4521053/diff/17004/src/pkg/os/user/lookup_unix.go#newcode16 src/pkg/os/user/lookup_unix.go:16: // Represents an OS independent ...
12 years, 11 months ago (2011-05-20 15:52:33 UTC) #25
pjmlp
Currently I am not able to upload my changes, because I am on another PC, ...
12 years, 11 months ago (2011-05-20 16:41:52 UTC) #26
bradfitz
On Fri, May 20, 2011 at 9:41 AM, <paulo.jpinto@gmail.com> wrote: > Currently I am not ...
12 years, 11 months ago (2011-05-20 16:58:42 UTC) #27
pjmlp
On 2011/05/20 16:58:42, bradfitz wrote: > On Fri, May 20, 2011 at 9:41 AM, <mailto:paulo.jpinto@gmail.com> ...
12 years, 11 months ago (2011-05-20 17:00:40 UTC) #28
pjmlp
Hello bradfitz@golang.org, alex.brainman@gmail.com, mattn.jp@gmail.com, bradfitz@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-05-22 19:01:28 UTC) #29
pjmlp
http://codereview.appspot.com/4521053/diff/17004/src/pkg/os/user/user_test.go File src/pkg/os/user/user_test.go (right): http://codereview.appspot.com/4521053/diff/17004/src/pkg/os/user/user_test.go#newcode74 src/pkg/os/user/user_test.go:74: if err != nil && err.String() != "user: Windows ...
12 years, 11 months ago (2011-05-22 19:03:30 UTC) #30
brainman
http://codereview.appspot.com/4521053/diff/4005/src/pkg/os/user/lookup_windows.go File src/pkg/os/user/lookup_windows.go (right): http://codereview.appspot.com/4521053/diff/4005/src/pkg/os/user/lookup_windows.go#newcode35 src/pkg/os/user/lookup_windows.go:35: // Returns the information about the process owner In ...
12 years, 11 months ago (2011-05-23 06:23:23 UTC) #31
pjmlp
http://codereview.appspot.com/4521053/diff/4005/src/pkg/os/user/lookup_windows.go File src/pkg/os/user/lookup_windows.go (right): http://codereview.appspot.com/4521053/diff/4005/src/pkg/os/user/lookup_windows.go#newcode35 src/pkg/os/user/lookup_windows.go:35: // Returns the information about the process owner On ...
12 years, 11 months ago (2011-05-23 07:21:11 UTC) #32
brainman
http://codereview.appspot.com/4521053/diff/4005/src/pkg/os/user/lookup_windows.go File src/pkg/os/user/lookup_windows.go (right): http://codereview.appspot.com/4521053/diff/4005/src/pkg/os/user/lookup_windows.go#newcode35 src/pkg/os/user/lookup_windows.go:35: // Returns the information about the process owner On ...
12 years, 11 months ago (2011-05-23 07:56:30 UTC) #33
pjmlp
http://codereview.appspot.com/4521053/diff/4005/src/pkg/os/user/lookup_windows.go File src/pkg/os/user/lookup_windows.go (right): http://codereview.appspot.com/4521053/diff/4005/src/pkg/os/user/lookup_windows.go#newcode36 src/pkg/os/user/lookup_windows.go:36: func Current() (*User, os.Error) { On 2011/05/23 07:56:31, brainman ...
12 years, 11 months ago (2011-05-23 08:54:39 UTC) #34
brainman
On 2011/05/23 08:54:39, pjmlp wrote: > ... > I wonder how many ms we would ...
12 years, 11 months ago (2011-05-23 11:16:51 UTC) #35
pjmlp
On 2011/05/23 11:16:51, brainman wrote: > On 2011/05/23 08:54:39, pjmlp wrote: > > ... > ...
12 years, 11 months ago (2011-05-23 12:03:42 UTC) #36
bradfitz
Please update the CL description too, like: os/user: Windows support (text, if necessary) Fixes issue ...
12 years, 11 months ago (2011-05-23 18:50:45 UTC) #37
pjmlp
Thanks for the feedback, providing changes in a second. http://codereview.appspot.com/4521053/diff/4005/src/pkg/os/user/lookup_unix.go File src/pkg/os/user/lookup_unix.go (right): http://codereview.appspot.com/4521053/diff/4005/src/pkg/os/user/lookup_unix.go#newcode14 src/pkg/os/user/lookup_unix.go:14: ...
12 years, 11 months ago (2011-05-23 20:45:19 UTC) #38
pjmlp
Hello bradfitz@golang.org, alex.brainman@gmail.com, mattn.jp@gmail.com, bradfitz@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-05-24 07:34:26 UTC) #39
pjmlp
On 2011/05/23 11:16:51, brainman wrote: > On 2011/05/23 08:54:39, pjmlp wrote: > > ... > ...
12 years, 11 months ago (2011-05-24 07:36:32 UTC) #40
brainman
On 2011/05/24 07:36:32, pjmlp wrote: > > ... Should I redo the way Current() is ...
12 years, 11 months ago (2011-05-24 07:39:59 UTC) #41
pjmlp
On 2011/05/24 07:39:59, brainman wrote: > On 2011/05/24 07:36:32, pjmlp wrote: > > > > ...
12 years, 10 months ago (2011-06-07 14:18:13 UTC) #42
bradfitz
Looks like the Windows SID type is still a []byte too in the other CL. ...
12 years, 10 months ago (2011-06-07 15:09:20 UTC) #43
pjmlp
Will upload new CL. http://codereview.appspot.com/4521053/diff/12008/src/pkg/os/user/lookup_unix.go File src/pkg/os/user/lookup_unix.go (right): http://codereview.appspot.com/4521053/diff/12008/src/pkg/os/user/lookup_unix.go#newcode42 src/pkg/os/user/lookup_unix.go:42: // This returns an error ...
12 years, 10 months ago (2011-06-10 19:52:24 UTC) #44
pjmlp
12 years, 10 months ago (2011-06-10 19:57:27 UTC) #45

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