gnutls-2.12.20-glibc-2.16.patch glibc-2.16 and gnutls2 fix

Submitted by Alexander Khryukin on Nov. 9, 2012, 12:10 p.m.

Details

Message ID 1352463054-21894-1-git-send-email-alexander@mezon.ru
State Not Applicable
Headers show

Commit Message

Alexander Khryukin Nov. 9, 2012, 12:10 p.m.
---
 package/gnutls/gnutls-2.12.20-glibc-2.16.patch | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 package/gnutls/gnutls-2.12.20-glibc-2.16.patch

Patch hide | download patch | download mbox

diff --git a/package/gnutls/gnutls-2.12.20-glibc-2.16.patch b/package/gnutls/gnutls-2.12.20-glibc-2.16.patch
new file mode 100644
index 0000000..eaa050e
--- /dev/null
+++ b/package/gnutls/gnutls-2.12.20-glibc-2.16.patch
@@ -0,0 +1,26 @@ 
+-2.12.20/gl/stdio.in.h
++++ gnutls-2.12.20/gl/stdio.in.h
+@@ -714,8 +714,10 @@
+ /* 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.  */
++#ifdef HAVE_RAW_DECL_GETS
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+ #endif
++#endif
+ 
+ 
+ #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
+--- gnutls-2.12.20/lib/gl/stdio.in.h
++++ gnutls-2.12.20/lib/gl/stdio.in.h
+@@ -714,8 +714,10 @@
+ /* 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.  */
++#ifdef HAVE_RAW_DECL_GETS
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+ #endif
++#endif
+ 
+ 
+ #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@