From: Jim Meyering Date: Thu, 14 Dec 2000 14:52:15 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: FILEUTILS-4_0_34~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3337b5a092b54f8f9f5560d4b27af1e683d08d3d;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/tests/chgrp/deref b/tests/chgrp/deref index 6b7c47001a..b8aa036e13 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