bin/116487: teach adduser(8) to respect -G flag in the batch mode

Mike Makonnen mtm at FreeBSD.Org
Mon Oct 8 11:00:14 PDT 2007


The following reply was made to PR bin/116487; it has been noted by GNATS.

From: Mike Makonnen <mtm at FreeBSD.Org>
To: Eygene Ryabinkin <rea-fbsd at codelabs.ru>
Cc: bug-followup at freebsd.org
Subject: Re: bin/116487: teach adduser(8) to respect -G flag in the batch mode
Date: Mon, 8 Oct 2007 20:51:26 +0300

 --sdtB3X0nJg68CQEu
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Thanks! I have prepared a slightly modified patch to be commited once
 -CURRENT is unfrozen. I've stripped out the conversion of spaces to
 commas because that would be different from how it's handled in the
 rest of the script and because pw(8) accpets it fine.
 
 Cheers.
 -- 
 Mike Makonnen         | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc
 mmakonnen @ gmail.com | AC7B 5672 2D11 F4D0 EBF8  5279 5359 2B82 7CD4 1F55
 mtm @ FreeBSD.Org     | FreeBSD - http://www.freebsd.org
 
 --sdtB3X0nJg68CQEu
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=adduser-patch
 
 Index: usr.sbin/adduser/adduser.8
 ===================================================================
 RCS file: /home/ncvs/src/usr.sbin/adduser/adduser.8,v
 retrieving revision 1.59
 diff -u -r1.59 adduser.8
 --- usr.sbin/adduser/adduser.8	5 Dec 2006 23:20:14 -0000	1.59
 +++ usr.sbin/adduser/adduser.8	8 Oct 2007 11:50:13 -0000
 @@ -212,7 +212,7 @@
  .Ar login_group
  the default.
  .It Fl G Ar groups
 -Additional groups.
 +Space-separated list of additional groups.
  This option allows the user to specify additional groups to add users to.
  The user is a member of these groups in addition to their login group.
  .It Fl h
 Index: usr.sbin/adduser/adduser.sh
 ===================================================================
 RCS file: /home/ncvs/src/usr.sbin/adduser/adduser.sh,v
 retrieving revision 1.30
 diff -u -r1.30 adduser.sh
 --- usr.sbin/adduser/adduser.sh	12 Apr 2007 08:17:56 -0000	1.30
 +++ usr.sbin/adduser/adduser.sh	8 Oct 2007 12:40:33 -0000
 @@ -603,6 +603,7 @@
  			get_homedir
  			get_password
  			get_expire_dates
 +			ugroups="$defaultgroups"
  
  			add_user
  			;;
 
 --sdtB3X0nJg68CQEu--


More information about the freebsd-bugs mailing list