summaryrefslogtreecommitdiffstats
path: root/pw/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Do not delete the group wheel when bad argument is passed to pw groupdel -gBaptiste Daroussin2014-10-281-0/+12
| | | | | | | | | | | | Check that the -g argument is actually a number, if not report an error. This argument is converted without checking with atoi(3) later so without this check it converts any alpha entries into 0 meaning it deletes the group wheel Add a regression test about it PR: 90114 Reported by: bkoenig@cs.tu-berlin.de MFC after: 1 week
* Fix a regression in pw usermod -G listBaptiste Daroussin2014-10-281-0/+21
| | | | | | | | | | 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
* When a group is renamed then the group has been invalidated for sure.Baptiste Daroussin2014-10-281-0/+11
| | | | | | | | | In that case get the group information using the new name. Add a regression test about this bug PR: 193704 Reported by: az
* - Add some tests for modifying groupsBrad Davis2014-10-062-1/+35
| | | | Reviewed by: will
* - Add a test for bug 191427 where pw(8) will go into an infinite loopBrad Davis2014-10-025-0/+56
Reviewed by: will MFC after: 1 month