From: Ben Gras Date: Mon, 13 Feb 2006 15:06:01 +0000 (+0000) Subject: Make initgroups() fail if user has any supplemental groups. X-Git-Tag: v3.1.2a~364 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/openlogo-25.jpg?a=commitdiff_plain;h=39816868dea88424493d1efc2b59abb4e016716d;p=minix.git Make initgroups() fail if user has any supplemental groups. --- diff --git a/lib/other/setgroups.c b/lib/other/setgroups.c index a1f199feb..8708c9f6e 100644 --- a/lib/other/setgroups.c +++ b/lib/other/setgroups.c @@ -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; }