summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2004-11-16 13:51:36 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2004-11-16 13:51:36 +0000
commitabbd4a14bdde8dafed3fb59eea2939a5a62a696a (patch)
tree179ed9c38fc845aa9abd7fbf08b8d09275694df7
parent498a988fe4848ff82491683e4c801ce757b01969 (diff)
-p supports optional [user] arg;
from matthew clarke;
-rw-r--r--usr.bin/id/id.13
-rw-r--r--usr.bin/id/id.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/id/id.1 b/usr.bin/id/id.1
index a17d1a427a8..845d14b82a0 100644
--- a/usr.bin/id/id.1
+++ b/usr.bin/id/id.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: id.1,v 1.11 2003/07/14 09:01:35 jmc Exp $
+.\" $OpenBSD: id.1,v 1.12 2004/11/16 13:51:35 jmc Exp $
.\" $NetBSD: id.1,v 1.5 1995/09/28 08:05:40 perry Exp $
.\"
.\" Copyright (c) 1991, 1993, 1994
@@ -50,6 +50,7 @@
.Op Ar user
.Nm id
.Fl p
+.Op Ar user
.Nm id
.Fl u Op Fl nr
.Op Ar user
diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c
index 57bc8658825..d5517990d82 100644
--- a/usr.bin/id/id.c
+++ b/usr.bin/id/id.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: id.c,v 1.16 2004/07/19 09:22:17 pvalchev Exp $ */
+/* $OpenBSD: id.c,v 1.17 2004/11/16 13:51:35 jmc Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "@(#)id.c 8.3 (Berkeley) 4/28/95";*/
-static char rcsid[] = "$OpenBSD: id.c,v 1.16 2004/07/19 09:22:17 pvalchev Exp $";
+static char rcsid[] = "$OpenBSD: id.c,v 1.17 2004/11/16 13:51:35 jmc Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -316,7 +316,7 @@ usage(void)
(void)fprintf(stderr, "usage: id [user]\n"
" id -G [-n] [user]\n"
" id -g [-nr] [user]\n"
- " id -p\n"
+ " id -p [user]\n"
" id -u [-nr] [user]\n");
exit(1);
}