diff options
author | Jim Meyering <jim@meyering.net> | 2001-01-14 16:27:08 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-01-14 16:27:08 +0000 |
commit | 5aba9612783ad45ca17b4823afbce73baa555f08 (patch) | |
tree | 262d708568c908f6d3e2933156dd741f1fd1ded6 /tests/chmod/setgid | |
parent | 9be1481d174cd0620a1002bb7da897f3392b92ca (diff) | |
download | coreutils-5aba9612783ad45ca17b4823afbce73baa555f08.tar.xz |
use id's -ng options, not -nG
Diffstat (limited to 'tests/chmod/setgid')
-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 915c5194a..b7f9ad14c 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=${FETISH_GROUP-`(id -nG || /usr/xpg4/bin/id -nG) 2>/dev/null`} + group=${FETISH_GROUP-`(id -ng || /usr/xpg4/bin/id -ng) 2>/dev/null`} if test "$group"; then chgrp "$group" d || framework_failure=1 chmod g+s d || framework_failure=1 |