Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support more than NGROUPS_MAX groups on macos
I suspect this is the cause for our recent CI failures. Apparently, on macos it is possible for getgroups() to return more than NGROUPS_MAX groups. We avoid an EINVAL in that case by fetching the exact number of groups in advance. This should work on both macos and posix systems.
- Loading branch information