diff options
author | Ed Maste <emaste@FreeBSD.org> | 2017-08-19 00:19:23 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2017-08-19 00:19:23 +0000 |
commit | adfec1630313d82cd79f0d7a2ecefc14629fd610 (patch) | |
tree | 21808d7275153c17d057b40c146c00b7b22b2ddd /pw/tests/pw_useradd_test.sh | |
parent | 7d4c28e4721cd108ebe5e39a581ec187d75cca8d (diff) | |
download | pw-darwin-adfec1630313d82cd79f0d7a2ecefc14629fd610.tar.gz pw-darwin-adfec1630313d82cd79f0d7a2ecefc14629fd610.tar.zst pw-darwin-adfec1630313d82cd79f0d7a2ecefc14629fd610.zip |
pw usermod: Properly deal with empty secondary group lists (-G '')
"pw usermod someuser -G ''" is supposed make sure that someuser
doesn't have any secondary group memberships.
Previouly it was a nop because split_groups() only intitialised
"groups" if at least one group was specified. As a result the
existing secondary group memberships were kept.
PR: 221417
Submitted by: Fabian Keil
Obtained from: ElectroBSD
MFC after: 1 week
Relnotes: yes
Diffstat (limited to 'pw/tests/pw_useradd_test.sh')
0 files changed, 0 insertions, 0 deletions