SHA256
1
0
forked from pool/openscap

Accepting request 129169 from home:a_jaeger:FactoryFix

Fix build with missing gets declaration (glibc 2.16)

OBS-URL: https://build.opensuse.org/request/show/129169
OBS-URL: https://build.opensuse.org/package/show/security/openscap?expand=0&rev=39
This commit is contained in:
Roman Drahtmueller 2012-07-28 14:30:29 +00:00 committed by Git OBS Bridge
parent 50ce8ceb61
commit dfd5d8718a
3 changed files with 21 additions and 0 deletions

14
openscap-stdio.h.patch Normal file
View File

@ -0,0 +1,14 @@
Index: openscap-0.8.2/lib/stdio.in.h
===================================================================
--- openscap-0.8.2.orig/lib/stdio.in.h
+++ openscap-0.8.2/lib/stdio.in.h
@@ -733,7 +733,9 @@ _GL_CXXALIASWARN (gets);
/* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning. Assume it is
always declared, since it is required by C89. */
+# if HAVE_RAW_DECL_GETS
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+# endif
#endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jul 28 14:24:46 UTC 2012 - aj@suse.de
- Fix build with missing gets declaration (glibc 2.16)
-------------------------------------------------------------------
Fri Mar 30 16:21:21 CEST 2012 - meissner@suse.de

View File

@ -25,6 +25,7 @@ Release: 1.0
Source: http://www.open-scap.org/download/%name-%version.tar.gz
Source1: oscap-scan.init
Source2: sysconfig.oscap-scan
Patch1: openscap-stdio.h.patch
Url: http://www.open-scap.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libacl-devel
@ -138,6 +139,7 @@ commonly used and require additional dependencies.
%prep
%setup -q
%patch1 -p1
%build