1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-25 23:21:33 +03:00

clarify "specified user/group unknown" error

This commit is contained in:
Miles Lane 2006-09-16 16:35:52 +02:00 committed by Kay Sievers
parent 4ca254b382
commit fe0c4102ad

View File

@ -172,7 +172,7 @@ uid_t lookup_user(const char *user)
pw = getpwnam(user);
if (pw == NULL) {
if (errno == 0 || errno == ENOENT || errno == ESRCH)
err("specified user unknown '%s'", user);
err("specified user '%s' unknown", user);
else
err("error resolving user '%s': %s", user, strerror(errno));
} else
@ -190,7 +190,7 @@ extern gid_t lookup_group(const char *group)
gr = getgrnam(group);
if (gr == NULL) {
if (errno == 0 || errno == ENOENT || errno == ESRCH)
err("specified group unknown '%s'", group);
err("specified group '%s' unknown", group);
else
err("error resolving group '%s': %s", group, strerror(errno));
} else