Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-arch/sharutils/files: sharutils-4.11.1-no-gets.patch
Date: Fri, 06 Jul 2012 04:21:54
Message-Id: 20120706042144.1455C2004B@flycatcher.gentoo.org
1 vapier 12/07/06 04:21:44
2
3 Added: sharutils-4.11.1-no-gets.patch
4 Log:
5 Fix building with glibc-2.16 #424994 by Stevan Bajić.
6
7 (Portage version: 2.2.0_alpha115/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-arch/sharutils/files/sharutils-4.11.1-no-gets.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/sharutils/files/sharutils-4.11.1-no-gets.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/sharutils/files/sharutils-4.11.1-no-gets.patch?rev=1.1&content-type=text/plain
14
15 Index: sharutils-4.11.1-no-gets.patch
16 ===================================================================
17 https://bugs.gentoo.org/424994
18
19 hack until sharutils pulls a newer gnulib version
20
21 From 66712c23388e93e5c518ebc8515140fa0c807348 Mon Sep 17 00:00:00 2001
22 From: Eric Blake <eblake@××××××.com>
23 Date: Thu, 29 Mar 2012 13:30:41 -0600
24 Subject: [PATCH] stdio: don't assume gets any more
25
26 Gnulib intentionally does not have a gets module, and now that C11
27 and glibc have dropped it, we should be more proactive about warning
28 any user on a platform that still has a declaration of this dangerous
29 interface.
30
31 --- a/lib/stdio.in.h
32 +++ b/lib/stdio.in.h
33 @@ -125,7 +125,6 @@
34 so any use of gets warrants an unconditional warning. Assume it is
35 always declared, since it is required by C89. */
36 #undef gets
37 -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
38
39 #if @GNULIB_FOPEN@
40 # if @REPLACE_FOPEN@