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

Issue 4440057: code review 4440057: os/user: new package to look up users (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by bradfitz
Modified:
13 years, 11 months ago
Reviewers:
CC:
rsc, r, bradfitzgoog, golang-dev
Visibility:
Public.

Description

os/user: new package to look up users Only for Unix presently. Other operating systems are stubbed out, as well as arm (lacks cgo).

Patch Set 1 #

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

Patch Set 3 : diff -r 9658d8fbd2a0 https://go.googlecode.com/hg/ #

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

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

Total comments: 4

Patch Set 6 : diff -r 9f771f92ac93 https://go.googlecode.com/hg/ #

Total comments: 14

Patch Set 7 : diff -r 9f771f92ac93 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 8 : diff -r 76be0b3eee98 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -0 lines) Patch
M src/pkg/Makefile View 1 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/os/user/Makefile View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
A src/pkg/os/user/lookup_stubs.go View 1 1 chunk +19 lines, -0 lines 0 comments Download
A src/pkg/os/user/lookup_unix.go View 1 2 3 4 5 6 7 1 chunk +104 lines, -0 lines 0 comments Download
A src/pkg/os/user/user.go View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
A src/pkg/os/user/user_test.go View 1 2 3 4 5 6 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 17
bradfitz
Hello rsc, r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 11 months ago (2011-04-20 23:34:08 UTC) #1
bradfitz
Russ, Please review my cgo stuff thoroughly. It passes my tests, but it might be ...
13 years, 11 months ago (2011-04-20 23:50:05 UTC) #2
bradfitz
Hello rsc, r (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2011-04-21 19:19:14 UTC) #3
bradfitz
*** Abandoned ***
13 years, 11 months ago (2011-04-21 19:19:30 UTC) #4
bradfitz
PTAL (not abandoned) This now works on linux and darwin. Will test freebsd next.
13 years, 11 months ago (2011-04-21 19:22:41 UTC) #5
bradfitz
Hello rsc, r (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2011-04-21 19:38:28 UTC) #6
bradfitz
Works on freebsd, darwin and linux now. This is another reminder why I prefer Go ...
13 years, 11 months ago (2011-04-21 19:39:18 UTC) #7
r
seems fine but i am not a cgo adept http://codereview.appspot.com/4440057/diff/11001/src/pkg/os/user/lookup_unix.go File src/pkg/os/user/lookup_unix.go (right): http://codereview.appspot.com/4440057/diff/11001/src/pkg/os/user/lookup_unix.go#newcode28 src/pkg/os/user/lookup_unix.go:28: ...
13 years, 11 months ago (2011-04-21 20:39:32 UTC) #8
bradfitz
Hello rsc, r (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2011-04-21 21:45:16 UTC) #9
bradfitzgoog
Done, except removing ENOENT. I thought we did specify that one in particular in places. ...
13 years, 11 months ago (2011-04-21 21:45:42 UTC) #10
rsc
On Thu, Apr 21, 2011 at 17:45, Brad Fitzpatrick <bradfitz@google.com> wrote: > Done, except removing ...
13 years, 11 months ago (2011-04-21 21:48:48 UTC) #11
rsc
http://codereview.appspot.com/4440057/diff/9008/src/pkg/os/user/lookup_unix.go File src/pkg/os/user/lookup_unix.go (right): http://codereview.appspot.com/4440057/diff/9008/src/pkg/os/user/lookup_unix.go#newcode29 src/pkg/os/user/lookup_unix.go:29: // os.ENOENT is returned. See previous mail. This is ...
13 years, 11 months ago (2011-04-21 21:53:08 UTC) #12
rsc
http://codereview.appspot.com/4440057/diff/9008/src/pkg/os/user/lookup_unix.go File src/pkg/os/user/lookup_unix.go (right): http://codereview.appspot.com/4440057/diff/9008/src/pkg/os/user/lookup_unix.go#newcode78 src/pkg/os/user/lookup_unix.go:78: return nil, fmt.Errorf("user: getpwuid_r returned %d", rv) rv is, ...
13 years, 11 months ago (2011-04-21 22:00:36 UTC) #13
bradfitz
http://codereview.appspot.com/4440057/diff/9008/src/pkg/os/user/lookup_unix.go File src/pkg/os/user/lookup_unix.go (right): http://codereview.appspot.com/4440057/diff/9008/src/pkg/os/user/lookup_unix.go#newcode29 src/pkg/os/user/lookup_unix.go:29: // os.ENOENT is returned. On 2011/04/21 21:53:08, rsc wrote: ...
13 years, 11 months ago (2011-04-21 23:00:25 UTC) #14
bradfitz
Hello rsc, r, bradfitzwork (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2011-04-21 23:00:32 UTC) #15
rsc
LGTM http://codereview.appspot.com/4440057/diff/16001/src/pkg/os/user/lookup_unix.go File src/pkg/os/user/lookup_unix.go (right): http://codereview.appspot.com/4440057/diff/16001/src/pkg/os/user/lookup_unix.go#newcode29 src/pkg/os/user/lookup_unix.go:29: // UnknownUserError is returned. // the returned error ...
13 years, 11 months ago (2011-04-22 16:18:24 UTC) #16
bradfitz
13 years, 11 months ago (2011-04-22 16:30:35 UTC) #17
*** Submitted as http://code.google.com/p/go/source/detail?r=544094ecf115 ***

os/user: new package to look up users

Only for Unix presently. Other operating systems
are stubbed out, as well as arm (lacks cgo).

R=rsc, r, bradfitzwork
CC=golang-dev
http://codereview.appspot.com/4440057
Sign in to reply to this message.

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