]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bsdconfig: Fix a bug when editing users
authorDevin Teske <dteske@FreeBSD.org>
Sun, 17 Jun 2018 22:09:43 +0000 (22:09 +0000)
committerDevin Teske <dteske@FreeBSD.org>
Sun, 17 Jun 2018 22:09:43 +0000 (22:09 +0000)
commit389e4940069316fe667ffa263fa7d6390d0a960f
tree27512c9fb68f15c257b5ef8d2288b99949175640
parent8f2433eb4484679d9b0cf087f2b5263042d700ca
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