bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug report---mv running as root


From: JohnT
Subject: bug report---mv running as root
Date: Tue, 12 May 2009 16:44:46 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090303 SeaMonkey/1.1.15

Hello. I ran the 7.2 test suite as root to get the results for the tests
required to be run as root, and got one error or failure. The following
is the console log produced by the failure. May 12, 2009. system:
Mandriva Powerpack 2007, i686, gcc 4.1.1, glibc 2.4, binutils 2.19.

John T
address@hidden


===========================================
 1 of 370 tests failed
 (72 tests were not run)
 See tests/test-suite.log
 Please report it to address@hidden
===========================================

=============================================
   GNU coreutils 7.2: tests/test-suite.log
=============================================

1 of 370 tests failed.  (72 tests were not run).

.. contents:: :depth: 2


FAIL: mv/sticky-to-xpart.log (exit: 1)
======================================

+ mv --version
mv (GNU coreutils) 7.2
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Parker, David MacKenzie, and Jim Meyering.
+ . ./test-lib.sh
++ unset function_test
++ eval 'function_test() { return 11; }; function_test'
+++ function_test
+++ return 11
++ test 11 '!=' 11
+++ pwd
++ test_dir_=/home/dilbert/Download/utils/coreutils-7.2/tests
+++ this_test_
+++ echo ././mv/sticky-to-xpart
+++ sed 's,.*/,,'
++ this_test=sticky-to-xpart
+++ /home/dilbert/Download/utils/coreutils-7.2/src/mktemp -d
--tmp=/home/dilbert/Download/utils/coreutils-7.2/tests
cu-sticky-to-xpart.XXXXXXXXXX
++
t_=/home/dilbert/Download/utils/coreutils-7.2/tests/cu-sticky-to-xpart.DFSw7FGii2
++ trap remove_tmp_ 0
++ trap 'Exit $?' 1 2 13 15
++ cd
/home/dilbert/Download/utils/coreutils-7.2/tests/cu-sticky-to-xpart.DFSw7FGii2
++ diff --version
++ grep GNU
+ require_root_
+ uid_is_privileged_
++ id -u
+ my_uid=0
+ case $my_uid in
+ NON_ROOT_USERNAME=nobody
+ . /home/dilbert/Download/utils/coreutils-7.2/tests/other-fs-tmpdir
++ test '' = set
++ CANDIDATE_TMP_DIRS='/root/tmp /tmp /dev/shm /var/tmp /usr/tmp /root'
++ other_partition_tmpdir=
+++ stat -c %d .
++ dot_mount_point=833
++ for d in '$CANDIDATE_TMP_DIRS'
++ test -d /root/tmp
+++ stat -L -c %d /root/tmp
++ d_mount_point=774
++ test x774 = x833
++ mkdir /root/tmp/tmp2552
++ other_partition_tmpdir=/root/tmp/tmp2552
++ break
++ test -z /root/tmp/tmp2552
++ test yes = yes
++ set -x
+ mkdir t
+ chmod a=rwx,o+t t
+ echo
+ chmod a+r t/root-owned
+ chown nobody /root/tmp/tmp2552
+ chmod go+x .
++ setuidgid nobody env
PATH=/home/dilbert/Download/utils/coreutils-7.2/src:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/lib/qt3//bin
mv --version
++ sed -n '1s/.* //p'
+ version=7.2
+ case $version in
+ setuidgid nobody env
PATH=/home/dilbert/Download/utils/coreutils-7.2/src:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/lib/qt3//bin
mv t/root-owned /root/tmp/tmp2552
+ onp='Operation not permitted'
+ sed 's/Not owner/Operation not permitted/;s/Permission
denied/Operation not permitted/' out-t
+ cat
+ compare out exp
+ diff -u out exp
--- out 2009-05-12 16:34:32.000000000 -0500
+++ exp 2009-05-12 16:34:32.000000000 -0500
@@ -1 +1 @@
-mv: accessing `/root/tmp/tmp2552': Operation not permitted
+mv: cannot remove `t/root-owned': Operation not permitted
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ rm -rf /root/tmp/tmp2552
+ cd /home/dilbert/Download/utils/coreutils-7.2/tests
+ chmod -R u+rwx
/home/dilbert/Download/utils/coreutils-7.2/tests/cu-sticky-to-xpart.DFSw7FGii2
+ rm -rf
/home/dilbert/Download/utils/coreutils-7.2/tests/cu-sticky-to-xpart.DFSw7FGii2
+ exit 1
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory
`/home/dilbert/Download/utils/coreutils-7.2/tests'
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory
`/home/dilbert/Download/utils/coreutils-7.2/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory
`/home/dilbert/Download/utils/coreutils-7.2/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/dilbert/Download/utils/coreutils-7.2'
make: *** [check] Error 2
address@hidden coreutils-7.2]# 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]