]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sun, 10 Dec 2000 08:07:38 +0000 (08:07 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 10 Dec 2000 08:07:38 +0000 (08:07 +0000)
tests/chgrp/basic

index 96e201eaa691daba65b06f51509bfd3c169398fe..45f918fc61b43f3e1df7a4817bca2ee534581d4e 100755 (executable)
@@ -54,6 +54,15 @@ chgrp $g2 f2 || fail=1
   chgrp -R -c $g2 d
   chgrp -R -c $g1 d
   chgrp -c $g2 d
+
+  rm -f f
+  touch f
+  ln -s f symlink
+  chgrp -c $g1 f
+  # This should not change the group of f.
+  chgrp -c $g2 symlink 2> /dev/null
+  chgrp -c $g2 f
+
 ) 2>&1 | sed "s/ $g1$/ G1/;s/ $g2$/ G2/" > actual
 
 cat <<\EOF > expected
@@ -71,6 +80,7 @@ group of `d/f3' changed to G2
 group of `d' changed to G1
 group of `d/f3' changed to G1
 group of `d' changed to G2
+group of `f' changed to G2
 EOF
 
 cmp expected actual \