https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=90114

--- Comment #1 from commit-h...@freebsd.org ---
A commit references this bug:

Author: bapt
Date: Tue Oct 28 14:54:05 UTC 2014
New revision: 273782
URL: https://svnweb.freebsd.org/changeset/base/273782

Log:
  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:    bkoe...@cs.tu-berlin.de
  MFC after:    1 week

Changes:
  head/usr.sbin/pw/pw_group.c
  head/usr.sbin/pw/tests/pw_delete.sh

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to