Compare commits

...

No commits in common. "c10s" and "c8" have entirely different histories.
c10s ... c8

13 changed files with 103 additions and 264 deletions

View File

@ -1 +0,0 @@
1

58
.gitignore vendored
View File

@ -1,57 +1 @@
lftp-4.0.9.tar.lzma SOURCES/lftp-4.8.4.tar.xz
lftp-4.0.10.tar.xz
/lftp-4.1.0.tar.xz
/lftp-4.1.1.tar.xz
/lftp-4.1.2.tar.xz
/lftp-4.1.3.tar.xz
/lftp-4.2.1.tar.xz
/lftp-4.2.2.tar.xz
/lftp-4.2.3.tar.xz
/lftp-4.3.0.tar.xz
/lftp-4.3.1.tar.xz
/lftp-4.3.2.tar.xz
/lftp-4.3.3.tar.xz
/lftp-4.3.4.tar.xz
/lftp-4.3.6.tar.xz
/lftp-4.3.7.tar.xz
/lftp-4.4.0.tar.xz
/lftp-4.4.1.tar.xz
/lftp-4.4.2.tar.xz
/lftp-4.4.3.tar.xz
/lftp-4.4.5.tar.xz
/lftp-4.4.6.tar.xz
/lftp-4.4.7.tar.xz
/lftp-4.4.8.tar.xz
/lftp-4.4.9.tar.xz
/lftp-4.4.10.tar.xz
/lftp-4.4.11.tar.xz
/lftp-4.4.13.tar.xz
/lftp-4.4.14.tar.xz
/lftp-4.4.15.tar.xz
/lftp-4.4.16.tar.xz
/lftp-4.5.0.tar.xz
/lftp-4.5.1.tar.xz
/lftp-4.5.2.tar.xz
/lftp-4.5.3.tar.xz
/lftp-4.5.4.tar.xz
/lftp-4.6.0.tar.xz
/lftp-4.6.1.tar.xz
/lftp-4.6.4.tar.xz
/lftp-4.6.5.tar.xz
/lftp-4.7.0.tar.xz
/lftp-4.7.1.tar.xz
/lftp-4.7.2.tar.xz
/lftp-4.7.3.tar.xz
/lftp-4.7.4.tar.xz
/lftp-4.7.5.tar.xz
/lftp-4.7.6.tar.xz
/lftp-4.7.7.tar.xz
/lftp-4.8.0.tar.xz
/lftp-4.8.1.tar.xz
/lftp-4.8.2.tar.xz
/lftp-4.8.3.tar.xz
/lftp-4.8.4.tar.gz
/lftp-4.8.4.tar.xz
/lftp-4.9.0.tar.xz
/lftp-4.9.1.tar.xz
/lftp-4.9.2.tar.xz

View File

