Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2017 11:54:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 221417] pw usermod silently ignores -G ""
Message-ID:  <bug-221417-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 221417
           Summary: pw usermod silently ignores -G ""
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch, regression, security
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: fk@fabiankeil.de
             Flags: mfc-stable10?, mfc-stable11?

Created attachment 185283
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D185283&action=
=3Dedit
pw usermod: Properly deal with empty secondary group lists

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

Since the pw refactoring in 2015 pw usermod treats -G "" as if no
secondary group membership modification was requested, though.
As a result, any existing memberships are kept.

The attached patch fixes the issue and adds a test for it.

Obtained from: ElectroBSD

--=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>