]> Cypherpunks repositories - gostls13.git/commit
os/user: add Go implementation of LookupGroup, LookupGroupId
authorKevin Burke <kev@inburke.com>
Wed, 30 Nov 2016 18:03:09 +0000 (10:03 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 27 Feb 2017 22:20:15 +0000 (22:20 +0000)
commit949f95e7a40715ad05015dc4cb039e78a5260ef8
tree43c88bbe6755b1a8a94cff950309fcf17c8028ab
parent459d061c99b8bcd0ab688e2536f5429c9f125a4b
os/user: add Go implementation of LookupGroup, LookupGroupId

If cgo is not available, parse /etc/group in Go to find the name/gid
we need. This does not consult the Network Information System (NIS),
/etc/nsswitch.conf or any other libc extensions to /etc/group.

Fixes #18102.

Change-Id: I6ae4fe0e2c899396c45cdf243d5483113932657c
Reviewed-on: https://go-review.googlesource.com/33713
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/os/user/lookup_stubs.go
src/os/user/lookup_unix.go [new file with mode: 0644]
src/os/user/lookup_unix_test.go [new file with mode: 0644]