summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-08-05 04:59:25 +0200
committerKay Sievers <kay.sievers@suse.de>2006-08-05 04:59:25 +0200
commite62fea35135359ffd6659e8134af528170179a3b (patch)
tree75aab386b69a72f180538dab2e16282477ca89ec
parent05ec6e7507d159e5a02a82927c6571b7e516c52e (diff)
report failing getpwnam/getgrnam as error
-rw-r--r--udev_libc_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev_libc_wrapper.c b/udev_libc_wrapper.c
index 48a893cfb1..35e01e619d 100644
--- a/udev_libc_wrapper.c
+++ b/udev_libc_wrapper.c
@@ -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;