]>
git.saurik.com Git - apple/file_cmds.git/blob - tests/chgrp.sh
5 dscl
/Local
/Default
-read /Groups
/$GROUPID > /dev
/null
2>&1
7 dscl
/Local
/Default
-create /Groups
/$GROUPID
8 dscl
/Local
/Default
-create /Groups
/$GROUPID PrimaryGroupID
9999
12 chgrp
$GROUPID /tmp
/$$
13 gid
=`/usr/bin/stat -f '%g' /tmp/$$`
14 if [ "$gid" != "9999" ]; then
15 echo "chgrp $GROUPID, expected group 9999, is $gid"
19 chgrp
-n $GROUPID /tmp
/$$
20 gid
=`/usr/bin/stat -f '%g' /tmp/$$`
21 if [ "$gid" != "$GROUPID" ]; then
22 echo "chgrp -n $GROUPID, expected group $GROUPID, is $gid"