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; }