diff --git a/SOURCES/lftp-4.4.8-gnutls-termination.patch b/SOURCES/lftp-4.4.8-gnutls-termination.patch new file mode 100644 index 0000000..686b633 --- /dev/null +++ b/SOURCES/lftp-4.4.8-gnutls-termination.patch @@ -0,0 +1,13 @@ +diff --git a/src/lftp_ssl.cc.old b/src/lftp_ssl.cc +index f9bd594..b412ae5 100644 +--- a/src/lftp_ssl.cc.old ++++ b/src/lftp_ssl.cc +@@ -569,7 +569,7 @@ int lftp_ssl_gnutls::read(char *buf,int size) + { + if(res==GNUTLS_E_AGAIN || res==GNUTLS_E_INTERRUPTED) + return RETRY; +- else if(res==GNUTLS_E_UNEXPECTED_PACKET_LENGTH) ++ else if(res==GNUTLS_E_UNEXPECTED_PACKET_LENGTH || res==GNUTLS_E_PREMATURE_TERMINATION) + { + Log::global->Format(7,"gnutls_record_recv: %s; assuming EOF\n",gnutls_strerror(res)); + return 0; diff --git a/SPECS/lftp.spec b/SPECS/lftp.spec index f074a4b..825f795 100644 --- a/SPECS/lftp.spec +++ b/SPECS/lftp.spec @@ -1,7 +1,7 @@ Summary: A sophisticated file transfer program Name: lftp Version: 4.4.8 -Release: 11%{?dist} +Release: 11%{?dist}.1 License: GPLv3+ Group: Applications/Internet Source0: ftp://ftp.yar.ru/lftp/lftp-%{version}.tar.xz @@ -20,6 +20,7 @@ Patch8: lftp-4.4.8-mirror302-2.patch Patch9: lftp-4.4.8-hangs-mirror.patch Patch10: lftp-4.4.8-mirror-file-size-decrease.patch Patch11: lftp-4.4.8-max-retries.patch +Patch12: lftp-4.4.8-gnutls-termination.patch %description LFTP is a sophisticated ftp/http file transfer program. Like bash, it has job @@ -50,6 +51,7 @@ Utility scripts for use with lftp. %patch9 -p1 -b .mirror-hangs %patch10 -p1 -b .mirror-file-size-decrease %patch11 -p1 -b .max-retries +%patch12 -p1 -b .gnutls-termination #sed -i.rpath -e '/lftp_cv_openssl/s|-R.*lib||' configure sed -i.norpath -e \ @@ -112,6 +114,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Feb 04 2020 Michal Ruprich - 4.4.8-11.1 +- Resolves: #1797963 - lftp with ssl gives error Fatal error: gnutls_record_recv: The TLS connection was non-properly terminated + * Fri May 11 2018 Michal Ruprich - 4.4.8-11 - Resolves: #1514815 - lftp doesn't seems to consider 'set net:max-retries' - Resolves: #1556675 - "get" command with lftp does not fail on net:max-retries