1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 06:25:25 +03:00

report failing getpwnam/getgrnam as error

This commit is contained in:
Kay Sievers 2006-08-05 04:59:25 +02:00
parent 05ec6e7507
commit e62fea3513

View File

@ -100,7 +100,7 @@ uid_t lookup_user(const char *user)
pw = getpwnam(user);
if (pw == NULL)
info("specified user unknown '%s'", user);
err("error resolving user '%s': %s", user, strerror(errno));
else
uid = pw->pw_uid;
@ -114,7 +114,7 @@ gid_t lookup_group(const char *group)
gr = getgrnam(group);
if (gr == NULL)
info("specified group unknown '%s'", group);
err("error resolving group '%s': %s", group, strerror(errno));
else
gid = gr->gr_gid;