HomeFreeBSD

Fix a regression in pw usermod -G list

Description

Fix a regression in pw usermod -G list

The user was perperly adding the to different groups from "list" but was not
removed from the other groups it could have belong to.
While here add a regression test about this bug

PR: 185666
Reported by: sub.mesa@gmail.com
MFC after: 1 week

Details

Provenance
baptAuthored on
Parents
rS273778: Remove spurious libelf dependency.
Branches
Unknown
Tags
Unknown

Event Timeline