summaryrefslogtreecommitdiff
path: root/extra/cpio/gets.patch
blob: 0203b645e8cd68dddca39b0d2f0a5424a4411f9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)