]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
let ga_init() fail gracefully if getgrouplist does
authorDamien Miller <djm@mindrot.org>
Sat, 12 Jul 2025 00:20:27 +0000 (17:20 -0700)
committerDamien Miller <djm@mindrot.org>
Sat, 12 Jul 2025 00:20:27 +0000 (17:20 -0700)
commitf9dc519259804702cab0fa0ca8b193a360e3ec38
treee51a47b9b0dce702f107780e94ce717382d55f40
parentf01a899b92ab8c5e6ff71214658bd09636c47e87
let ga_init() fail gracefully if getgrouplist does

Apparently getgrouplist() can fail on OSX for when passed a non-existent
group name. Other platforms seem to return a group list consisting of
the numeric gid passed to the function.

This makes ga_init() handle this failure case gracefully, where it will
return success but with an empty group list array.

bz3848; ok dtucker@
groupaccess.c