Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130923 - findutils-4.3.0 fails access.exp test
Summary: findutils-4.3.0 fails access.exp test
Status: RESOLVED DUPLICATE of bug 122989
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-22 20:42 UTC by Ryan Hill (RETIRED)
Modified: 2006-04-23 00:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2006-04-22 20:42:35 UTC
findutils-4.3.0 introduces a couple new filter switches to find (-readable, -writable, and -executable) that should return any items that have the corresponding permissions set.  There's a new test in the testsuite for this option, but it fails when run as root.

The test is:

# tests for -readable, -writable, -executable
exec rm -rf tmp
exec mkdir tmp
exec touch tmp/x tmp/w tmp/r tmp/rw tmp/rwx tmp/0 
exec chmod 400 tmp/r
exec chmod 200 tmp/w
exec chmod 100 tmp/x
exec chmod 000 tmp/0
exec chmod 600 tmp/rw
exec chmod 700 tmp/rwx
find_start p {tmp -readable -printf "r %p\n" , -writable -printf "w %p\n" , -executable  -printf "x %p\n"}
exec rm -rf tmp

(the find_start line is equiv to `find {options} | sort`)

The test looks for:

r tmp
r tmp/r
r tmp/rw
r tmp/rwx
w tmp
w tmp/rw
w tmp/rwx
w tmp/w
x tmp
x tmp/rwx
x tmp/x

which is what we get when run as a user.  When run as root, we get:

r tmp
r tmp/0
r tmp/r
r tmp/rw
r tmp/rwx
r tmp/w
r tmp/x
w tmp
w tmp/0
w tmp/r
w tmp/rw
w tmp/rwx
w tmp/w
w tmp/x
x tmp
x tmp/rwx
x tmp/x

I'm assuming this is because every file is readable and writable when you're root.

Because this is a base-system package, it shouldn't fail w/ FEATURES=test.  We could either change the expected results to match what we get, or just disable this test i guess.
Comment 1 SpanKY gentoo-dev 2006-04-23 00:59:58 UTC

*** This bug has been marked as a duplicate of 122989 ***