11.2.0 development build 14 released

Daniel Drake dsd at laptop.org
Sun Mar 20 14:46:12 EDT 2011


On 20 March 2011 18:05, C. Scott Ananian <cscott at laptop.org> wrote:
> so fakeroot (at least debian/unstable's version of fakeroot) should be
> able to handle this just fine.

You're right, this should work.

But it doesn't, even with fakeroot 1.14.5.

Test case:

As root:
mkdir test
echo closed > test/closed
chmod 000 test/closed
tar -cf test.tar test
rm -rf test

As user:
fakeroot
tar -xpf test.tar
ls -l test/closed
cat test/closed

Last command gives error.


Now exit from the fakeroot and:
ls -l test/closed

The 000 permissions somehow fell through onto the real filesystem, but
in your more simplistic testcase the 000 permissions stayed only
within the fake environment of fakeroot.

So..tar must be doing something different from chmod when applying permissions.

Daniel



More information about the Devel mailing list