Date: Mon, 16 May 2016 02:35:23 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299884 - head/usr.sbin/ypldap Message-ID: <201605160235.u4G2ZNHR089170@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: araujo Date: Mon May 16 02:35:23 2016 New Revision: 299884 URL: https://svnweb.freebsd.org/changeset/base/299884 Log: 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) Modified: head/usr.sbin/ypldap/ypldap.c Modified: head/usr.sbin/ypldap/ypldap.c ============================================================================== --- head/usr.sbin/ypldap/ypldap.c Mon May 16 02:27:28 2016 (r299883) +++ head/usr.sbin/ypldap/ypldap.c Mon May 16 02:35:23 2016 (r299884) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605160235.u4G2ZNHR089170>