Accepting request 129176 from security

Fix build with missing gets declaration (glibc 2.16) (forwarded request 129169 from a_jaeger)

OBS-URL: https://build.opensuse.org/request/show/129176
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openscap?expand=0&rev=4
This commit is contained in:
Ismail Dönmez 2012-07-30 09:17:49 +00:00 committed by Git OBS Bridge
commit a948821521
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