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 @@ | |||
| 1 | Uptream-Status: Pending | ||
| 2 | |||
| 3 | remove gets function | ||
| 4 | |||
| 5 | Signed-off-by: Chunrong Guo <b40290@freescale.com> | ||
| 6 | --- inetutils-1.9.1.org/lib/stdio.in.h 2012-01-06 22:11:13.000000000 +0800 | ||
| 7 | +++ inetutils-1.9.1/lib/stdio.in.h 2012-11-12 14:30:49.044958001 +0800 | ||
| 8 | @@ -715,9 +715,13 @@ | ||
| 9 | /* It is very rare that the developer ever has full control of stdin, | ||
| 10 | so any use of gets warrants an unconditional warning. Assume it is | ||
| 11 | always declared, since it is required by C89. */ | ||
| 12 | +#if defined gets | ||
| 13 | +#undef gets | ||
| 14 | _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); | ||
| 15 | #endif | ||
| 16 | |||
| 17 | +#endif | ||
| 18 | + | ||
| 19 | |||
| 20 | #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ | ||
| 21 | struct obstack; | ||
