]> Cypherpunks repositories - gostls13.git/commit
os/user: make OS-specific getgrouplist calls
authorRoss Light <light@google.com>
Tue, 8 Mar 2016 00:21:30 +0000 (16:21 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 8 Mar 2016 20:58:00 +0000 (20:58 +0000)
commitf128b5421e4ec7a00d9ff93288ea3f4b38654243
tree86b8e69dc02e4297291c2aa682acb412c3c272c1
parent2350ca5a41b81f9fa8026c511758deafa3038836
os/user: make OS-specific getgrouplist calls

getgrouplist is non-standard and has slightly different semantics on
each platform.  Darwin defines the function in terms of ints instead of
gid_ts.  Solaris only recently supported the call, so stubbing out for
now.

Fixes #14696
Fixes #14709

Change-Id: I5a44538d41594909efb6f3f9610c55d638c36757
Reviewed-on: https://go-review.googlesource.com/20348
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/user/getgrouplist_darwin.c [new file with mode: 0644]
src/os/user/getgrouplist_unix.c [new file with mode: 0644]
src/os/user/listgroups_solaris.go [new file with mode: 0644]
src/os/user/listgroups_unix.go [new file with mode: 0644]
src/os/user/lookup_unix.go
src/os/user/user_test.go