[Top][All Lists]

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

Re: coreutils-6.9 build/check-root: test/rm failed on no-give-up

From: Jim Meyering
Subject: Re: coreutils-6.9 build/check-root: test/rm failed on no-give-up
Date: Tue, 01 May 2007 22:59:24 +0200

address@hidden wrote:
> And with 'gmake check-root' run as root, coreutils-6.9
> fails in tests/rm on no-give-up (see verbose output below).
> System:     sun-sparc-solaris2.6
> Compiler:   gcc-4.1.2
> -------------------------------------------------------
> fail=0
> + setuidgid nobody env 
> PATH=/build/coreutils-6.9_static-obj9_g412-b2175020070420-O3-mcpu=supersparc/tests/rm/../../src:/usr/local/build/bin:/usr/bin
>  rm -rf d
> fail=1
> + test -d d
> fail=1
> FAIL: no-give-up

Thanks for reporting that.
That test is failing because the setuidgid command
is supposed to fail to remove "d", but it actually does
remove the directory.

Please change that test so it uses these two setuidgid commands
instead of the one it currently has:

setuidgid $NON_ROOT_USERNAME env PATH="$PATH" id -a
setuidgid $NON_ROOT_USERNAME env PATH="$PATH" truss -o /tmp/rm-log rm -rf d && 

Then, the output from "id -a" might tell if setuidgid is doing its job.
There's an off-chance that the syscalls in /tmp/rm-log may tell
us what's happening.

reply via email to

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