summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-10-28 14:54:04 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-10-28 14:54:04 +0000
commit77eacc73737116b101278ac7984c1a85adb55950 (patch)
tree39ce546a5db932ce81e9dcd60e1cfaa5d7f4faf6 /libutil
parent39f09169dd46aff705fef66203a371be6bfd4814 (diff)
downloadpw-darwin-77eacc73737116b101278ac7984c1a85adb55950.tar.gz
pw-darwin-77eacc73737116b101278ac7984c1a85adb55950.tar.zst
pw-darwin-77eacc73737116b101278ac7984c1a85adb55950.zip
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
Diffstat (limited to 'libutil')
0 files changed, 0 insertions, 0 deletions