From a0a51dee7cc2b39154f4272430a963f3ebbf222e Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 4 Nov 2019 10:25:35 -0800 Subject: id: various fixes. Handle unknown groups (fixes #117). Fix -G to show *all* groups, not just all supplementary groups. Fix -Z output to not include "context=". --- tests/id.test | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/id.test b/tests/id.test index 6d0f63a8..f62938f0 100755 --- a/tests/id.test +++ b/tests/id.test @@ -6,5 +6,8 @@ testing "id 0" "id 0" "uid=0(root) gid=0(root) groups=0(root)\n" "" "" testing "id root" "id root" "uid=0(root) gid=0(root) groups=0(root)\n" "" "" +testing "id -G root" "id -G root" "0\n" "" "" +testing "id -g root" "id -g root" "0\n" "" "" +testing "id -u root" "id -u root" "0\n" "" "" testing "id no-such-user" "id no-such-user 2>/dev/null ; echo \$?" "1\n" "" "" testing "id 9999999" "id 9999999 2>/dev/null ; echo \$?" "1\n" "" "" -- cgit v1.2.3