Blame augeas-0.10.0-03-no-gets.patch
|
David Lutterkort |
b5eae7 |
diff -up augeas-0.10.0/gnulib/lib/stdio.in.h.orig augeas-0.10.0/gnulib/lib/stdio.in.h
|
|
David Lutterkort |
b5eae7 |
--- augeas-0.10.0/gnulib/lib/stdio.in.h.orig 2011-03-03 17:07:59.000000000 -0800
|
|
David Lutterkort |
b5eae7 |
+++ augeas-0.10.0/gnulib/lib/stdio.in.h 2012-08-09 12:18:51.817580091 -0700
|
|
David Lutterkort |
b5eae7 |
@@ -161,8 +161,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not
|
|
David Lutterkort |
b5eae7 |
/* It is very rare that the developer ever has full control of stdin,
|
|
David Lutterkort |
b5eae7 |
so any use of gets warrants an unconditional warning. Assume it is
|
|
David Lutterkort |
b5eae7 |
always declared, since it is required by C89. */
|
|
David Lutterkort |
b5eae7 |
+/* Don't mention gets at all
|
|
David Lutterkort |
b5eae7 |
#undef gets
|
|
David Lutterkort |
b5eae7 |
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
|
|
David Lutterkort |
b5eae7 |
+*/
|
|
David Lutterkort |
b5eae7 |
|
|
David Lutterkort |
b5eae7 |
#if @GNULIB_FOPEN@
|
|
David Lutterkort |
b5eae7 |
# if @REPLACE_FOPEN@
|