
outside the group array in the case that a user is member of more than _SC_NGROUPS_MAX groups. (This is probably also the problem behind PR bin/31069 by Zafer Aydogan.) So check the return value and retry with sufficiently allocated memory in case the initial _SC_NGROUPS_MAX groups are not enough.