Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Aug 2017 00:20:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 221417] pw usermod silently ignores -G ""
Message-ID:  <bug-221417-8-nbp2OncZfD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-221417-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-221417-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=3D221417

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

Author: emaste
Date: Sat Aug 19 00:19:24 UTC 2017
New revision: 322677
URL: https://svnweb.freebsd.org/changeset/base/322677

Log:
  pw usermod: Properly deal with empty secondary group lists (-G '')

  "pw usermod someuser -G ''" is supposed make sure that someuser
  doesn't have any secondary group memberships.

  Previouly it was a nop because split_groups() only intitialised
  "groups" if at least one group was specified. As a result the
  existing secondary group memberships were kept.

  PR:           221417
  Submitted by: Fabian Keil
  Obtained from:        ElectroBSD
  MFC after:    1 week
  Relnotes:     yes

Changes:
  head/usr.sbin/pw/pw_user.c
  head/usr.sbin/pw/tests/pw_usermod_test.sh

--=20
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-221417-8-nbp2OncZfD>