Ticket #1867: coreutils-6.2-chgrp_test-1.patch

File coreutils-6.2-chgrp_test-1.patch, 933 bytes (added by Matthew Burgess, 18 years ago)
  • tests/chgrp/basic

    Submitted By: Matthew Burgess <matthew at linuxfromscratch dot org>
    Date: 2006-09-18
    Initial Package Version: 6.2
    Upstream Status: Backported from upstream
    Origin: Paul Eggert
    Description: Fix a typo in a chgrp test that causes it to fail if the build
                 directory is setgid.
    
    diff -Naur coreutils-6.2.orig/tests/chgrp/basic coreutils-6.2/tests/chgrp/basic
    old new  
    7373rm -f f
    7474touch f
    7575ln -s f symlink
    76 chgrp $g1 f; test `stat --printf=%g f` = $g1 || fail=1
     76chgrp $g1 f
     77test `stat --printf=%g f` = $g1 || fail=1
    7778
    7879# This should not change the group of f.
    79 test `stat --printf=%g f` = $g1 || fail=1
    80 test `stat --printf=%g symlink` = $g1 || fail=1
    8180chgrp -h $g2 symlink
    8281test `stat --printf=%g f` = $g1 || fail=1
    8382test `stat --printf=%g symlink` = $g2 || fail=1