Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aaf8d8
)
Use `id -G` rather than `groups` to get a list of groups for this
author
Martin Pool
<mbp@samba.org>
Fri, 22 Mar 2002 05:06:36 +0000
(
05:06
+0000)
committer
Martin Pool
<mbp@samba.org>
Fri, 22 Mar 2002 05:06:36 +0000
(
05:06
+0000)
user, so that we can cope on systems like Cygwin that tend to have
group names containing spaces.
testsuite/chgrp.test
patch
|
blob
|
blame
|
history
diff --git
a/testsuite/chgrp.test
b/testsuite/chgrp.test
index
3bcd0d5
..
8cc89e0
100644
(file)
--- a/
testsuite/chgrp.test
+++ b/
testsuite/chgrp.test
@@
-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