Description of problem: On mock-1.4.18-1.fc29.noarch, the resulting files are owned by root:root instead of current user
Version-Release number of selected component (if applicable):
mock -v --no-cleanup-after --resultdir "/home/mock/rpm/mypackage-1.0/RPMS/fedora-29-x86_64" -r fedora-29-x86_64 "/home/mock/rpm/mypackage-1.0/SRPMS/mypackage-1.0.src.rpm"
Steps to Reproduce:
1. Build any src.rpm file.
Packages and log files owned by root:root, except for hw_info.log
Packages and log files owned by $(id -un):$(id -gn), in my case mock:mock
- Downgrading to mock-1.4.16-1.fc29.noarch.rpm fixes the problem.
- SELinux is disabled on my build server
- In my case, /home/mock is located on / , which is an ext4 partition on top of LVM.