Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 2014 14:54:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 90114] [patch] pw(8) takes strings after option -g for GID 0
Message-ID:  <bug-90114-8-iKLl8JILe5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-90114-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-90114-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=90114

--- Comment #1 from commit-hook@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-90114-8-iKLl8JILe5>