From owner-svn-src-head@FreeBSD.ORG Fri Jul 3 18:37:13 2009 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D00D4106564A; Fri, 3 Jul 2009 18:37:13 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 6D9748FC15; Fri, 3 Jul 2009 18:37:13 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.3) with ESMTP id n63IaA04045312; Fri, 3 Jul 2009 13:36:10 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id n63IaAqU045311; Fri, 3 Jul 2009 13:36:10 -0500 (CDT) (envelope-from brooks) Date: Fri, 3 Jul 2009 13:36:10 -0500 From: Brooks Davis To: Tim Kientzle Message-ID: <20090703183609.GA45185@lor.one-eyed-alien.net> References: <200907031754.n63HsXRn084493@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: <200907031754.n63HsXRn084493@svn.freebsd.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Fri, 03 Jul 2009 13:36:10 -0500 (CDT) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r195318 - head/usr.bin/cpio X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jul 2009 18:37:14 -0000 --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jul 03, 2009 at 05:54:33PM +0000, Tim Kientzle wrote: > Modified: head/usr.bin/cpio/cmdline.c > ============================================================================== > --- head/usr.bin/cpio/cmdline.c Fri Jul 3 16:33:42 2009 (r195317) > +++ head/usr.bin/cpio/cmdline.c Fri Jul 3 17:54:33 2009 (r195318) > @@ -268,16 +268,36 @@ cpio_getopt(struct cpio *cpio) > * Parse the argument to the -R or --owner flag. > * > * The format is one of the following: > - * - Override user but not group > - * : - Override both, group is user's default group > - * : - Override both > - * : - Override group but not user > + * - Override user but not group > + * : - Override both, group is user's default group > + * : - Override user but not group > + * : - Override both > + * : - Override group but not user > + * > + * Where uid/gid are decimal representations and groupname/username > + * are names to be looked up in system database. Note that > + * uid/gid parsing takes priority over username/groupname lookup, > + * so this won't do a lookup for usernames or group names that > + * consist entirely of digits. Is this behavior specified somewhere? It is counter to the usual rule that the system should attempt to resolve all strings as a name first. For example, the following is from the chown manpage in POSIX.1-2008 If a numeric owner operand exists in the user database as a user name, the user ID number associated with that user name shall be used as the user ID. Numeric usernames are a disaster, especially if they can't match the uid for some reason, but following this rule consistently at least makes things more sane if you're stuck with them. -- Brooks --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFKTk+ZXY6L6fI4GtQRAr05AKCfi+4Wh+5DqlwwG4RumKfgYHYoigCgj/ni on202oO4v1XuEGyckC/9a6E= =oewl -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3--