1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00
freebsd/usr.sbin/pw/tests
Baptiste Daroussin 156ebc2878 Do not delete the group wheel when bad argument is passed to pw groupdel -g
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
2014-10-28 14:54:04 +00:00
..
group
helper_functions.shin
Makefile
master.passwd
pw_delete.sh Do not delete the group wheel when bad argument is passed to pw groupdel -g 2014-10-28 14:54:04 +00:00
pw_modify.sh Fix a regression in pw usermod -G list 2014-10-28 14:19:17 +00:00