Merge branch 'f13' into f14
This commit is contained in:
commit
a39aa6f7c7
@ -83,7 +83,7 @@ diff -up patch-2.6/src/patch.c.selinux patch-2.6/src/patch.c
|
|||||||
+ if (! inerrno && incontext)
|
+ if (! inerrno && incontext)
|
||||||
+ {
|
+ {
|
||||||
+ security_context_t outcontext;
|
+ security_context_t outcontext;
|
||||||
+ if (! getfilecon (outname, &outcontext) &&
|
+ if (getfilecon (outname, &outcontext) != -1 &&
|
||||||
+ outcontext &&
|
+ outcontext &&
|
||||||
+ strcmp(outcontext, incontext) &&
|
+ strcmp(outcontext, incontext) &&
|
||||||
+ setfilecon (outname, incontext) != 0)
|
+ setfilecon (outname, incontext) != 0)
|
||||||
|
12
patch.spec
12
patch.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: Utility for modifying/upgrading files
|
Summary: Utility for modifying/upgrading files
|
||||||
Name: patch
|
Name: patch
|
||||||
Version: 2.6.1
|
Version: 2.6.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.gnu.org/software/patch/patch.html
|
URL: http://www.gnu.org/software/patch/patch.html
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
@ -38,6 +38,9 @@ applications.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
|
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
|
||||||
|
%ifarch sparcv9
|
||||||
|
CFLAGS=`echo $CFLAGS|sed -e 's|-fstack-protector||g'`
|
||||||
|
%endif
|
||||||
%configure
|
%configure
|
||||||
make %{?smp_mflags}
|
make %{?smp_mflags}
|
||||||
|
|
||||||
@ -58,6 +61,13 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 6 2010 Tim Waugh <twaugh@redhat.com> 2.6.1-4
|
||||||
|
- Fixed interpretation of return value from getfilecon().
|
||||||
|
- Fixed argument type for --get (bug #553624).
|
||||||
|
|
||||||
|
* Fri Aug 6 2010 Dennis Gilmore <dennis@ausil.us>
|
||||||
|
- using -fstack-projector causes weirdness on 32 bit sparc so disabling for now
|
||||||
|
|
||||||
* Tue Jul 27 2010 Tim Waugh <twaugh@redhat.com> 2.6.1-3
|
* Tue Jul 27 2010 Tim Waugh <twaugh@redhat.com> 2.6.1-3
|
||||||
- Fixed argument type for --get (bug #553624).
|
- Fixed argument type for --get (bug #553624).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user