#58 Bad %defattr in Packaging:Tmpfiles.d example spec
Closed: Fixed Opened by scop.

https://fedoraproject.org/wiki/Packaging:Tmpfiles.d

The {{{%defattr(0644, root, root, 0755)}}} line in that page is bad - it will result in changing the permissions of {{{%dir %{_localstatedir}/run/%{name}/}}} to 0755, while the example before it creates it as 0710.

Fix: change it to {{{%defattr(-,root,root,-)}}} or remove it altogether (should not be needed with rpmbuild >= 4.4).


Replaced with %defattr(-,root,root,-)

Metadata