svn commit: r273782 - in head/usr.sbin/pw: . tests
Adam McDougall
mcdouga9 at egr.msu.edu
Tue Oct 28 15:35:56 UTC 2014
On 10/28/2014 10:54, Baptiste Daroussin wrote:
> Author: bapt
> Date: Tue Oct 28 14:54:04 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
>
> Modified:
> head/usr.sbin/pw/pw_group.c
> head/usr.sbin/pw/tests/pw_delete.sh
Would you mind looking at this related pw bug with patch? Thanks.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=187189
More information about the svn-src-all
mailing list