summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-15 14:45:50 +0000
committerJim Meyering <jim@meyering.net>2000-12-15 14:45:50 +0000
commit3ebf224b28dc31489338c3ecba7fb01344ca8758 (patch)
tree2603fa4054746e3a205c846e7fd8603ac9640ec4 /tests
parent9be2faa156378ac133f89ea3f06a8e3c9807ef24 (diff)
downloadcoreutils-3ebf224b28dc31489338c3ecba7fb01344ca8758.tar.xz
*** empty log message ***
Diffstat (limited to 'tests')
-rwxr-xr-xtests/chgrp/deref15
1 files changed, 2 insertions, 13 deletions
diff --git a/tests/chgrp/deref b/tests/chgrp/deref
index c877726dc..938c1cb8d 100755
--- a/tests/chgrp/deref
+++ b/tests/chgrp/deref
@@ -1,5 +1,5 @@
#!/bin/sh
-# make sure chgrp handles symlinks properly
+# see if chgrp can change the group of a symlink
if test "$VERBOSE" = yes; then
set -x
@@ -67,21 +67,10 @@ chgrp $g2 f
set _ `ls -l f`; g=$5; test "$g" = $g2 || fail=1
# This *should* change the group of f.
-# Though note that the diagnostic is misleading in that
+# Though note that the diagnostic you'd get with -c is misleading in that
# it says the `group of `symlink'' has been changed.
chgrp --dereference $g1 symlink
set _ `ls -l f`; g=$5; test "$g" = $g1 || fail=1
set _ `ls -l symlink`; g=$5; test "$g" = $g2 || fail=1
-# See about traversing a symlink to a directory.
-mkdir d e
-touch e/f
-ln -s ../e d/s
-chgrp -R $g1 e/f
-# Neither of the following should change the group of e/f
-chgrp -R $g2 d
-set _ `ls -l e/f`; g=$5; test "$g" = $g1 || fail=1
-chgrp --deref -R $g2 d
-set _ `ls -l e/f`; g=$5; test "$g" = $g1 || fail=1
-
(exit $fail); exit