]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
use id's -ng options, not -nG
authorJim Meyering <jim@meyering.net>
Sun, 14 Jan 2001 16:27:08 +0000 (16:27 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 14 Jan 2001 16:27:08 +0000 (16:27 +0000)
tests/chmod/setgid

index 915c5194ad341a06b8fdea39175bac0e7a10b601..b7f9ad14c57c9cca360fd117c498a27f340d4f33 100755 (executable)
@@ -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