Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122989 - findutils-4.3.0 fails the access.exp test
Summary: findutils-4.3.0 fails the access.exp test
Status: RESOLVED FIXED
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:
: 130923 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-16 00:02 UTC by Brant Gurganus
Modified: 2006-09-16 19:40 UTC (History)
2 users (show)

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


Attachments
skip find.gnu/access test unless FEATURES=userpriv (fixtest.patch,740 bytes, patch)
2006-08-04 20:07 UTC, Andrew Ross (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brant Gurganus 2006-02-16 00:02:52 UTC
findutils-4.3.0 is failing the access.exp test. I have tried performing the test manually as well as outside of portage-created folders and can reproduce the issue. I have compared the 4.3.0 source with what is in findutils CVS and there appears to be some differences with readable, writable, executable implementation. However, I am not sufficiently familiar with the findutils code base to figure out what the problem actually is.

Pertinent output is:
FAIL: access, --- find.out      2006-02-16 02:29:21.000000000 -0500
+++ cmp.out     2006-02-16 02:29:21.000000000 -0500
@@ -1,17 +1,11 @@
 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
child process exited abnormally
Comment 1 SpanKY gentoo-dev 2006-04-10 22:00:52 UTC
ok, this isnt really findutils fault

if you run the test as non-root, it'll pass fine

prob is that access(R_OK/W_OK) returns true for root user even if the read/write permissions are removed

so we can either hack in the test to have it run as non-root or just disable it
Comment 2 SpanKY gentoo-dev 2006-04-23 00:59:58 UTC
*** Bug 130923 has been marked as a duplicate of this bug. ***
Comment 3 Andrew Ross (RETIRED) gentoo-dev 2006-08-04 18:39:56 UTC
Dropping from "normal" to "minor" severity, since easy work-around is:

sudo env FEATURES=userpriv emerge --oneshot findutils
Comment 4 Andrew Ross (RETIRED) gentoo-dev 2006-08-04 20:07:15 UTC
Created attachment 93466 [details, diff]
skip find.gnu/access test unless FEATURES=userpriv
Comment 5 SpanKY gentoo-dev 2006-09-16 19:40:08 UTC
fixed in 4.3.1