]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Fri, 15 Dec 2000 14:45:50 +0000 (14:45 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 15 Dec 2000 14:45:50 +0000 (14:45 +0000)
tests/chgrp/deref

index c877726dcd2f71e355a6665d4e6223ffc7f6e183..938c1cb8d2e6d27abab0814056dd959f893e11b9 100755 (executable)
@@ -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