do not require gets() to be declared
This commit is contained in:
parent
23afa40d98
commit
7590b65979
29
findutils-4.5.10-gets.patch
Normal file
29
findutils-4.5.10-gets.patch
Normal file
@ -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
|
||||||
|
|
@ -25,6 +25,9 @@ Patch4: findutils-4.5.7-warnings.patch
|
|||||||
# configure.ac: do not use the AM_C_PROTOTYPES macro (removed in Automake 1.12)
|
# configure.ac: do not use the AM_C_PROTOTYPES macro (removed in Automake 1.12)
|
||||||
Patch5: findutils-4.5.10-automake.patch
|
Patch5: findutils-4.5.10-automake.patch
|
||||||
|
|
||||||
|
# gnulib: do not require gets() to be declared
|
||||||
|
Patch6: findutils-4.5.10-gets.patch
|
||||||
|
|
||||||
Requires(post): /sbin/install-info
|
Requires(post): /sbin/install-info
|
||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
Conflicts: filesystem < 3
|
Conflicts: filesystem < 3
|
||||||
@ -56,6 +59,7 @@ useful for finding things on your system.
|
|||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
|
%patch6 -p1
|
||||||
|
|
||||||
# needed because of findutils-4.4.0-no-locate.patch
|
# needed because of findutils-4.4.0-no-locate.patch
|
||||||
aclocal -I gnulib/m4 -I m4
|
aclocal -I gnulib/m4 -I m4
|
||||||
@ -106,6 +110,7 @@ fi
|
|||||||
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> - 1:4.5.10-7
|
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> - 1:4.5.10-7
|
||||||
- fix specfile issues reported by the fedora-review script
|
- fix specfile issues reported by the fedora-review script
|
||||||
- do not use the AM_C_PROTOTYPES macro (removed in Automake 1.12)
|
- do not use the AM_C_PROTOTYPES macro (removed in Automake 1.12)
|
||||||
|
- do not require gets() to be declared
|
||||||
|
|
||||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.5.10-6
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.5.10-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user