From owner-cvs-all@FreeBSD.ORG Fri Apr 29 10:11:19 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F2A716A4CE; Fri, 29 Apr 2005 10:11:19 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3598C43D1D; Fri, 29 Apr 2005 10:11:19 +0000 (GMT) (envelope-from robert@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j3TABIMw036368; Fri, 29 Apr 2005 10:11:19 GMT (envelope-from robert@repoman.freebsd.org) Received: (from robert@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3TABIaM036367; Fri, 29 Apr 2005 10:11:18 GMT (envelope-from robert) Message-Id: <200504291011.j3TABIaM036367@repoman.freebsd.org> From: Robert Drehmel Date: Fri, 29 Apr 2005 10:11:18 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/id id.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 10:11:19 -0000 robert 2005-04-29 10:11:18 UTC FreeBSD src repository Modified files: usr.bin/id id.c Log: Add flag to choose whether to use getgrouplist(3) or getgroups(2) to the id_print() function. Use getgrouplist(3) for the case when an user was specified, and getgroups(2) when no user was given. That reverts to the expected behaviour and makes it easy to implement an option later to force using getgrouplist(3). Revision Changes Path 1.26 +11 -6 src/usr.bin/id/id.c