* [gentoo-commits] gentoo-x86 commit in sys-devel/gettext/files: gettext-0.18.1.1-no-gets.patch
@ 2012-05-23 2:12 Mike Frysinger (vapier)
0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2012-05-23 2:12 UTC (permalink / raw
To: gentoo-commits
vapier 12/05/23 02:12:54
Added: gettext-0.18.1.1-no-gets.patch
Log:
Fix building with glibc-2.16+.
(Portage version: 2.2.0_alpha102/cvs/Linux x86_64)
Revision Changes Path
1.1 sys-devel/gettext/files/gettext-0.18.1.1-no-gets.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/files/gettext-0.18.1.1-no-gets.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/files/gettext-0.18.1.1-no-gets.patch?rev=1.1&content-type=text/plain
Index: gettext-0.18.1.1-no-gets.patch
===================================================================
hack until gzip pulls a newer gnulib version
From 66712c23388e93e5c518ebc8515140fa0c807348 Mon Sep 17 00:00:00 2001
From: Eric Blake <eblake@redhat.com>
Date: Thu, 29 Mar 2012 13:30:41 -0600
Subject: [PATCH] stdio: don't assume gets any more
Gnulib intentionally does not have a gets module, and now that C11
and glibc have dropped it, we should be more proactive about warning
any user on a platform that still has a declaration of this dangerous
interface.
--- a/gettext-tools/libgettextpo/stdio.in.h
+++ b/gettext-tools/libgettextpo/stdio.in.h
@@ -125,7 +125,6 @@
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@
--- a/gettext-tools/gnulib-lib/stdio.in.h
+++ b/gettext-tools/gnulib-lib/stdio.in.h
@@ -125,7 +125,6 @@
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@
--- a/gettext-runtime/gnulib-lib/stdio.in.h
+++ b/gettext-runtime/gnulib-lib/stdio.in.h
@@ -125,7 +125,6 @@
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@
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-05-23 2:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-23 2:12 [gentoo-commits] gentoo-x86 commit in sys-devel/gettext/files: gettext-0.18.1.1-no-gets.patch Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox