diff options
| author | Anton Berezin <tobez@FreeBSD.org> | 2001-11-28 10:55:02 +0000 |
|---|---|---|
| committer | Anton Berezin <tobez@FreeBSD.org> | 2001-11-28 10:55:02 +0000 |
| commit | 7d3346ca1f857d6078f948e03b83abae618820da (patch) | |
| tree | c98e3ceceeb1cee49d8a3d0e9586c3f263f2f0dd /lib/libc/gen/initgroups.c | |
| parent | ca7e26e312677acb6ef50eec78443e6f6a997559 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/initgroups.c')
| -rw-r--r-- | lib/libc/gen/initgroups.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libc/gen/initgroups.c b/lib/libc/gen/initgroups.c index 99189559870e..3fc9bb2f4042 100644 --- a/lib/libc/gen/initgroups.c +++ b/lib/libc/gen/initgroups.c @@ -56,12 +56,6 @@ initgroups(uname, agroup) int groups[NGROUPS], ngroups; ngroups = NGROUPS; - if (getgrouplist(uname, agroup, groups, &ngroups) < 0) - warnx("%s is in too many groups, using first %d", - uname, ngroups); - if (setgroups(ngroups, groups) < 0) { - _warn("setgroups"); - return (-1); - } - return (0); + getgrouplist(uname, agroup, groups, &ngroups); + return (setgroups(ngroups, groups)); } |
