Package: fakeroot
Version: 1.15.1-1

| $ fakeroot test -w /; echo $?
| 1
| $ sudo test -w /; echo $?
| 0

I would have expected the results to match.

Context: today I tried building git from source with

        fakeroot debian/rules binary-arch BUILD_DOCS=0

and unfortunately a number of tests failed.  The cause is this code
fragment:

        # When the tests are run as root, permission tests will report that
        # things are writable when they shouldn't be.
        test -w / || test_set_prereq SANITY

I can reproduce it with /usr/bin/test from coreutils 8.5-1 or $sh -c
'test -w /' for various shells such as posh 0.10.  All use access(2)
as far as I can tell.

Known problem?



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to