not prototyped as being const, even though it really is.
int maxgids, rval;
debug_decl(sudo_setgroups, SUDO_DEBUG_UTIL)
- rval = setgroups(ngids, gids);
+ rval = setgroups(ngids, (GETGROUPS_T *)gids);
if (rval == -1 && errno == EINVAL) {
/* Too many groups, try again with fewer. */
#if defined(HAVE_SYSCONF) && defined(_SC_NGROUPS_MAX)
#endif
maxgids = NGROUPS_MAX;
if (ngids > maxgids)
- rval = setgroups(maxgids, gids);
+ rval = setgroups(maxgids, (GETGROUPS_T *)gids);
}
debug_return_int(rval);
}