diff options
author | Ceri Davies <ceri@FreeBSD.org> | 2006-09-26 22:28:12 +0000 |
---|---|---|
committer | Ceri Davies <ceri@FreeBSD.org> | 2006-09-26 22:28:12 +0000 |
commit | de5e5e6ead7a4497b28686b5d3cb8c1c81a8f8b5 (patch) | |
tree | f32045eeac0341d585a6cf7bd8c6f667370e7c0a /usr.bin/id | |
parent | eb0fa6f5d7610b75026e63cbce2f5907a3d34e22 (diff) | |
download | src-de5e5e6ead7a4497b28686b5d3cb8c1c81a8f8b5.tar.gz src-de5e5e6ead7a4497b28686b5d3cb8c1c81a8f8b5.zip |
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
Notes
Notes:
svn path=/head/; revision=162672
Diffstat (limited to 'usr.bin/id')
-rw-r--r-- | usr.bin/id/id.1 | 6 | ||||
-rw-r--r-- | usr.bin/id/id.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/id/id.1 b/usr.bin/id/id.1 index 899ed7d5c376..b14e4e56cbfa 100644 --- a/usr.bin/id/id.1 +++ b/usr.bin/id/id.1 @@ -35,7 +35,7 @@ .\" @(#)id.1 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd May 3, 2004 +.Dd September 26, 2006 .Dt ID 1 .Os .Sh NAME @@ -89,6 +89,10 @@ as white-space separated numbers, in no particular order. Display the MAC label of the current process. .It Fl P Display the id as a password file entry. +.It Fl a +Ignored for compatibility with other +.Nm +implementations. .It Fl g Display the effective group ID as a number. .It Fl n diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c index 854c9cd52bf3..729e97e54d63 100644 --- a/usr.bin/id/id.c +++ b/usr.bin/id/id.c @@ -96,7 +96,7 @@ main(int argc, char *argv[]) } while ((ch = getopt(argc, argv, - (isgroups || iswhoami) ? "" : "APGMgnpru")) != -1) + (isgroups || iswhoami) ? "" : "APGMagnpru")) != -1) switch(ch) { #ifdef USE_BSM_AUDIT case 'A': @@ -112,6 +112,8 @@ main(int argc, char *argv[]) case 'P': Pflag = 1; break; + case 'a': + break; case 'g': gflag = 1; break; |