]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r335308: bsdconfig: Fix a bug when editing users
authordteske <dteske@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Jun 2018 15:02:17 +0000 (15:02 +0000)
committerdteske <dteske@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Jun 2018 15:02:17 +0000 (15:02 +0000)
commit36ce398df89c4431f659f45d1b356986521eb5df
treef1f984cdca75e31f1aeaa594a1d0d262cba79f08
parent04d8dea5823a0f7be67949e951554cae297df115
MFC r335308: bsdconfig: Fix a bug when editing users

The usermgmt API was stomping on a global ($user_gid to be specific)
so things would appear to work fine until you tried to make a second
pass into the API with the now-tainted variable contents.

Fixed by localizing menu-specific contents as to not leak outside API.

PR: bin/208774
Reported by: Martin Waschbuesch <martin@waschbuesch.de>
Sponsored by: Smule, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@335487 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bsdconfig/usermgmt/share/user_input.subr