1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

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)
This commit is contained in:
Marcelo Araujo 2016-05-16 02:35:23 +00:00
parent cbb62fa6aa
commit 152e878f4c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299884

View File

@ -243,9 +243,8 @@ main_create_user_groups(struct env *env)
if ((ue = RB_FIND(user_name_tree, env->sc_user_names_t, if ((ue = RB_FIND(user_name_tree, env->sc_user_names_t,
&ukey)) == NULL) { &ukey)) == NULL) {
/* User not found */ /* User not found */
log_warnx("main: user: %s is referenced as a " log_warnx("main: unknown user %s in group %s\n",
"group member, but can't be found in the " ukey.ue_line, ge->ge_line);
"users map.\n", ukey.ue_line);
if (bp != NULL) if (bp != NULL)
*(bp-1) = ','; *(bp-1) = ',';
continue; continue;