Date: Sun, 11 Sep 2016 20:29:02 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 208774] bsdconfig bug when editing users Message-ID: <bug-208774-8-J94Iau6Bis@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-208774-8@https.bugs.freebsd.org/bugzilla/> References: <bug-208774-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208774 --- Comment #1 from Martin Waschb=C3=BCsch <martin@waschbuesch.de> --- Created attachment 174664 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D174664&action= =3Dedit strip appended group name from _user_gid before using it with the pw command Although there is code that attempts to add the group name to the dialog display starting in line 1023 of user_input.subr: # Attempt to translate a numeric GID into `number (name)' if f_isinteger "$user_gid"; then local user_group user_group=3D$( pw groupshow -g "$user_gid" 2> /dev/null ) = && user_gid=3D"$user_gid (${user_group%%:*})" fi I could not identify any existing code for bsdconfig that was meant to strip the (<groupname>) out again. Albeit not elegant, the attached patch solves the problem for me (on 10.3-STABLE). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208774-8-J94Iau6Bis>