]> Cypherpunks repositories - gostls13.git/commit
os/user: User.GroupIds shouldn't error on users with no groups
authorqmuntal <quimmuntal@gmail.com>
Mon, 19 Aug 2024 13:14:23 +0000 (15:14 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Wed, 4 Sep 2024 04:56:53 +0000 (04:56 +0000)
commit1b5ae45181ef5274045b9b93ae0603ebb34fa811
tree59ff5ee726ef5fa0e81b4f24b78c3ad6ee6eb73f
parentaf86efbe6d44a16236e390752e49b7ea295bb963
os/user: User.GroupIds shouldn't error on users with no groups

On Windows, the User.GroupIds currently errors out if the user has no
groups. This is incorrect, as the user may not be a member of any groups
as demonstrated by the new TestGroupIdsTestUser test.

Cq-Include-Trybots: luci.golang.try:gotip-windows-amd64-longtest,gotip-windows-arm64
Change-Id: I436aa6214f2b98ef98dfb6064caec3d682b3f3d2
Reviewed-on: https://go-review.googlesource.com/c/go/+/606675
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/os/user/lookup_windows.go
src/os/user/user_windows_test.go