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 14:43:47
Message-Id: 20120706144336.6244A2004C@flycatcher.gentoo.org
1 jer 12/07/06 14:43:36
2
3 Modified: lftp-4.3.8-gets.patch
4 Log:
5 Move the #endif so it applies where it counts.
6
7 (Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.2 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.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/lftp/files/lftp-4.3.8-gets.patch?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/lftp/files/lftp-4.3.8-gets.patch?r1=1.1&r2=1.2
15
16 Index: lftp-4.3.8-gets.patch
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-ftp/lftp/files/lftp-4.3.8-gets.patch,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- lftp-4.3.8-gets.patch 6 Jul 2012 13:58:36 -0000 1.1
23 +++ lftp-4.3.8-gets.patch 6 Jul 2012 14:43:36 -0000 1.2
24 @@ -1,12 +1,15 @@
25 --- a/lib/stdio.in.h
26 +++ b/lib/stdio.in.h
27 -@@ -702,7 +702,9 @@
28 +@@ -702,10 +702,12 @@
29 /* It is very rare that the developer ever has full control of stdin,
30 so any use of gets warrants an unconditional warning; besides, C11
31 removed it. */
32 +#ifdef gets
33 #undef gets
34 -+#endif
35 #if HAVE_RAW_DECL_GETS
36 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
37 #endif
38 ++#endif
39 +
40 +
41 + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@