diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch')
-rw-r--r-- | meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch new file mode 100644 index 0000000000..61d16e3a74 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch @@ -0,0 +1,21 @@ +Uptream-Status: Pending + +remove gets function + +Signed-off-by: Chunrong Guo <b40290@freescale.com> +--- inetutils-1.9.1.org/lib/stdio.in.h 2012-01-06 22:11:13.000000000 +0800 ++++ inetutils-1.9.1/lib/stdio.in.h 2012-11-12 14:30:49.044958001 +0800 +@@ -715,9 +715,13 @@ + /* 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 + ++#endif ++ + + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ + struct obstack; |