diff options
author | Jim Meyering <jim@meyering.net> | 2000-06-26 06:32:58 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-06-26 06:32:58 +0000 |
commit | 9abfcc500a6049f1278e5fd293f8d05174f18eb4 (patch) | |
tree | 2bc53cc877aa03979c7c19b89867fe819d73ba97 /src/id.c | |
parent | ac4e995ed3aecb03aa0371cbfcb0b8a6637c859e (diff) | |
download | coreutils-9abfcc500a6049f1278e5fd293f8d05174f18eb4.tar.xz |
`id -Gn' (invoked by groups) would fail without giving a diagnostic
on malconfigured systems.
(print_user): Give a diagnostic if number->name lookup fails.
(print_group): Likewise.
Diffstat (limited to 'src/id.c')
-rw-r--r-- | src/id.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -208,7 +208,10 @@ print_user (uid_t uid) { pwd = getpwuid (uid); if (pwd == NULL) - problems++; + { + error (0, 0, _("cannot find name for user ID %u"), uid); + problems++; + } } if (pwd == NULL) @@ -228,7 +231,10 @@ print_group (gid_t gid) { grp = getgrgid (gid); if (grp == NULL) - problems++; + { + error (0, 0, _("cannot find name for group ID %u"), gid); + problems++; + } } if (grp == NULL) |