file permissions when stripping under fakeroot
Allan McRae
allan@archlinux.org
Sat Feb 6 16:20:08 GMT 2021
With binutils 2.36.1, I notice a change of behaviour under fakeroot when
stripping files.
With binutils-2.36 (and earlier):
$ fakeroot
$ ls -l
-rwxr-xr-x 1 root root 16088 Feb 7 02:06 hello
$ strip hello
$ ls -l
-rwxr-xr-x 1 root root 14408 Feb 7 02:06 hello
With binutils-2.36.1:
$ fakeroot
$ ls -l
-rwxr-xr-x 1 root root 16088 Feb 7 02:08 hello
$ strip hello
$ ls -l
-rwxr-xr-x 1 allan allan 14408 Feb 7 02:08 hello
Is this a binutils issue, or a fakeroot issue exposed by binutils
changes? Either way, distributions that package under fakeroot are in
for some fun as files will be owned by the build user GID and not root.
Allan
More information about the Binutils
mailing list