Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-ftp/lftp/files: lftp-4.3.8-gets.patch
Date: Fri, 06 Jul 2012 13:58:49
Message-Id: 20120706135836.BB8F42004C@flycatcher.gentoo.org
1 jer 12/07/06 13:58:36
2
3 Added: lftp-4.3.8-gets.patch
4 Log:
5 Fix building against glibc-2.16 by Martin Jansa (bug #425026).
6
7 (Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-ftp/lftp/files/lftp-4.3.8-gets.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/lftp/files/lftp-4.3.8-gets.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/lftp/files/lftp-4.3.8-gets.patch?rev=1.1&content-type=text/plain
14
15 Index: lftp-4.3.8-gets.patch
16 ===================================================================
17 --- a/lib/stdio.in.h
18 +++ b/lib/stdio.in.h
19 @@ -702,7 +702,9 @@
20 /* It is very rare that the developer ever has full control of stdin,
21 so any use of gets warrants an unconditional warning; besides, C11
22 removed it. */
23 +#ifdef gets
24 #undef gets
25 +#endif
26 #if HAVE_RAW_DECL_GETS
27 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
28 #endif