From 3a819d99d5ca5249708671c5cb448559d24795b6 Mon Sep 17 00:00:00 2001 From: Jiri Skala Date: Mar 04 2010 13:39:38 +0000 Subject: - fixes #566562 - lftp doesn't properly implement CCC --- diff --git a/lftp-4.0.5-ccc.patch b/lftp-4.0.5-ccc.patch new file mode 100644 index 0000000..396d490 --- /dev/null +++ b/lftp-4.0.5-ccc.patch @@ -0,0 +1,11 @@ +diff -up lftp-4.0.5/src/ftpclass.cc.ccc lftp-4.0.5/src/ftpclass.cc +--- lftp-4.0.5/src/ftpclass.cc.ccc 2010-03-04 14:15:05.633239152 +0100 ++++ lftp-4.0.5/src/ftpclass.cc 2010-03-04 14:15:56.237488489 +0100 +@@ -4136,6 +4136,7 @@ void Ftp::CheckResp(int act) + case Expect::CCC: + if(is2XX(act)) + { ++ conn->control_send->PutEOF(); + state=WAITING_CCC_SHUTDOWN; + conn->waiting_ssl_timer.Reset(); + } diff --git a/lftp.spec b/lftp.spec index 2104d84..2d144ba 100644 --- a/lftp.spec +++ b/lftp.spec @@ -1,7 +1,7 @@ Summary: A sophisticated file transfer program Name: lftp Version: 4.0.5 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ Group: Applications/Internet Source0: ftp://ftp.yar.ru/lftp/lftp-%{version}.tar.lzma @@ -9,6 +9,8 @@ URL: http://lftp.yar.ru/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ncurses-devel, gnutls-devel, pkgconfig, readline-devel, gettext +Patch1: lftp-4.0.5-ccc.patch + %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 @@ -27,6 +29,8 @@ Utility scripts for use with lftp. %prep %setup -q +%patch1 -p1 -b .ccc + #sed -i.rpath -e '/lftp_cv_openssl/s|-R.*lib||' configure sed -i.norpath -e \ '/sys_lib_dlsearch_path_spec/s|/usr/lib |/usr/lib /usr/lib64 /lib64 |' \ @@ -88,6 +92,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Mar 04 2010 Jiri Skala - 4.0.5-2 +- fixes #566562 - lftp doesn't properly implement CCC + * Thu Feb 04 2010 Jiri Skala - 4.0.5-1 - updated to latest stable version due to bug fixes