diff options
Diffstat (limited to 'extra/cpio/gets.patch')
-rw-r--r-- | extra/cpio/gets.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/cpio/gets.patch b/extra/cpio/gets.patch new file mode 100644 index 000000000..0203b645e --- /dev/null +++ b/extra/cpio/gets.patch @@ -0,0 +1,16 @@ +diff -ru cpio-2.11.orig/gnu/stdio.in.h cpio-2.11/gnu/stdio.in.h +--- cpio-2.11.orig/gnu/stdio.in.h 2012-12-22 22:48:06.596855514 +0100 ++++ cpio-2.11/gnu/stdio.in.h 2012-12-22 22:49:21.496002937 +0100 +@@ -135,12 +135,6 @@ + "use gnulib module fflush for portable POSIX compliance"); + #endif + +-/* 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. */ +-#undef gets +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +- + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |