diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
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; | ||