diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-04-19 07:08:08 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-04-19 07:08:08 +0000 |
commit | 822c4d9a83b69d2b752562580013750c2f249564 (patch) | |
tree | 1efca54708849ff2219b575ff4e9c95516f8ec3c /tests | |
parent | 08e7216b2c0ba31855c8aaab7373d9cd250164b0 (diff) | |
download | coreutils-822c4d9a83b69d2b752562580013750c2f249564.tar.xz |
Use numeric group ids, not symbolic group names,
since the latter can have shell metacharacters in them (e.g., spaces).
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/chmod/setgid | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/chmod/setgid b/tests/chmod/setgid index 6b84976c1..c3248a3d6 100755 --- a/tests/chmod/setgid +++ b/tests/chmod/setgid @@ -36,7 +36,7 @@ chmod g+s d 2> /dev/null || # it may happen that when you create a directory, its group isn't one # to which you belong. When that happens, the above chmod fails. So # here, upon failure, we try to set the group, then rerun the chmod command. - group=${COREUTILS_GROUP-`(id -ng || /usr/xpg4/bin/id -ng) 2>/dev/null`} + group=${COREUTILS_GROUP-`(id -g || /usr/xpg4/bin/id -g) 2>/dev/null`} if test "$group"; then chgrp "$group" d || framework_failure=1 chmod g+s d || framework_failure=1 |