]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
findutils: Fix gets compile error in gnulib.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Dec 2012 23:41:03 +0000 (00:41 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Dec 2012 23:41:03 +0000 (00:41 +0100)
findutils/findutils.nm
findutils/patches/findutils-4.5.10-gets.patch [new file with mode: 0644]

index c05b86743b07cdd1b38183f0546bc91a7b0b206c..6aee52ade7a57524327098860cfd3f2910d02cf6 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = findutils
 version    = 4.5.10
-release    = 3
+release    = 4
 
 groups     = System/Tools
 url        = http://www.gnu.org/software/findutils/
@@ -21,7 +21,7 @@ description
        names generated by the find command).
 end
 
-source_dl  =
+source_dl  = http://ftp.gnu.org/pub/gnu/findutils/
 
 build
        requires
diff --git a/findutils/patches/findutils-4.5.10-gets.patch b/findutils/patches/findutils-4.5.10-gets.patch
new file mode 100644 (file)
index 0000000..24eecc3
--- /dev/null
@@ -0,0 +1,29 @@
+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
+