[Bug 90114] [patch] pw(8) takes strings after option -g for GID 0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Oct 28 14:54:16 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=90114
--- Comment #1 from commit-hook at 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: bkoenig at 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.
More information about the freebsd-bugs
mailing list