mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 19:34:19 +02:00
Use numeric group ids, not symbolic group names,
since the latter can have shell metacharacters in them (e.g., spaces).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user