[packages/lftp] - rel 2; fix http redir handling

arekm arekm at pld-linux.org
Mon May 26 09:28:26 CEST 2014


commit 4e77efc08124c5089b972e7d7119fe7904af5820
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon May 26 09:28:23 2014 +0200

    - rel 2; fix http redir handling

 lftp-git.patch | 19 +++++++++++++++++++
 lftp.spec      |  2 +-
 2 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/lftp.spec b/lftp.spec
index c0869cc..d5436cf 100644
--- a/lftp.spec
+++ b/lftp.spec
@@ -23,7 +23,7 @@ Summary(pt_BR.UTF-8):	Sofisticado programa de transferência de arquivos (client
 Summary(zh_CN.UTF-8):	lftp 客户端程序
 Name:		lftp
 Version:	4.5.0
-Release:	1
+Release:	2
 License:	GPL v3+
 Group:		Applications/Networking
 Source0:	http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz
diff --git a/lftp-git.patch b/lftp-git.patch
index a7c72e8..2bdaa5d 100644
--- a/lftp-git.patch
+++ b/lftp-git.patch
@@ -52,3 +52,22 @@ index 4eb1e4d..1ce4ea6 100644
        return MOVED;
     }
     reply->DropData(recv_buf);
+commit c6c77d67316126c79d446baff27aa3b3a2f8baa8
+Author: Alexander V. Lukyanov <lav at yars.free.net>
+Date:   Mon May 26 11:02:40 2014 +0400
+
+    fixed redirection handling
+
+diff --git a/src/FileCopy.cc b/src/FileCopy.cc
+index f7e774c..30c2bdb 100644
+--- a/src/FileCopy.cc
++++ b/src/FileCopy.cc
+@@ -1134,7 +1134,7 @@ int FileCopyPeerFA::Get_LL(int len)
+ 	    if(FAmode==FA::QUOTE_CMD)
+ 	       FAmode=FA::RETRIEVE;
+ 
+-	    xstring& loc=xstring::get_tmp(loc_c);
++	    xstring loc(loc_c);
+ 	    session->Close(); // loc_c is no longer valid.
+ 	    loc_c=0;
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lftp.git/commitdiff/4e77efc08124c5089b972e7d7119fe7904af5820



More information about the pld-cvs-commit mailing list