go/src/os/user
Tobias Klauser abb110bf3d os/user: implement (*User).GroupIds on solaris
It seems like getgrouplist is supported since Solaris 11.3 (released in
2016):
https://docs.oracle.com/cd/E86824_01/html/E54766/getgrouplist-3c.html

Use it to implement (*User).GroupIds on solaris, like on other Unix
platforms.

Unfortunately it looks like getgrouplist was added to illumos only
fairly recently, see
f2c438c505

Thus, don't use it on GOOS=illumos for now.

Updates #14709

Change-Id: Ibfcdbfca6b7d1af96630512d08921e5637ca76d4
Reviewed-on: https://go-review.googlesource.com/c/go/+/315278
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2021-05-02 21:27:08 +00:00
..
cgo_lookup_unix.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
cgo_unix_test.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
getgrouplist_darwin.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
getgrouplist_unix.go os/user: implement (*User).GroupIds on solaris 2021-05-02 21:27:08 +00:00
listgroups_aix.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
listgroups_illumos.go os/user: implement (*User).GroupIds on solaris 2021-05-02 21:27:08 +00:00
listgroups_unix.go os/user: implement (*User).GroupIds on solaris 2021-05-02 21:27:08 +00:00
lookup.go
lookup_android.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
lookup_plan9.go
lookup_stubs.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
lookup_unix.go os/user: make user.LookupGroupId function work for large entries 2021-03-17 03:08:07 +00:00
lookup_unix_test.go os/user: make user.LookupGroupId function work for large entries 2021-03-17 03:08:07 +00:00
lookup_windows.go
user.go
user_test.go os/user: implement (*User).GroupIds on solaris 2021-05-02 21:27:08 +00:00