]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r335308: bsdconfig: Fix a bug when editing users
authordteske <dteske@FreeBSD.org>
Thu, 21 Jun 2018 14:55:26 +0000 (14:55 +0000)
committerdteske <dteske@FreeBSD.org>
Thu, 21 Jun 2018 14:55:26 +0000 (14:55 +0000)
commitcbb6a4952260affbb288de1ecd9ffbb4ebcc4327
treebd107dda03d602e5d4959ad6e7698eb0d59d4743
parent254e74a503809a0d0c5ca2fb81d9dc28d07687b5
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.
usr.sbin/bsdconfig/usermgmt/share/user_input.subr