From 8aef34645fd26e1f61b7b02f88b1e3d2f2ee60eb Mon Sep 17 00:00:00 2001 From: jvdias Date: Feb 16 2006 16:46:46 +0000 Subject: Apply upstream fix for bug 181694 --- diff --git a/lftp-3.4.2-fix-redirect-coredump.patch b/lftp-3.4.2-fix-redirect-coredump.patch index 2f4daec..23bf8be 100644 --- a/lftp-3.4.2-fix-redirect-coredump.patch +++ b/lftp-3.4.2-fix-redirect-coredump.patch @@ -1,18 +1,11 @@ ---- lftp-3.4.2/src/Http.cc.redirect_coredump 2006-02-06 05:57:25.000000000 -0500 -+++ lftp-3.4.2/src/Http.cc 2006-02-15 16:19:23.000000000 -0500 -@@ -1525,6 +1525,15 @@ - } - if(mode==CHANGE_DIR) - { -+ if( new_cwd == 0L ) -+ { -+ char *new_location = xstrdup(GetConnectURL()); -+ xfree(location); -+ location=new_location; -+ SetError(FILE_MOVED); -+ state= DONE; -+ return MOVED; -+ } - cwd.Set(new_cwd); - state=DONE; - return MOVED; +--- lftp-3.4.2/src/FileAccess.cc.bz181694 2006-02-06 06:03:58.000000000 -0500 ++++ lftp-3.4.2/src/FileAccess.cc 2006-02-16 11:34:44.000000000 -0500 +@@ -690,7 +690,7 @@ + + void FileAccess::PathVerify(const Path &p) + { +- delete new_cwd; ++ Close(); + new_cwd=new Path(p); + Open(new_cwd->path,CHANGE_DIR); + } diff --git a/lftp.spec b/lftp.spec index 195a1f8..3868be3 100644 --- a/lftp.spec +++ b/lftp.spec @@ -1,7 +1,7 @@ Summary: A sophisticated file transfer program Name: lftp Version: 3.4.2 -Release: 2 +Release: 4 License: GPL Group: Applications/Internet Source0: http://ftp.yars.free.net/lftp/lftp-%{version}.tar.bz2 @@ -13,6 +13,8 @@ Patch173276: lftp-3.3.5-bz173276.patch Patch2: lftp-3.4.1-dont_core.patch Patch181694: lftp-3.4.2-fix-redirect-coredump.patch +#%define debug_package %{nil} + %description LFTP is a sophisticated ftp/http file transfer program. Like bash, it has job control and uses the readline library for input. It has bookmarks, built-in @@ -47,6 +49,8 @@ chmod 0755 $RPM_BUILD_ROOT%{_libdir}/lftp/%{version}/*.so # Remove files from $RPM_BUILD_ROOT that we aren't shipping. rm -f $RPM_BUILD_ROOT%{_libdir}/lftp/%{version}/*.a %find_lang %{name} +#/usr/lib/rpm/brp-compress +#exit 0 %clean rm -rf $RPM_BUILD_ROOT @@ -73,6 +77,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/lftp/%{version}/proto-sftp.so %changelog +* Thu Feb 16 2006 Jason Vas Dias - 3.4.2-4 +- Apply upstream fix for bug 181694. + * Wed Feb 15 2006 Jason Vas Dias - 3.4.2-2 - fix bug 181694: segfault on redirection to non-existent location