Use `id -G` rather than `groups` to get a list of groups for this
[rsync/rsync.git] / testsuite / chgrp.test
index 3bcd0d5..8cc89e0 100644 (file)
@@ -18,7 +18,9 @@ set -x
 fromdir="$scratchdir/from"
 todir="$scratchdir/to"
 
-mygrps="`groups`" || fail "Can't get groups"
+# TODO: I guess some systems will not have 'id', and therefore we have
+# to ship or emulate it.
+mygrps="`id -G`" || fail "Can't get groups"
 mkdir "$fromdir"
 
 for g in $mygrps