From owner-freebsd-current Tue Nov 13 12:20:10 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.nsu.ru (b.ns.ssc.nsu.ru [193.124.215.221]) by hub.freebsd.org (Postfix) with ESMTP id 3D8BB37B405 for ; Tue, 13 Nov 2001 12:20:03 -0800 (PST) Received: from iclub.nsu.ru ([193.124.222.66] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 163k2F-0007Ez-00 for current@freebsd.org; Wed, 14 Nov 2001 02:19:55 +0600 Received: (from fjoe@localhost) by iclub.nsu.ru (8.11.6/8.11.6) id fADKJuo10486 for current@freebsd.org; Wed, 14 Nov 2001 02:19:56 +0600 (NS) (envelope-from fjoe) Date: Wed, 14 Nov 2001 02:19:56 +0600 From: Max Khon To: current@freebsd.org Subject: initgroups Message-ID: <20011114021956.B10325@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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