diff options
| author | Pádraig Brady <P@draigBrady.com> | 2021-09-15 15:21:06 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2021-09-15 15:26:22 +0100 |
| commit | f76a568313b41ab649af60ae5ca1c4811208d379 (patch) | |
| tree | 93346838d877d6a35acf76f937a0aaf78b15386e | |
| parent | dircolors: add *direct* to TERM matching (diff) | |
| download | coreutils-f76a568313b41ab649af60ae5ca1c4811208d379.tar.gz coreutils-f76a568313b41ab649af60ae5ca1c4811208d379.zip | |
doc: fix ambiguities in logname(1) and whoami(1)
* doc/coreutils.texi (whoami invocation): Clarify it prints names,
not numeric IDs.
* man/whoami.x: Likewise.
* man/logname.x: Reference getlogin(3).
* src/logname.c: Clarify that it prints the login name,
rather than the name of the effective user ID.
Fixes https://bugs.gnu.org/48894
| -rw-r--r-- | doc/coreutils.texi | 4 | ||||
| -rw-r--r-- | man/logname.x | 2 | ||||
| -rw-r--r-- | man/whoami.x | 2 | ||||
| -rw-r--r-- | src/logname.c | 2 |
4 files changed, 6 insertions, 4 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index d77bcc0c2..882aa26ab 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -15643,10 +15643,10 @@ options}. @node whoami invocation -@section @command{whoami}: Print effective user ID +@section @command{whoami}: Print effective user name @pindex whoami -@cindex effective user ID, printing +@cindex effective user name, printing @cindex printing the effective user ID @command{whoami} prints the user name associated with the current diff --git a/man/logname.x b/man/logname.x index 997a1b7bc..83dbc066f 100644 --- a/man/logname.x +++ b/man/logname.x @@ -2,3 +2,5 @@ logname \- print user\'s login name [DESCRIPTION] .\" Add any additional description here +[SEE ALSO] +getlogin(3) diff --git a/man/whoami.x b/man/whoami.x index 7ee371a3d..e7521e5cb 100644 --- a/man/whoami.x +++ b/man/whoami.x @@ -1,4 +1,4 @@ [NAME] -whoami \- print effective userid +whoami \- print effective user name [DESCRIPTION] .\" Add any additional description here diff --git a/src/logname.c b/src/logname.c index cf98bfc66..8d1b0f18d 100644 --- a/src/logname.c +++ b/src/logname.c @@ -38,7 +38,7 @@ usage (int status) { printf (_("Usage: %s [OPTION]\n"), program_name); fputs (_("\ -Print the name of the current user.\n\ +Print the user's login name.\n\ \n\ "), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); |
