rpms/lftp/devel lftp-3.5.14-progress_overflow.patch, NONE, 1.1 lftp.spec, 1.63, 1.64
Martin Nagy (mnagy)
fedora-extras-commits at redhat.com
Thu Dec 13 07:46:13 UTC 2007
Author: mnagy
Update of /cvs/extras/rpms/lftp/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31938
Modified Files:
lftp.spec
Added Files:
lftp-3.5.14-progress_overflow.patch
Log Message:
* Tue Dec 13 2007 Martin Nagy <mnagy at redhat.com> - 3.5.14-3
- Fixed coredumping when downloading (#414051)
lftp-3.5.14-progress_overflow.patch:
--- NEW FILE lftp-3.5.14-progress_overflow.patch ---
diff -up lftp-3.5.14/src/FileCopy.cc.test lftp-3.5.14/src/FileCopy.cc
--- lftp-3.5.14/src/FileCopy.cc.test 2007-12-11 09:48:03.000000000 +0100
+++ lftp-3.5.14/src/FileCopy.cc 2007-12-11 09:48:36.000000000 +0100
@@ -530,6 +530,6 @@ const char *FileCopy::GetPercentDoneStr(
return "";
- static char buf[6];
+ static char buf[8];
- sprintf(buf,"(%d%%) ",pct);
+ snprintf(buf,8,"(%d%%) ",pct);
return buf;
}
float FileCopy::GetRate()
Index: lftp.spec
===================================================================
RCS file: /cvs/extras/rpms/lftp/devel/lftp.spec,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- lftp.spec 4 Dec 2007 10:42:49 -0000 1.63
+++ lftp.spec 13 Dec 2007 07:45:39 -0000 1.64
@@ -1,7 +1,7 @@
Summary: A sophisticated file transfer program
Name: lftp
Version: 3.5.14
-Release: 2.1%{?dist}
+Release: 3%{?dist}
License: GPL
Group: Applications/Internet
Source0: ftp://ftp.yar.ru/lftp/lftp-%{version}.tar.gz
@@ -9,6 +9,8 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel, openssl-devel, pkgconfig, readline-devel, libtool, gettext
+Patch1: lftp-3.5.14-progress_overflow.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
@@ -17,6 +19,7 @@
%prep
%setup -q
+%patch1 -p1 -b .progress_overflow
%build
if pkg-config openssl ; then
@@ -86,6 +89,9 @@
%{_libdir}/liblftp-tasks*
%changelog
+* Tue Dec 13 2007 Martin Nagy <mnagy at redhat.com> - 3.5.14-3
+- Fixed coredumping when downloading (#414051)
+
* Tue Dec 04 2007 Martin Nagy <mnagy at redhat.com> - 3.5.14-2.1
- rebuild
More information about the fedora-extras-commits
mailing list