]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Use -h where necessary to retain semantics.
authorJim Meyering <jim@meyering.net>
Mon, 17 May 2004 12:10:43 +0000 (12:10 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 17 May 2004 12:10:43 +0000 (12:10 +0000)
tests/chgrp/basic
tests/chgrp/deref
tests/chgrp/posix-H

index ee2f2b535f608d63872c6f94f073449532c020a3..aaa0f9478e107b5c0af68578e414c6bef5836446 100755 (executable)
@@ -56,10 +56,10 @@ test "$VERBOSE" = yes && set +x
   touch f
   ln -s f symlink
   chgrp $g1 f
-  chgrp $g2 symlink 2> /dev/null
+  chgrp -h $g2 symlink 2> /dev/null
 
   # This should not change the group of f.
-  chgrp -c $g2 symlink 2> /dev/null
+  chgrp -h -c $g2 symlink 2> /dev/null
   chgrp -c $g2 f
 
   # This *should* change the group of f.
index afe7b465a49a33f8f6ae2fb5f986aa9f7595a10c..2b947ae14c67476411984d9cdb6a4493898712bb 100755 (executable)
@@ -29,7 +29,7 @@ g2=$2
 touch f
 ln -s f symlink
 
-chgrp $g2 symlink 2> /dev/null
+chgrp -h $g2 symlink 2> /dev/null
 set _ `ls -l symlink`
 g=$5
 test "$g" = $g2 || {
@@ -45,12 +45,12 @@ fail=0
 chgrp $g1 f
 set _ `ls -l f`; g=$5; test "$g" = $g1 || fail=1
 
-chgrp $g2 symlink || fail=1
+chgrp -h $g2 symlink || fail=1
 set _ `ls -l f`; g=$5; test "$g" = $g1 || fail=1
 set _ `ls -l symlink`; g=$5; test "$g" = $g2 || fail=1
 
 # This should not change the group of f.
-chgrp $g2 symlink || fail=1
+chgrp -h $g2 symlink || fail=1
 set _ `ls -l f`; g=$5; test "$g" = $g1 || fail=1
 set _ `ls -l symlink`; g=$5; test "$g" = $g2 || fail=1
 
index 1652e595b23f167705ee478fd8ac46143673f8a1..59f6533f0a4b86953b1a0624ffdf1578c9376273 100755 (executable)
@@ -33,7 +33,7 @@ fi
 
 fail=0
 
-chgrp -HR $g2 1s 2 || fail=1
+chgrp -h -HR $g2 1s 2 || fail=1
 
 # These must have group $g2.
 # =========================