findutils/findutils-4.5.10-gets.patch

30 lines
1017 B
Diff

From fe7079ab7e5794b9222af5e56c6f25b424ca72f3 Mon Sep 17 00:00:00 2001
From: Kamil Dudka <kdudka@redhat.com>
Date: Tue, 28 Aug 2012 17:24:21 +0200
Subject: [PATCH] gnulib: do not require gets() to be declared
---
gnulib/lib/stdio.in.h | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/gnulib/lib/stdio.in.h b/gnulib/lib/stdio.in.h
index 57e93ba..b1e5bb6 100644
--- a/gnulib/lib/stdio.in.h
+++ b/gnulib/lib/stdio.in.h
@@ -175,12 +175,6 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - "
"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)
--
1.7.1