]> git.ipfire.org Git - thirdparty/coreutils.git/commit
id: support specifying the user by user ID
authorPádraig Brady <P@draigBrady.com>
Fri, 20 Sep 2013 11:38:00 +0000 (12:38 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 22 Sep 2013 02:27:17 +0000 (03:27 +0100)
commit7415d8d9f823dae484d3791b425f184f1e3b4cad
treeca7c6b5124d25e355d8b210ac1d79ff2b6ffc414
parentf9992690f40646f64d8bd0bfb55faed1980df0ad
id: support specifying the user by user ID

* src/id.c (usage): Remove 'name' from the synopsis,
implying that one can also specify by user ID.
(main): Like chown(1), call parse_user_spec() to implement
user name or ID lookup with appropriate precedence.
* doc/coreutils.texi (id invocation): Mention that
a user ID is supported and how '+' affects lookup order.
* tests/misc/id-groups.sh: Remove test now subsumed into...
* tests/misc/id-uid.sh: New test covering new interface.
* tests/local.mk: Rename the test.
* NEWS: Mention the new feature.
Addresses http://bugs.gnu.org/15421
NEWS
doc/coreutils.texi
src/id.c
tests/local.mk
tests/misc/id-uid.sh [moved from tests/misc/id-groups.sh with 58% similarity]