On 20 March 2011 18:05, C. Scott Ananian <[email protected]> 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 _______________________________________________ Devel mailing list [email protected] http://lists.laptop.org/listinfo/devel
