Fri, 03 Aug 2012 16:56:40 +0200
Correct mother header in the case of C++ cstdio definition.
lftp/lftp.patch | file | annotate | diff | comparison | revisions | |
lftp/lftp.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/lftp/lftp.patch Fri Aug 03 16:55:16 2012 +0200 1.2 +++ b/lftp/lftp.patch Fri Aug 03 16:56:40 2012 +0200 1.3 @@ -30,3 +30,19 @@ 1.4 #elif defined(HAVE_TERMCAP_H) 1.5 # include <termcap.h> 1.6 #endif 1.7 +Index: lib/stdio.in.h 1.8 +--- lib/stdio.in.h.orig 2012-07-03 15:29:29.000000000 +0200 1.9 ++++ lib/stdio.in.h 2012-08-03 14:31:28.929658700 +0200 1.10 +@@ -704,8 +704,12 @@ 1.11 + removed it. */ 1.12 + #undef gets 1.13 + #if HAVE_RAW_DECL_GETS 1.14 ++#ifdef __cplusplus 1.15 ++_GL_WARN_ON_USE (std::gets, "gets is a security hole - use fgets instead"); 1.16 ++#else 1.17 + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); 1.18 + #endif 1.19 ++#endif 1.20 + 1.21 + 1.22 + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
2.1 --- a/lftp/lftp.spec Fri Aug 03 16:55:16 2012 +0200 2.2 +++ b/lftp/lftp.spec Fri Aug 03 16:56:40 2012 +0200 2.3 @@ -32,7 +32,7 @@ 2.4 Group: FTP 2.5 License: GPL 2.6 Version: 4.3.8 2.7 -Release: 20120704 2.8 +Release: 20120800 2.9 2.10 # list of sources 2.11 Source0: http://ftp.yars.free.net/pub/source/lftp/lftp-%{version}.tar.bz2