Avoid unnecessary shell invocation in %post.

This commit is contained in:
Dan Walsh 2011-09-08 15:26:30 -04:00
parent c03bd38197
commit 09b67080b4

View File

@ -7,7 +7,7 @@
Summary: SELinux library and simple utilities Summary: SELinux library and simple utilities
Name: libselinux Name: libselinux
Version: 2.1.5 Version: 2.1.5
Release: 3%{?dist} Release: 4%{?dist}
License: Public Domain License: Public Domain
Group: System Environment/Libraries Group: System Environment/Libraries
Source: %{name}-%{version}.tgz Source: %{name}-%{version}.tgz
@ -173,9 +173,7 @@ mv %{buildroot}%{_sbindir}/getconlist %{buildroot}%{_sbindir}/selinuxconlist
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%post %post -p /sbin/ldconfig
/sbin/ldconfig
exit 0
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
@ -233,6 +231,9 @@ exit 0
%{ruby_sitearch}/selinux.so %{ruby_sitearch}/selinux.so
%changelog %changelog
* Thu Sep 8 2011 Ville Skyttä <ville.skytta@iki.fi> - 2.1.5-4
- Avoid unnecessary shell invocation in %%post.
* Tue Sep 6 2011 Dan Walsh <dwalsh@redhat.com> - 2.1.5-3 * Tue Sep 6 2011 Dan Walsh <dwalsh@redhat.com> - 2.1.5-3
- Fix handling of subset labeling that is causing segfault in restorecon - Fix handling of subset labeling that is causing segfault in restorecon