]> Cypherpunks repositories - gostls13.git/commit
os/user: make user.LookupGroupId function work for large entries
authorAndrey Bokhanko <andreybokhanko@gmail.com>
Thu, 14 Jan 2021 15:30:14 +0000 (15:30 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 17 Mar 2021 03:08:07 +0000 (03:08 +0000)
commita98a0a75b415d8e3adb3ff5a2c20e485d9c24ac0
treeb8932603891db2e568fff155aa35fc5809957de7
parenta826f7dc45f2e0f210341893bd70740aef6b777d
os/user: make user.LookupGroupId function work for large entries

The existing implementation of user.LookupGroupId function works
incorrectly with very large (>64K symbols) entries in /etc/group file.
This patch fixes this.

Fixes #43636

Change-Id: I453321f1ab15fd4d0002f97fcec7d0789e1e0da5
Reviewed-on: https://go-review.googlesource.com/c/go/+/283601
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
src/os/user/lookup_unix.go
src/os/user/lookup_unix_test.go