gmake: Entering directory `/opt/build/coreutils-5.93/tests/cp' gmake check-TESTS gmake[1]: Entering directory `/opt/build/coreutils-5.93/tests/cp' + cp --version cp (GNU coreutils) 5.93 Copyright (C) 2005 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License . There is NO WARRANTY, to the extent permitted by law. Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering. + PRIV_CHECK_ARG=require-non-root + . ./../priv-check + who=by an unprivileged user + + id -u my_uid=1060 + test 0 = 0 + test 1060 = 0 + give_msg=no + test no = yes + + pwd pwd=/opt/build/coreutils-5.93/tests/cp + + sed s,.*/,, + echo ./fail-perm t0=fail-perm.tmp + tmp=fail-perm.tmp/753766 + trap status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status 0 + trap (exit $?); exit 1 2 13 15 + framework_failure=0 + mkdir -p fail-perm.tmp/753766 + cd fail-perm.tmp/753766 + mkdir D D/D + touch D/a + chmod 0 D/a + chmod 500 D + test 0 = 1 + fail=0 + cp -pR D DD + 1> /dev/null 2>& 1 + ls -ld DD + set X dr-x------ 3 pogma src 256 2005-11-15 08:54 DD + shift + test dr-x------ = dr-x------ + chmod 0 D + ln -s D/D symlink + touch F + cat + 1> exp 0< /tmp/sh753766.3 + cp F symlink + 2> out + cmp out exp out exp differ: char 26, line 1 + 2> /dev/null *** out Tue Nov 15 08:54:12 2005 --- exp Tue Nov 15 08:54:12 2005 *************** *** 1 **** ! cp: accessing `symlink': The file access permissions do not allow the specified action. --- 1 ---- ! cp: accessing `symlink': Permission denied + fail=1 + cp --target-directory=symlink F + 2> out + cmp out exp out exp differ: char 26, line 1 + 2> /dev/null *** out Tue Nov 15 08:54:12 2005 --- exp Tue Nov 15 08:54:12 2005 *************** *** 1 **** ! cp: accessing `symlink': The file access permissions do not allow the specified action. --- 1 ---- ! cp: accessing `symlink': Permission denied + fail=1 + chmod 700 D + exit 1 + exit 1 + status=1 + cd /opt/build/coreutils-5.93/tests/cp + chmod -R u+rwx fail-perm.tmp + rm -rf fail-perm.tmp + exit 1 FAIL: fail-perm ====================================== 1 of 1 tests failed Please report to address@hidden ====================================== gmake[1]: *** [check-TESTS] Error 1 gmake[1]: Leaving directory `/opt/build/coreutils-5.93/tests/cp' gmake: *** [check-am] Error 2 gmake: Leaving directory `/opt/build/coreutils-5.93/tests/cp'