From 42cd6653b06e63fc36ef3f105fd37de036012e05 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sat, 4 Jul 2009 10:14:31 +0200 Subject: tests: use the "nobody" user's group as the default group id * tests/chroot/credentials: Use the group id, not its name. * tests/test-lib.sh (NON_ROOT_GROUP): Use the "nobody" user's group in place of "nogroup". --- tests/test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test-lib.sh') diff --git a/tests/test-lib.sh b/tests/test-lib.sh index d99e3a966..9797b552e 100644 --- a/tests/test-lib.sh +++ b/tests/test-lib.sh @@ -209,7 +209,7 @@ require_root_() { uid_is_privileged_ || skip_test_ "must be run as root" NON_ROOT_USERNAME=${NON_ROOT_USERNAME=nobody} - NON_ROOT_GROUP=${NON_ROOT_GROUP=nobody} + NON_ROOT_GROUP=${NON_ROOT_GROUP=$(id -g $NON_ROOT_USERNAME)} } skip_if_root_() { uid_is_privileged_ && skip_test_ "must be run as non-root"; } -- cgit v1.2.3-54-g00ecf