[EMAIL PROTECTED] 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 && 
fail=1

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.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to