From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 2 05:50:59 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5F5BB16A407 for ; Tue, 2 Jan 2007 05:50:59 +0000 (UTC) (envelope-from SRS0=5nRf5r=GL=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailout03.yourhostingaccount.com (mailout03.yourhostingaccount.com [65.254.254.78]) by mx1.freebsd.org (Postfix) with ESMTP id 3681613C467 for ; Tue, 2 Jan 2007 05:50:59 +0000 (UTC) (envelope-from SRS0=5nRf5r=GL=vvelox.net=v.velox@yourhostingaccount.com) Received: from scan04.yourhostingaccount.com ([10.1.1.234] helo=scan04.yourhostingaccount.com) by mailout03.yourhostingaccount.com with esmtp (Exim) id 1H1cI5-00076w-CA for freebsd-hackers@freebsd.org; Tue, 02 Jan 2007 00:34:25 -0500 Received: from authsmtp11.yourhostingaccount.com ([10.1.18.11] ident=exim) by scan04.yourhostingaccount.com with spamscanlookuphost (Exim) id 1H1cI5-0006Cz-8X for freebsd-hackers@freebsd.org; Tue, 02 Jan 2007 00:34:25 -0500 Received: from authsmtp11.yourhostingaccount.com ([10.1.18.11] helo=authsmtp11.yourhostingaccount.com) by scan04.yourhostingaccount.com with esmtp (Exim) id 1H1cI4-0006Cu-T5 for freebsd-hackers@freebsd.org; Tue, 02 Jan 2007 00:34:24 -0500 Received: from [69.92.217.33] (helo=vixen42) by authsmtp11.yourhostingaccount.com with esmtpa (Exim) id 1H1cI4-0004nY-7B for freebsd-hackers@freebsd.org; Tue, 02 Jan 2007 00:34:24 -0500 Date: Mon, 1 Jan 2007 23:35:25 -0600 From: Vulpes Velox To: freebsd-hackers@freebsd.org Message-ID: <20070101233525.0b10a1e2@vixen42> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EN-UserInfo: 0d1ca1697cdb7a831d4877828571b7ab:1570f0de6936c69fef9e164fffc541bc X-EN-AuthUser: vvelox2 Sender: Vulpes Velox Subject: getgroups and getgrouplist functions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jan 2007 05:50:59 -0000 Just working on fixing the problem with DBus for when a user is a member of more than 16 groups. I have NGROUPS_MAX set to 64 on this system. So far I have one person on the DBus mailing list telling me that the FreeBSD getgrouplist is broken. I just want to verify if how I am reading the docs is correctly. I am reading it as int *ngroups is not set to the number of groups in the list if the number of groups is larger than the number specified. They are saying it does not make a difference because getgroupslist will do it regardless. Based on testing and reading the man, I am convinced this is a load of bull. And the proper way to get the number of groups some one is in is to call getgroups(0). Any one have any opinions or would like to hear more?