]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdlib/tst-secure-getenv: handle >64 groups
authorMike Gerow <gerow@google.com>
Wed, 17 Apr 2019 09:45:34 +0000 (11:45 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 17 Apr 2019 09:45:34 +0000 (11:45 +0200)
commitbae8cf0e930d82133e96c4e2547548ed53938de1
tree103d0087cefc65801b2f5bffac5b5941bf44893d
parent6b5c8607a4bda18b48765f0a3eb84b96525dcaf1
stdlib/tst-secure-getenv: handle >64 groups

This test would fail unnecessarily if the user running it had more than
64 groups since getgroups returns EINVAL if the size provided is less
than the number of supplementary group IDs. Instead dynamically
determine the number of supplementary groups the user has.
ChangeLog
stdlib/tst-secure-getenv.c