]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bsdconfig: Fix a bug when editing users
authordteske <dteske@FreeBSD.org>
Sun, 17 Jun 2018 22:09:43 +0000 (22:09 +0000)
committerdteske <dteske@FreeBSD.org>
Sun, 17 Jun 2018 22:09:43 +0000 (22:09 +0000)
commitf846b41a5503730ed1cce0eeb070d566fdae6b40
tree27512c9fb68f15c257b5ef8d2288b99949175640
parent805312ea356dc2f152853e85ebf18eb25b11e574
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>
MFC after: 1 week
X-MFC-to: stable/11, stable/10
Sponsored by: Smule, Inc.
usr.sbin/bsdconfig/usermgmt/share/user_input.subr