From owner-cvs-all@FreeBSD.ORG Thu Apr 28 15:55:54 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 D289516A4CE; Thu, 28 Apr 2005 15:55:54 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A68B543D46; Thu, 28 Apr 2005 15:55:54 +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 j3SFtsnv052287; Thu, 28 Apr 2005 15:55:54 GMT (envelope-from robert@repoman.freebsd.org) Received: (from robert@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3SFtsYB052286; Thu, 28 Apr 2005 15:55:54 GMT (envelope-from robert) Message-Id: <200504281555.j3SFtsYB052286@repoman.freebsd.org> From: Robert Drehmel Date: Thu, 28 Apr 2005 15:55:54 +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: Thu, 28 Apr 2005 15:55:55 -0000 robert 2005-04-28 15:55:54 UTC FreeBSD src repository Modified files: usr.bin/id id.c Log: - Merge two functions for printing `id' output. Showing the ids of both an user given by an argument to `id', and the current user, is now handled in a single function. Displaying the current user's ids was inaccurate because getgroups(2) had been used. getgroups(2) returns the current kernel state of a user's groups, which may not always be correct if /etc/group was recently changed. - Fix a few style bugs. PR: bin/78085 Revision Changes Path 1.24 +33 -57 src/usr.bin/id/id.c