Make initgroups() fail if user has any supplemental groups.

This commit is contained in:
Ben Gras 2006-02-13 15:06:01 +00:00
parent 5911460ce5
commit 39816868de

View file

@ -43,8 +43,10 @@ int initgroups(const char *name, gid_t basegid)
/* Because supplemental groups aren't implemented, this call /* Because supplemental groups aren't implemented, this call
* should fail if the user is in any supplemental groups. * should fail if the user is in any supplemental groups.
*/ */
if(found) if(found) {
return EINVAL; errno = EINVAL;
return -1;
}
return 0; return 0;
} }