Make initgroups() fail if user has any supplemental groups.
This commit is contained in:
parent
5911460ce5
commit
39816868de
1 changed files with 4 additions and 2 deletions
|
@ -43,8 +43,10 @@ int initgroups(const char *name, gid_t basegid)
|
|||
/* Because supplemental groups aren't implemented, this call
|
||||
* should fail if the user is in any supplemental groups.
|
||||
*/
|
||||
if(found)
|
||||
return EINVAL;
|
||||
if(found) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue