If you run the coreutils pwd-long test from within a bind mount it'll
fail. Reproduce with:
| mkdir test1 test2
| mount --bind test1 test2
| cd test2
| env BUILD_SRC_DIR=/bin ./pwd-long
looking at what pwd returns:
(expects)
/tmp/test2/pwd-long.tmp/19496/zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz/zzzzz[...]
(gets)
/tmp/test1/pwd-long.tmp/19496/zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz/zzzzz[...]
this actually makes sense based on the algorithm (stat ., list .., find
the directory which has the right inode) and I'm not sure that I can
think of a way to rewrite the test so that it would actually work on a
bind mount. Maybe we could only compare the part from pwd-long.tmp on,
but would that still test for whatever failure lead to the test in the
first place?
Mike Stone
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]