Jason L Tibbitts III wrote:
In a %files section of a specfile, the %defattr directive is used to
the default file ownership and permissions. RPM has provided a sensible
default since version 4.4 (which predates FC6 and RHEL5), but very many
specfiles still include an initial %defattr line like
"%defattr(-,root,root,-)" as the initial line in a %files section even
though this has not been needed for well over a decade now. This
construct even appears in new specfiles, perhaps because it appears in
so many existing packages.
Why is that a problem? The line will have no effect. So why can't we just
leave it there?