ports/91451: lftp may segfaults when linked with Readline 5.0

Peter Kerwien peter at kerwien.homeip.net
Mon Jan 9 18:50:13 UTC 2006


The following reply was made to PR ports/91451; it has been noted by GNATS.

From: Peter Kerwien <peter at kerwien.homeip.net>
To: "Dmitry A. Yanko" <fm at cross-road.org.ua>
Cc: bug-followup at FreeBSD.org
Subject: Re: ports/91451: lftp may segfaults when linked with Readline 5.0
Date: Mon, 09 Jan 2006 19:50:08 +0100

 Patch does not fix this problem!
 
 root at freebsd# lftp
 lftp :~> open ftp.sunet.se
 lftp ftp.sunet.se:~> cd pub/Linux/kernel.org/Segmentation fault: 11 
 (core dumped)
 root at freebsd# lftp
 lftp :~> version
 LFTP | Version 3.3.5 | Copyright (c) 1996-2005 Alexander V. Lukyanov
 
 LFTP is free software, covered by the GNU General Public License, and 
 you are
 welcome to change it and/or distribute copies of it under certain 
 conditions.
 There is absolutely no warranty for LFTP.  See COPYING for details.
 
 Send bug reports and questions to <lftp at uniyar.ac.ru>.
 
 Libraries used: Readline 5.0, Expat 1.95.8, OpenSSL 0.9.7e-p1 25 Oct 2004
 
 Dmitry A. Yanko wrote:
 
 >Attached patch from author seems to solve a problem.
 >
 >
 >  
 >
 >------------------------------------------------------------------------
 >
 >diff -ruN lftp.orig/files/patch-complete.cc lftp/files/patch-complete.cc
 >--- lftp.orig/files/patch-complete.cc	Thu Jan  1 03:00:00 1970
 >+++ lftp/files/patch-complete.cc	Mon Jan  9 18:40:22 2006
 >@@ -0,0 +1,24 @@
 >+--- src/complete.cc.orig	Wed Nov  3 10:37:44 2004
 >++++ src/complete.cc	Mon Jan  9 18:38:59 2006
 >+@@ -660,7 +660,7 @@
 >+ 	    type=REMOTE_DIR;
 >+ 	 goto really_remote;
 >+       }
 >+-
 >++   really_local:
 >+       ArgV arg("", ResMgr::Query("cmd:cls-completion-default", 0));
 >+       fso.parse_argv(&arg);
 >+ 
 >+@@ -729,7 +729,11 @@
 >+    case REMOTE_FILE:
 >+    case REMOTE_DIR: {
 >+       if(!remote_completion && !force_remote)
 >+-	 break; // local
 >++      {
 >++	 if(type==REMOTE_DIR)
 >++	    type=LOCAL_DIR;
 >++	 goto really_local;
 >++      }
 >+    really_remote:
 >+       if(!strncmp(text,"bm:",3) && !strchr(text,'/'))
 >+       {
 >  
 >
 



More information about the freebsd-ports-bugs mailing list