From: Jim Meyering Date: Mon, 17 May 2004 12:10:43 +0000 (+0000) Subject: Use -h where necessary to retain semantics. X-Git-Tag: v5.3.0~1540 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58f134b649641a442a21f60a1c5889f4581240a5;p=thirdparty%2Fcoreutils.git Use -h where necessary to retain semantics. --- diff --git a/tests/chgrp/basic b/tests/chgrp/basic index ee2f2b535f..aaa0f9478e 100755 --- a/tests/chgrp/basic +++ b/tests/chgrp/basic @@ -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. diff --git a/tests/chgrp/deref b/tests/chgrp/deref index afe7b465a4..2b947ae14c 100755 --- a/tests/chgrp/deref +++ b/tests/chgrp/deref @@ -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 diff --git a/tests/chgrp/posix-H b/tests/chgrp/posix-H index 1652e595b2..59f6533f0a 100755 --- a/tests/chgrp/posix-H +++ b/tests/chgrp/posix-H @@ -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. # =========================