rpms/lftp/F-7 lftp-3.5.14-progress_overflow.patch, NONE, 1.1 lftp.spec, 1.59, 1.60
Martin Nagy (mnagy)
fedora-extras-commits at redhat.com
Thu Dec 13 07:58:45 UTC 2007
Author: mnagy
Update of /cvs/extras/rpms/lftp/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32338
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.10-4
- 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/F-7/lftp.spec,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- lftp.spec 12 Apr 2007 08:01:49 -0000 1.59
+++ lftp.spec 13 Dec 2007 07:58:08 -0000 1.60
@@ -1,7 +1,7 @@
Summary: A sophisticated file transfer program
Name: lftp
Version: 3.5.10
-Release: 3%{?dist}
+Release: 4%{?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
@@ -85,6 +88,9 @@
%{_libdir}/liblftp-tasks*
%changelog
+* Tue Dec 13 2007 Martin Nagy <mnagy at redhat.com> - 3.5.10-4
+- Fixed coredumping when downloading (#414051)
+
* Wed Apr 11 2007 Maros Barabas <mbarabas at redhat.com> - 3.5.10-3
- Correct mistake removing devel package & calling chkconfig
- Resolves #235436
More information about the scm-commits
mailing list