diff options
Diffstat (limited to 'tests/chgrp/basic')
-rwxr-xr-x | tests/chgrp/basic | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/chgrp/basic b/tests/chgrp/basic index 96e201eaa..45f918fc6 100755 --- a/tests/chgrp/basic +++ b/tests/chgrp/basic @@ -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 \ |