on malconfigured systems.
(print_user): Give a diagnostic if number->name lookup fails.
(print_group): Likewise.
{
pwd = getpwuid (uid);
if (pwd == NULL)
- problems++;
+ {
+ error (0, 0, _("cannot find name for user ID %u"), uid);
+ problems++;
+ }
}
if (pwd == NULL)
{
grp = getgrgid (gid);
if (grp == NULL)
- problems++;
+ {
+ error (0, 0, _("cannot find name for group ID %u"), gid);
+ problems++;
+ }
}
if (grp == NULL)