@ -0,0 +1,59 @@
From 0ad0732b8fbacd3519b4e3ecf8c394681b314672 Mon Sep 17 00:00:00 2001
From: "Alexander V. Lukyanov" <lavv17f@gmail.com>
Date: Thu, 5 Dec 2019 21:34:11 +0300
Subject: [PATCH] SSH_Access: fixed yes/no/[fingerprint] recognition (fix #547,
fix #525)
---
src/SSH_Access.cc | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/SSH_Access.cc b/src/SSH_Access.cc
index 97683a3f..adf0c196 100644
--- a/src/SSH_Access.cc
+++ b/src/SSH_Access.cc
@@ -20,6 +20,8 @@
#include <config.h>
#include "SSH_Access.h"
#include "misc.h"
+#include <algorithm>
+#include "ascii_ctype.h"
void SSH_Access::MakePtyBuffers()
{
@@ -70,6 +70,26 @@ static bool IsPasswordPrompt(const char *b,const char *e)
return (e-b>=len && !strncasecmp(b,suffix,len));
}
+struct nocase_eq
+{
+ inline bool operator() (char lhs, char rhs) const
+ {
+ return c_tolower(lhs) == c_tolower(rhs);
+ };
+};
+
+static bool contains(char const *begin, char const *end, char const *needle)
+{
+ return std::search(begin, end, needle, needle+strlen(needle), nocase_eq()) != end;
+}
+
+static bool IsConfirmPrompt(const char *b,const char *e)
+{
+ if(b==e)
+ return false;
+ return e[-1]=='?' && contains(b,e,"yes/no");
+}
+
int SSH_Access::HandleSSHMessage()
{
int m=STALL;
@@ -99,7 +106,7 @@ int SSH_Access::HandleSSHMessage()
password_sent++;
return m;
}
- if(ends_with(b,b+s,"(yes/no)?"))
+ if(IsConfirmPrompt(b,b+s))
{
const char *answer=QueryBool("auto-confirm",hostname)?"yes\n":"no\n";
pty_recv_buf->Put(answer);

View File

@ -1,24 +1,19 @@
Summary: A sophisticated file transfer program Summary: A sophisticated file transfer program
Name: lftp Name: lftp
Version: 4.9.2 Version: 4.8.4
Release: 16%{?dist} Release: 3%{?dist}
License: GPL-3.0-or-later License: GPLv3+
Group: Applications/Internet
Source0: http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz Source0: http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz
URL: http://lftp.yar.ru/ URL: http://lftp.yar.ru/
BuildRequires: ncurses-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gnutls-devel BuildRequires: ncurses-devel, gnutls-devel, perl-generators, pkgconfig, readline-devel, gettext
BuildRequires: perl-generators BuildRequires: zlib-devel
BuildRequires: pkgconfig BuildRequires: desktop-file-utils
BuildRequires: readline-devel
BuildRequires: gettext
BuildRequires: zlib-devel, gcc-c++
BuildRequires: desktop-file-utils
BuildRequires: make
Patch1: lftp-4.0.9-date_fmt.patch Patch1: lftp-4.0.9-date_fmt.patch
Patch2: lftp-4.9.2-cdefs.patch Patch2: lftp-4.8.4-ssh-prompt.patch
Patch3: lftp-4.9.2-gnutls-peers2.patch Patch3: lftp-4.8.4-re-newed-cert.patch
Patch4: lftp-4.9.2-fedora-c99.patch
%description %description
LFTP is a sophisticated ftp/http file transfer program. Like bash, it has job LFTP is a sophisticated ftp/http file transfer program. Like bash, it has job
@ -26,18 +21,21 @@ control and uses the readline library for input. It has bookmarks, built-in
mirroring, and can transfer several files in parallel. It is designed with mirroring, and can transfer several files in parallel. It is designed with
reliability in mind. reliability in mind.
%package scripts
Summary: Scripts for lftp
Group: Applications/Internet
Requires: lftp >= %{version}-%{release}
BuildArch: noarch
%description scripts
Utility scripts for use with lftp.
%prep %prep
%setup -q %setup -q
%patch 1 -p1 -b .date_fmt %patch1 -p1 -b .date_fmt
%ifarch ppc64le %patch2 -p1 -b .ssh-prompt
%patch 2 -p1 -b .cdefs %patch3 -p1 -b .re-newed-cert
%endif
%patch 3 -p1 -b .gnutls-peers2
%patch 4 -p1 -b .fedora-c99
# Avoid trying to re-run autoconf
touch -r aclocal.m4 configure m4/needtrio.m4
#sed -i.rpath -e '/lftp_cv_openssl/s|-R.*lib||' configure #sed -i.rpath -e '/lftp_cv_openssl/s|-R.*lib||' configure
sed -i.norpath -e \ sed -i.norpath -e \
@ -66,19 +64,22 @@ rm $RPM_BUILD_ROOT%{_libdir}/liblftp-tasks.so
desktop-file-install \ desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \ --dir=%{buildroot}%{_datadir}/applications \
%{buildroot}/%{_datadir}/applications/lftp.desktop %{buildroot}/%{_datadir}/applications/lftp.desktop
rm -r $RPM_BUILD_ROOT%{_datadir}/lftp
%find_lang %{name} %find_lang %{name}
%ldconfig_scriptlets %clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root,-)
%doc BUGS COPYING ChangeLog FAQ FEATURES README* NEWS THANKS TODO %doc BUGS COPYING ChangeLog FAQ FEATURES README* NEWS THANKS TODO
%config(noreplace) %{_sysconfdir}/lftp.conf %config(noreplace) %{_sysconfdir}/lftp.conf
%{_bindir}/lftp %{_bindir}/*
%{_bindir}/lftpget %{_mandir}/*/*
%{_mandir}/man1/lftp*.1*
%{_mandir}/man5/lftp.conf.5*
%dir %{_libdir}/lftp %dir %{_libdir}/lftp
%dir %{_libdir}/lftp/%{version} %dir %{_libdir}/lftp/%{version}
%{_libdir}/lftp/%{version}/cmd-torrent.so %{_libdir}/lftp/%{version}/cmd-torrent.so
@ -96,86 +97,23 @@ rm -r $RPM_BUILD_ROOT%{_datadir}/lftp
%{_datadir}/applications/lftp.desktop %{_datadir}/applications/lftp.desktop
%{_datadir}/icons/hicolor/*/apps/* %{_datadir}/icons/hicolor/*/apps/*
%files scripts
%defattr(-,root,root,-)
%{_datadir}/lftp
%changelog %changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 4.9.2-16 * Mon Jul 24 2023 Michal Ruprich <mruprich@redhat.com> - 4.8.4-3
- Bump release for October 2024 mass rebuild: - Resolves: #2182418 - Connection to site fails with certificate verification error
Resolves: RHEL-64018
* Tue Jul 23 2024 Michal Ruprich <mruprich@redhat.com> - 4.9.2-15 * Tue Apr 28 2020 Michal Ruprich <michalruprich@gmail.com> - 4.8.4-2
- Removing lftp-scripts - Resolves: #1793557 - SFTP over LFTP hangs if host key of the remote system doesn't exist
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 4.9.2-14
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Mar 16 2023 Michal Ruprich <mruprich@redhat.com> - 4.9.2-10
- SPDX migration
* Wed Feb 8 2023 DJ Delorie <dj@redhat.com> - 4.9.2-9
- Fix C99 compatibility issue
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Sep 07 2022 Michal Ruprich <mruprich@redhat.com> - 4.9.2-7
- Resolves: #2107872 - lftp fails to verify Let's Encrypt certificates
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Feb 07 2022 Michal Ruprich <mruprich@redhat.com> - 4.9.2-5
- Fix for FTBFS(rhbz#2045780)
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Aug 19 2020 Michal Ruprich <michalruprich@gmail.com> - 4.9.2-1
- New version 4.9.2
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Apr 03 2020 Michal Ruprich <michalruprich@gmail.com> - 4.9.1-1
- New version 4.9.1
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jan 03 2020 Michal Ruprich <mruprich@redhat.com> - 4.9.0-1
- New version 4.9.0
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.8.4-3
- Rebuild for readline 8.0
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Aug 01 2018 Michal Ruprich <mruprich@redhat.com> - 4.8.4-1 * Wed Aug 01 2018 Michal Ruprich <mruprich@redhat.com> - 4.8.4-1
- New version 4.8.4 - New version 4.8.4
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Apr 26 2018 Tomas Hozza <thozza@redhat.com> - 4.8.3-3
- Added gcc-c++ as an explicit BuildRequires
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.3-2 * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

1
ci.fmf
View File

@ -1 +0,0 @@
resultsdb-testcase: separate

View File

@ -1,25 +0,0 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1-public.functional}
#Rawhide
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1-public.functional}
#gating rhel
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-public.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional}

View File

@ -1,13 +0,0 @@
diff --git a/lib/libc-config.h.old b/lib/libc-config.h
index 1300c3a..7537bab 100644
--- a/lib/libc-config.h.old
+++ b/lib/libc-config.h
@@ -156,7 +156,7 @@
#undef __warndecl
/* Include our copy of glibc <sys/cdefs.h>. */
-#include <cdefs.h>
+#include <sys/cdefs.h>
/* <cdefs.h> __inline is too pessimistic for non-GCC. */
#undef __inline

View File

@ -1,22 +0,0 @@
diff -rup a/configure b/configure
--- a/configure 2023-02-08 21:27:48.733647760 -0500
+++ b/configure 2023-02-08 21:28:31.201222024 -0500
@@ -57429,6 +57429,7 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+ #include <stdio.h>
int main()
{
unsigned long long x=0,x1;
diff -rup a/m4/needtrio.m4 b/m4/needtrio.m4
--- a/m4/needtrio.m4 2016-02-20 08:57:52.000000000 -0500
+++ b/m4/needtrio.m4 2023-02-08 21:28:13.642571126 -0500
@@ -9,6 +9,7 @@ AC_DEFUN([LFTP_NEED_TRIO],[
else
AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ #include <stdio.h>
int main()
{
unsigned long long x=0,x1;

View File

@ -1,36 +0,0 @@
/tier1-internal:
plan:
import:
url: https://src.fedoraproject.org/tests/lftp.git
name: /plans/tier1/internal
/tier1-public:
plan:
import:
url: https://src.fedoraproject.org/tests/lftp.git
name: /plans/tier1/public
/tier2-tier3-internal:
plan:
import:
url: https://src.fedoraproject.org/tests/lftp.git
name: /plans/tier2-tier3/internal
/tier2-tier3-public:
plan:
import:
url: https://src.fedoraproject.org/tests/lftp.git
name: /plans/tier2-tier3/public
/others-internal:
plan:
import:
url: https://src.fedoraproject.org/tests/lftp.git
name: /plans/others/internal
/others-public:
plan:
import:
url: https://src.fedoraproject.org/tests/lftp.git
name: /plans/others/public

View File

@ -1,3 +0,0 @@
---
inspections:
badfuncs: off

View File

@ -1 +0,0 @@
SHA512 (lftp-4.9.2.tar.xz) = cda8698e7e34d748715a6fe5dc06c758240302621c7957402f0cc67577acf1a96b436fda4282408dee8171dc84a31e0be432df99a30f0a10057a8e7ea9ec64ad