Red Hat Bugzilla – Bug 711226
Default permissions in spec file overriding per-directory permissions
Last modified: 2011-06-07 02:50:39 EDT
Created attachment 503335 [details]
Test spec file
Description of problem:
When creating an rpm that has both a %defattr line and also a directory that has its mode set via %attr, the %defattr overrides the %attr instead of vice versa
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rpmbuild the attached testrpm.spec file.
2. rpm -qplv /path/to/the/resulting/rpm/file
3. Note the directory is 0755, but should be 0777
The directory is 0755
The directory should be 0777
FWIW, this worked in F11.
*** This bug has been marked as a duplicate of bug 681540 ***