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

index 6b7c47001aa34b5884266f23c05d57babe2487a3..b8aa036e136719085cd392979a917e8865eca413 100755 (executable)
@@ -73,4 +73,15 @@ 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/f d/s
+chgrp -R $g1 e/f
+# Neither of the following should not 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