Comment 7 for bug 1176277

Revision history for this message
Eliezer Croitoru (eliezer) wrote :

in RH they fixed the bug in another way with the next patch:

Patch applied:
----------
--- nagios-plugins-1.4.15-orig/gl/stdio.in.h 2010-07-27 21:47:15.000000000 +0100
+++ nagios-plugins-1.4.15/gl/stdio.in.h 2012-06-26 21:12:47.000000000 +0100
@@ -140,8 +140,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. */
+#if defined gets
 #undef gets
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#endif

 #if @GNULIB_FOPEN@
 # if @REPLACE_FOPEN@
----------

https://bugzilla.redhat.com/show_bug.cgi?id=835621#c6