Add a -a option as a no-op for Solaris compatibility, as briefly
discussed on src-committers. This is intentionally not included in the usage() function as it would confuse the output too much. Approved by: jhb MFC after: 1 week
This commit is contained in:
parent
eb0fa6f5d7
commit
de5e5e6ead
@ -35,7 +35,7 @@
|
|||||||
.\" @(#)id.1 8.1 (Berkeley) 6/6/93
|
.\" @(#)id.1 8.1 (Berkeley) 6/6/93
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd May 3, 2004
|
.Dd September 26, 2006
|
||||||
.Dt ID 1
|
.Dt ID 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -89,6 +89,10 @@ as white-space separated numbers, in no particular order.
|
|||||||
Display the MAC label of the current process.
|
Display the MAC label of the current process.
|
||||||
.It Fl P
|
.It Fl P
|
||||||
Display the id as a password file entry.
|
Display the id as a password file entry.
|
||||||
|
.It Fl a
|
||||||
|
Ignored for compatibility with other
|
||||||
|
.Nm
|
||||||
|
implementations.
|
||||||
.It Fl g
|
.It Fl g
|
||||||
Display the effective group ID as a number.
|
Display the effective group ID as a number.
|
||||||
.It Fl n
|
.It Fl n
|
||||||
|
@ -96,7 +96,7 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv,
|
while ((ch = getopt(argc, argv,
|
||||||
(isgroups || iswhoami) ? "" : "APGMgnpru")) != -1)
|
(isgroups || iswhoami) ? "" : "APGMagnpru")) != -1)
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
#ifdef USE_BSM_AUDIT
|
#ifdef USE_BSM_AUDIT
|
||||||
case 'A':
|
case 'A':
|
||||||
@ -112,6 +112,8 @@ main(int argc, char *argv[])
|
|||||||
case 'P':
|
case 'P':
|
||||||
Pflag = 1;
|
Pflag = 1;
|
||||||
break;
|
break;
|
||||||
|
case 'a':
|
||||||
|
break;
|
||||||
case 'g':
|
case 'g':
|
||||||
gflag = 1;
|
gflag = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user