From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RLj4P-0001R3-D5 for garchives@archives.gentoo.org; Wed, 02 Nov 2011 22:14:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DDFB4E05A5; Wed, 2 Nov 2011 22:13:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 01B2FE05B1 for ; Wed, 2 Nov 2011 22:13:07 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 5CEB21B401E for ; Wed, 2 Nov 2011 22:13:07 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] enew{user,group}: killing off [extra] argument Date: Wed, 2 Nov 2011 18:13:11 -0400 User-Agent: KMail/1.13.7 (Linux/3.1.0-rc4; KDE/4.6.5; x86_64; ; ) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart24920539.FsnTzuXrpB"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201111021813.11725.vapier@gentoo.org> X-Archives-Salt: f4e583da-3b3f-4e88-9331-8eb94104eb2b X-Archives-Hash: 0a47ee4474c8400d1a50ce50308b7ed8 --nextPart24920539.FsnTzuXrpB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable when i first wrote enew{user,group} oh-so-long-ago, the reason for the [ext= ra]=20 arguments was the assumption that i am short sighted. i figured someone wo= uld=20 come up with some creative need for passing additional flags that i couldn'= t=20 possibly think of. however, in the ~9 years since, all i have to report is disappointment in t= he=20 collective lack of creativity when it comes to abusing open ended interface= s. =20 two flags have surfaced in the main tree with enewuser, and only in a handf= ul=20 of ebuilds: -c -G enewgroup hasn't had any extra args ! when it comes to -c, the custom comment in the ebuilds isn't all that bette= r=20 than the default one that enewuser already adds, so i've punted them. when it comes to -G, it's a matter of the existing argument not being=20 correctly utilized. enewuser already takes care of splitting the = =20 argument into -g/-G. so i've converted the packages using this. back to the point of this e-mail ... i plan on dropping the [extra] part of= =20 enew{user,group} and changing this to a `die`. this simplifies the interfa= ce,=20 and makes it more portable -- the darwin port has already been calling `die= `=20 when people pass in extra args. now is the time to whine if you want to keep this ! =2Dmike --nextPart24920539.FsnTzuXrpB Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJOscB3AAoJEEFjO5/oN/WBN9sQAJMCFqqWzTj3mzkWap/w0pcz OwEIbWhtbpjHzc2AZpsAxhc98s0F69yGn3buGrEJ6pbR5UYI9NQmgsFjEkjQMTmM k6jn0MYvYpqPVW6qnK9f46IAHnyGAhPcgel6hjM8uhowYCHuovA//H2vzLZWxxbG tOH20j98sn1X7Y5sWxANugMnqGpvf2y4KVpyOdG+hVP/ATeXzLfWyv0/b8+85Wrx vEUCYaXaIlEUgfVlsjn8b3gL7wcR4DI3N/zm8NhQv1UR0EubHvb19v+oCovwjqm5 IDHY3gVfm+vYgxVp5l8Yj7e56iiRLeWLt764xTDkBiol/ROCFzgmieaqZrfs6pqG aK6gcbkCq3H02+adlCEe81S6U7npObxG0AUghr+q+Ta/flhleGp7tuYbvcFTVWm9 1Xmq8x/ezUNYZxODcaKtK5iohfYLOO7VNJYGM9iEtINQXr25mPsIjG0+IroqX+8b Q6qpfoKLIFtEpw4WIcpScyNFArjoFtSyy/3yeZwwTcrvSRbq+m8qw3kLlDe1yz4t DNun7pvEdZS7iH6eXD0d9XjGdNquZlOtUR4aFF5GliVxJ60L6CDsn1rwnz+1XyKZ XI3pKFn6Ih/jwy0x5mSTJ00daQnT4KmwgIRYFYGN0yJ61RFR9BlCxtjTAQ6skIID CNAlMmwBduyX2W1J2H2f =WdmL -----END PGP SIGNATURE----- --nextPart24920539.FsnTzuXrpB--