coreutils' install does not set owner/group to root/root in fakeroot
To reproduce, install coreutils and run:
ncdev-edge-musl-x86:~$ touch test.txt
ncdev-edge-musl-x86:~$ ls -la test.txt
-rw-r--r-- 1 ncopa ncopa 0 Feb 19 10:12 test.txt
ncdev-edge-musl-x86:~$ fakeroot /bin/sh
ncdev-edge-musl-x86:/home/ncopa# install test.txt /tmp/
ncdev-edge-musl-x86:/home/ncopa# ls -l /tmp/test.txt
-rwxr-xr-x 1 ncopa ncopa 0 Feb 19 10:13 /tmp/test.txt
ncdev-edge-musl-x86:/home/ncopa# /bin/busybox install test.txt /tmp/
ncdev-edge-musl-x86:/home/ncopa# ls -l /tmp/test.txt
-rwxr-xr-x 1 root root 0 Feb 19 10:13 /tmp/test.txt
As you see, when coreutil’s install is used the permission is still ‘ncopa’. With busybox’s install its ‘root’.
(from redmine: issue id 2689, created on 2014-02-19, closed on 2014-03-07)
- Relations:
- parent #2687 (closed)
- Changesets:
- Revision 2cd17149 by Timo Teräs on 2014-03-03T12:13:16Z:
main/fakeroot: build with acl support
fixes #2689
- Revision 756fbdeb by Timo Teräs on 2014-03-04T16:06:25Z:
main/fakeroot: build with acl support
fixes #2689
(cherry picked from commit 2cd17149a1e99c8cff9989f429ec5d16fbff6699)