Red Hat Bugzilla – Bug 465586
rpm --addsign resets the file mode
Last modified: 2008-10-16 13:06:42 EDT
Description of problem:
The --addsign mode for rpm doesn't honor the user's umask setting. From what I can tell, it resets the file mode of the signed RPM to 0600 in all cases.
This is a new behavior with rpm-4.5 (Fedora 10 Beta). The behavior doesn't occur in rpm-4.4.2 (Fedora 9). The gnupg versions in F9 and F10-Beta are identical so for now I'm filing this bug against rpm.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. build an rpm with 'rpmbuild -bb'
2. Set the RPM file mode with 'chmod 0644'
3. sign the rpm with 'rpm --addsign'
4. observe the new file mode
Signing an RPM should change its file mode.
Ah, another side-effect of using mkstemp(). Fill fix...
..and done upstream. Rawhide will get it on next tarball update (should be within a week or so)
In rawhide now.