lftp/lftp.patch

Wed, 08 Feb 2012 20:07:00 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 08 Feb 2012 20:07:00 +0200
changeset 588
300d43423c2e
parent 466
edc7e45b466a
child 653
9d74c60eb90e
permissions
-rw-r--r--

Update version, adapt patch, correct PID writing, correct build on newer
FreeBSD releases, and most importantly introduce new patch to try to
avoid segfault caused by multiple network interfaces with the same (or
no) address. This is common when configuring bridges and tunnels.

michael@466 1 Index: src/lftp_tinfo.cc
michael@466 2 --- src/lftp_tinfo.cc.orig 2008-11-27 06:56:39 +0100
michael@466 3 +++ src/lftp_tinfo.cc 2009-09-13 21:09:13 +0200
michael@466 4 @@ -23,20 +23,20 @@
michael@466 5 #include <config.h>
michael@466 6
michael@466 7 extern "C" {
michael@466 8 -#if defined(HAVE_CURSES_H)
michael@466 9 -# include <curses.h>
michael@466 10 -# if defined(HAVE_TERM_H)
michael@466 11 -# include <term.h>
michael@466 12 -# elif defined(HAVE_NCURSES_TERM_H)
michael@466 13 -# include <ncurses/term.h>
michael@466 14 -# endif
michael@466 15 -#elif defined(HAVE_NCURSES_CURSES_H)
michael@466 16 +#if defined(HAVE_NCURSES_CURSES_H)
michael@466 17 # include <ncurses/curses.h>
michael@466 18 # if defined(HAVE_NCURSES_TERM_H)
michael@466 19 # include <ncurses/term.h>
michael@466 20 # elif defined(HAVE_TERM_H)
michael@466 21 # include <term.h>
michael@466 22 # endif
michael@466 23 +#elif defined(HAVE_CURSES_H)
michael@466 24 +# include <curses.h>
michael@466 25 +# if defined(HAVE_TERM_H)
michael@466 26 +# include <term.h>
michael@466 27 +# elif defined(HAVE_NCURSES_TERM_H)
michael@466 28 +# include <ncurses/term.h>
michael@466 29 +# endif
michael@466 30 #elif defined(HAVE_TERMCAP_H)
michael@466 31 # include <termcap.h>
michael@466 32 #endif
michael@467 33 Index: lib/stdio.in.h
michael@467 34 --- lib/stdio.in.h.orig 2012-07-03 15:29:29.000000000 +0200
michael@467 35 +++ lib/stdio.in.h 2012-08-03 14:31:28.929658700 +0200
michael@467 36 @@ -704,8 +704,12 @@
michael@467 37 removed it. */
michael@467 38 #undef gets
michael@467 39 #if HAVE_RAW_DECL_GETS
michael@467 40 +#ifdef __cplusplus
michael@467 41 +_GL_WARN_ON_USE (std::gets, "gets is a security hole - use fgets instead");
michael@467 42 +#else
michael@467 43 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
michael@467 44 #endif
michael@467 45 +#endif
michael@467 46
michael@467 47
michael@467 48 #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@

mercurial