summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-05-16 02:35:23 +0000
committeraraujo <araujo@FreeBSD.org>2016-05-16 02:35:23 +0000
commita0609b695300cdec9e5f939feb2672ced5d673cd (patch)
tree01080e2813f8040027c8c800ab70f96c29f3eead
parentf4cddde38abccb7ce45a25e00bc94c4e2759dba9 (diff)
downloadFreeBSD-src-a0609b695300cdec9e5f939feb2672ced5d673cd.zip
FreeBSD-src-a0609b695300cdec9e5f939feb2672ced5d673cd.tar.gz
When a group contains a non-existent user, make the warning
message more helpful by mentioning the group name. Obtained from: OpenBSD (cvs 1.19)
-rw-r--r--usr.sbin/ypldap/ypldap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ypldap/ypldap.c b/usr.sbin/ypldap/ypldap.c
index 7762270..7042c4c 100644
--- a/usr.sbin/ypldap/ypldap.c
+++ b/usr.sbin/ypldap/ypldap.c
@@ -243,9 +243,8 @@ main_create_user_groups(struct env *env)
if ((ue = RB_FIND(user_name_tree, env->sc_user_names_t,
&ukey)) == NULL) {
/* User not found */
- log_warnx("main: user: %s is referenced as a "
- "group member, but can't be found in the "
- "users map.\n", ukey.ue_line);
+ log_warnx("main: unknown user %s in group %s\n",
+ ukey.ue_line, ge->ge_line);
if (bp != NULL)
*(bp-1) = ',';
continue;
OpenPOWER on IntegriCloud