From 3337b5a092b54f8f9f5560d4b27af1e683d08d3d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 14 Dec 2000 14:52:15 +0000 Subject: *** empty log message *** --- tests/chgrp/deref | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/chgrp') diff --git a/tests/chgrp/deref b/tests/chgrp/deref index 6b7c47001..b8aa036e1 100755 --- a/tests/chgrp/deref +++ b/tests/chgrp/deref @@ -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 -- cgit v1.2.3-70-g09d2