summaryrefslogtreecommitdiffstats
path: root/usr.bin/id
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/id')
-rw-r--r--usr.bin/id/id.110
-rw-r--r--usr.bin/id/id.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/id/id.1 b/usr.bin/id/id.1
index 99010fc..3bc454e 100644
--- a/usr.bin/id/id.1
+++ b/usr.bin/id/id.1
@@ -1,4 +1,4 @@
-.\" Copyright (c) 1991, 1993
+.\" Copyright (c) 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
@@ -32,9 +32,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" @(#)id.1 8.1 (Berkeley) 6/6/93
+.\" @(#)id.1 8.2 (Berkeley) 5/5/94
.\"
-.Dd "June 6, 1993"
+.Dd "May 5, 1994"
.Dt ID 1
.Os BSD 4.4
.Sh NAME
@@ -134,6 +134,6 @@ command is equivalent to
.Dq Nm id Fl un .
.Pp
The
-.Nm
-command appears in
+.Nm id
+command first appeared in
.Bx 4.4 .
diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c
index a2d6ea6..bf9218e 100644
--- a/usr.bin/id/id.c
+++ b/usr.bin/id/id.c
@@ -38,7 +38,7 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)id.c 8.2 (Berkeley) 2/16/94";
+static char sccsid[] = "@(#)id.c 8.3 (Berkeley) 4/28/95";
#endif /* not lint */
#include <sys/param.h>
@@ -236,7 +236,7 @@ user(pw)
id = pw->pw_uid;
(void)printf("uid=%u(%s)", id, pw->pw_name);
(void)printf(" gid=%u", pw->pw_gid);
- if (gr = getgrgid(id))
+ if (gr = getgrgid(pw->pw_gid))
(void)printf("(%s)", gr->gr_name);
ngroups = NGROUPS + 1;
(void) getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
OpenPOWER on IntegriCloud