Date: Wed, 14 Nov 2001 02:19:56 +0600 From: Max Khon <fjoe@iclub.nsu.ru> To: current@freebsd.org Subject: initgroups Message-ID: <20011114021956.B10325@iclub.nsu.ru>
next in thread | raw e-mail | index | archive | help
hi, there!
Any objections if I will commit the following patch (see PR/15421)?
Index: initgroups.c
===================================================================
RCS file: /home/ncvs/src/lib/libc/gen/initgroups.c,v
retrieving revision 1.4
diff -u -r1.4 initgroups.c
--- initgroups.c 2001/08/29 13:52:26 1.4
+++ initgroups.c 2001/11/13 20:17:03
@@ -59,9 +59,5 @@
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);
+ return setgroups(ngroups, groups);
}
/fjoe
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011114021956.B10325>
