# HG changeset patch # User Michael Schloh von Bennewitz # Date 1344005800 -7200 # Node ID e2558d4b246c819f0f82fa9a5c4d18f0d97209a7 # Parent edc7e45b466a11f0eaf694103602d2ecef308f2d Correct mother header in the case of C++ cstdio definition. diff -r edc7e45b466a -r e2558d4b246c lftp/lftp.patch --- a/lftp/lftp.patch Fri Aug 03 16:55:16 2012 +0200 +++ b/lftp/lftp.patch Fri Aug 03 16:56:40 2012 +0200 @@ -30,3 +30,19 @@ #elif defined(HAVE_TERMCAP_H) # include #endif +Index: lib/stdio.in.h +--- lib/stdio.in.h.orig 2012-07-03 15:29:29.000000000 +0200 ++++ lib/stdio.in.h 2012-08-03 14:31:28.929658700 +0200 +@@ -704,8 +704,12 @@ + removed it. */ + #undef gets + #if HAVE_RAW_DECL_GETS ++#ifdef __cplusplus ++_GL_WARN_ON_USE (std::gets, "gets is a security hole - use fgets instead"); ++#else + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + #endif ++#endif + + + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ diff -r edc7e45b466a -r e2558d4b246c lftp/lftp.spec --- a/lftp/lftp.spec Fri Aug 03 16:55:16 2012 +0200 +++ b/lftp/lftp.spec Fri Aug 03 16:56:40 2012 +0200 @@ -32,7 +32,7 @@ Group: FTP License: GPL Version: 4.3.8 -Release: 20120704 +Release: 20120800 # list of sources Source0: http://ftp.yars.free.net/pub/source/lftp/lftp-%{version}.tar.bz2