Bug 629048 - rpm: %defattr overrides %attr if directory default permission given
Summary: rpm: %defattr overrides %attr if directory default permission given
Status: VERIFIED FIXED
Alias: None
Product: openSUSE 11.3
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Critical with 2 votes (vote)
Target Milestone: ---
Assignee: Michael Schröder
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-06 10:23 UTC by Ruediger Oertel
Modified: 2011-11-21 17:01 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruediger Oertel 2010-08-06 10:23:51 UTC
on 11.3 and factory rpm will override individially specified permissions
for directories if %defattr is present with 4 parameters (the last one denoting
the default direcory permissions).

# cat /usr/src/packages/SPECS/mini.spec 
Name:           mini
License:        GPL
Version:        1
Release:        0
Summary:        foo
%description
foo
%prep
%build
%install
mkdir -m 777 $RPM_BUILD_ROOT/x
%files
%defattr(0644,root,root,0755)
%dir %attr(0777,root,root) /x
# rpm -qplv /usr/src/packages/RPMS/x86_64/mini-1-0.x86_64.rpm 
drwxr-xr-x    2 root    root                        0 Aug  6 12:22 /x
Comment 1 Jeff Johnson 2010-09-11 02:50:06 UTC
tracked at https://bugs.launchpad.net/rpm/+bug/633729
Comment 2 Michael Schröder 2011-11-21 17:01:14 UTC
I think this was fixed some time ago.