forked from pool/openscap
This commit is contained in:
parent
4ef63de556
commit
78aa0d74d6
12
fix-return.patch
Normal file
12
fix-return.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Index: openscap-1.0.2/src/OVAL/results/oval_cmp_ip_address.c
|
||||||
|
===================================================================
|
||||||
|
--- openscap-1.0.2.orig/src/OVAL/results/oval_cmp_ip_address.c
|
||||||
|
+++ openscap-1.0.2/src/OVAL/results/oval_cmp_ip_address.c
|
||||||
|
@@ -58,6 +58,7 @@ static inline int ipaddr_cmp(int af, con
|
||||||
|
return memcmp(addr1, addr2, sizeof(struct in6_addr));
|
||||||
|
|
||||||
|
assert(false);
|
||||||
|
+ return 42;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline void ipaddr_mask(int af, const void *ip_addr, uint32_t mask)
|
@ -31,9 +31,8 @@ Source2: sysconfig.oscap-scan
|
|||||||
# Generated from http://gitorious.org/test-suite/scap
|
# Generated from http://gitorious.org/test-suite/scap
|
||||||
Source3: scap-yast2sec-xccdf.xml
|
Source3: scap-yast2sec-xccdf.xml
|
||||||
Source4: scap-yast2sec-oval.xml
|
Source4: scap-yast2sec-oval.xml
|
||||||
#
|
|
||||||
#
|
|
||||||
Patch0: fix-missing-include.dif
|
Patch0: fix-missing-include.dif
|
||||||
|
Patch1: fix-return.patch
|
||||||
Url: http://www.open-scap.org/
|
Url: http://www.open-scap.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: libacl-devel
|
BuildRequires: libacl-devel
|
||||||
@ -149,6 +148,7 @@ commonly used and require additional dependencies.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user