]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Use numeric group ids, not symbolic group names,
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Apr 2005 07:08:08 +0000 (07:08 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Apr 2005 07:08:08 +0000 (07:08 +0000)
since the latter can have shell metacharacters in them (e.g., spaces).

tests/chmod/setgid

index 6b84976c1630d3ca00703df8ac4c6bd335888611..c3248a3d6c862b88ad94ea0f4d8d83b3dbb7238c 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=${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