updated to latest upstream 4.2.1

This commit is contained in:
Jiri Skala 2011-03-30 15:03:14 +02:00
parent a9b25736ed
commit 23dbefcf13
5 changed files with 33 additions and 42 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ lftp-4.0.10.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

View File

@ -1,6 +1,6 @@
diff -up lftp-4.0.9/src/Http.cc.date_fmt lftp-4.0.9/src/Http.cc
--- lftp-4.0.9/src/Http.cc.date_fmt 2009-07-17 14:52:26.000000000 +0200
+++ lftp-4.0.9/src/Http.cc 2010-06-30 08:07:00.818994525 +0200
diff -up lftp-4.2.1/src/Http.cc.date_fmt lftp-4.2.1/src/Http.cc
--- lftp-4.2.1/src/Http.cc.date_fmt 2011-03-25 15:35:42.000000000 +0100
+++ lftp-4.2.1/src/Http.cc 2011-03-30 14:40:54.170096624 +0200
@@ -29,6 +29,7 @@
#include <errno.h>
#include <stdarg.h>
@ -9,22 +9,22 @@ diff -up lftp-4.0.9/src/Http.cc.date_fmt lftp-4.0.9/src/Http.cc
#include <fnmatch.h>
#include <locale.h>
#include <assert.h>
@@ -562,16 +563,10 @@ void Http::SendRequest(const char *conne
@@ -565,15 +566,10 @@ void Http::SendRequest(const char *conne
(long long)((limit==FILE_END || limit>entity_size ? entity_size : limit)-1),
(long long)entity_size);
}
- if(entity_date!=NO_DATE)
+ if(entity_date!=NO_DATE && entity_date>0L && entity_date<INT_MAX)
{
char d[256];
- static const char weekday_names[][4]={
- "Sun","Mon","Tue","Wed","Thu","Fri","Sat"
- };
- struct tm *t=gmtime(&entity_date);
- sprintf(d,"%s, %2d %s %04d %02d:%02d:%02d GMT",
- const struct tm *t=gmtime(&entity_date);
- const char *d=xstring::format("%s, %2d %s %04d %02d:%02d:%02d GMT",
- weekday_names[t->tm_wday],t->tm_mday,month_names[t->tm_mon],
- t->tm_year+1900,t->tm_hour,t->tm_min,t->tm_sec);
+ strftime(d, sizeof(d), "%a, %d %b %H:%M:%S %Y GMT", gmtime(&entity_date));
+ char d[256];
+ strftime(d, sizeof(d), "%a, %d %b %H:%M:%S %Y GMT", gmtime(&entity_date));
Send("Last-Modified: %s\r\n",d);
}
break;

View File

@ -1,6 +1,6 @@
diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
--- lftp-4.2.0/doc/lftp.1.man 2011-03-03 21:09:16.000000000 +0100
+++ lftp-4.2.0/doc/lftp.1 2011-03-15 09:28:04.862009660 +0100
diff -up lftp-4.2.1/doc/lftp.1.man lftp-4.2.1/doc/lftp.1
--- lftp-4.2.1/doc/lftp.1.man 2011-03-25 17:05:43.000000000 +0100
+++ lftp-4.2.1/doc/lftp.1 2011-03-30 15:00:09.031652504 +0200
@@ -1,5 +1,5 @@
.\"
-.\" lftp.1 - Sophisticated ftp program
@ -9,7 +9,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
.\" This file is part of lftp.
.\"
@@ -62,28 +62,28 @@ lftp \- Sophisticated file transfer prog
This man page documents lftp version 4.2.0.
This man page documents lftp version 4.2.1.
.SH "DESCRIPTION"
-\fBlftp\fR is a file transfer program that allows sophisticated ftp, http
@ -21,7 +21,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
-\fBlftp\fP can handle several file access methods - ftp, ftps, http, https,
-hftp, fish, sftp and file (https and ftps are only available when lftp is
+\fBlftp\fP can handle several file access methods - FTP, FTPS, HTTP, HTTPS,
+hftp, fish, SFTP and file (HTTPS and FTPS are only available when lftp is
+HFTP, FISH, SFTP and file (HTTPS and FTPS are only available when lftp is
compiled with GNU TLS or OpenSSL library). You can specify the method to use in `open
URL' command, e.g. `open http://www.us.kernel.org/pub/linux'. hftp is
-ftp-over-http-proxy protocol. It can be used automatically instead of ftp
@ -29,7 +29,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
if ftp:proxy is set to `http://proxy[:port]'. Fish is a protocol working
-over an ssh connection to a unix account. SFtp is a protocol implemented
-in ssh2 as sftp subsystem.
+over an SSH connection to a unix account. SFTP is a protocol implemented
+over an ssh connection to a unix account. SFTP is a protocol implemented
+in SSH2 as SFTP subsystem.
.PP
Besides FTP-like protocols, lftp has support for BitTorrent protocol
@ -262,20 +262,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
troubles with it, so it is on by default.
.TP
.BR ftp:timezone \ (string)
@@ -1284,10 +1284,10 @@ when true (default), lftp uses FEAT comm
ftp server.
.TP
.BR ftp:use-fxp \ (boolean)
-if true, lftp will try to set up direct connection between two ftp servers.
+if true, lftp will try to set up direct connection between two FTP servers.
.TP
.BR ftp:use-hftp \ (boolean)
-when ftp:proxy points to an http proxy, this setting selects hftp method (GET,
+when ftp:proxy points to a HTTP proxy, this setting selects hftp method (GET,
HEAD) when true, and CONNECT method when false. Default is true.
.TP
.BR ftp:lang \ (boolean)
@@ -1335,24 +1335,24 @@ thus does not double 255 (0xFF, 0377) ch
@@ -1339,24 +1339,24 @@ thus does not double 255 (0xFF, 0377) ch
STAT commands with TELNET IP+SYNCH signal.
.TP
.BR ftp:use-quit " (boolean)"
@ -304,7 +291,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
.TP
.BR ftps:initial-prot \ (string)
specifies initial PROT setting for FTPS connections. Should be one of: C, S,
@@ -1367,11 +1367,11 @@ allow server/proxy side caching for ftp-
@@ -1371,11 +1371,11 @@ allow server/proxy side caching for ftp-
specify corresponding HTTP request header.
.TP
.BR hftp:proxy \ (URL)
@ -319,7 +306,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
requires authentication, specify user name and password in the URL.
.TP
.BR hftp:use-authorization \ (boolean)
@@ -1414,23 +1414,23 @@ send this cookie to server. A closure is
@@ -1418,23 +1418,23 @@ send this cookie to server. A closure is
set cookie/www.somehost.com "param=value"
.TP
.BR http:post-content-type " (string)"
@ -348,7 +335,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
to current directory URL. Default is `.'. Set to empty string to disable
Referer header.
.TP
@@ -1439,11 +1439,11 @@ if true, lftp modifies http:cookie varia
@@ -1443,11 +1443,11 @@ if true, lftp modifies http:cookie varia
.TP
.BR http:use-mkcol \ (boolean)
if set to off, lftp will try to use `PUT' instead of `MKCOL' to create
@ -362,7 +349,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
.TP
.BR http:user-agent " (string)"
the string lftp sends in User-Agent header of HTTP request.
@@ -1528,7 +1528,7 @@ contains comma separated list of domains
@@ -1532,7 +1532,7 @@ contains comma separated list of domains
Default is taken from environment variable \fBno_proxy\fP.
.TP
.BR net:persist-retries " (number)"
@ -371,7 +358,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
reply 5xx when there is too many users.
.TP
.BR net:reconnect-interval-base \ (seconds)
@@ -1538,12 +1538,12 @@ operation.
@@ -1542,12 +1542,12 @@ operation.
.TP
.BR net:reconnect-interval-max \ (seconds)
sets maximum reconnect interval. When current interval after multiplication
@ -386,7 +373,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
to base value. See net:reconnect-interval-base and net:reconnect-interval-max.
.TP
.BR net:socket-bind-ipv4 " (ipv4 address)"
@@ -1561,7 +1561,7 @@ default.
@@ -1565,7 +1565,7 @@ default.
.TP
.BR net:socket-maxseg \ (bytes)
use given size for TCP_MAXSEG socket option. Not all operating systems support
@ -395,7 +382,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
.TP
.BR net:timeout " (time interval)"
sets the network protocol timeout.
@@ -1574,9 +1574,9 @@ save pget transfer status this often. Se
@@ -1578,9 +1578,9 @@ save pget transfer status this often. Se
The status is saved to a file with suffix \fI.lftp-pget-status\fP.
.TP
.BR sftp:charset \ (string)
@ -407,7 +394,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
.TP
.BR sftp:connect-program \ (string)
the program to use for connecting to remote server. It should support `\-l' option
@@ -1599,7 +1599,7 @@ Default is `sftp'. You can use rsh as tr
@@ -1603,7 +1603,7 @@ Default is `sftp'. You can use rsh as tr
set sftp:connect-program rsh
set sftp:server-program /usr/libexec/openssh/sftp-server
.De
@ -416,7 +403,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
.TP
.BR sftp:size-read \ (number)
Block size for reading. Default is 0x8000.
@@ -1634,7 +1634,7 @@ if set to yes, then verify server's cert
@@ -1638,7 +1638,7 @@ if set to yes, then verify server's cert
Certificate Authority and not be on Certificate Revocation List.
.TP
.BR torrent:ip " (ipv4 address)"
@ -425,7 +412,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
.TP
.BR torrent:ipv6 " (ipv6 address)"
IPv6 address to send to the tracker. Specify it if the tracker has IPv4 address.
@@ -1727,7 +1727,7 @@ They can also have a prefix: 0 - octal,
@@ -1734,7 +1734,7 @@ They can also have a prefix: 0 - octal,
.SS FTP asynchronous mode (pipelining)
.PP
.B Lftp
@ -434,7 +421,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
then checking all the responses. See ftp:sync-mode variable. Sometimes
this does not work, thus synchronous mode is the default. You can try
to turn synchronous mode off and see if it works for you. It is known
@@ -1737,7 +1737,7 @@ incorrectly in the case of several FTP c
@@ -1744,7 +1744,7 @@ incorrectly in the case of several FTP c
RFC959 says: ``The user-process sending another command before the
completion reply would be in violation of protocol; but server-FTP
processes should queue any commands that arrive while a preceding
@ -443,7 +430,7 @@ diff -up lftp-4.2.0/doc/lftp.1.man lftp-4.2.0/doc/lftp.1
NOT assume any correspondence between READ boundaries on the control
connection and the Telnet EOL sequences (CR LF).'' and ``a single READ
from the control connection may include more than one FTP command''.
@@ -1818,7 +1818,7 @@ command.
@@ -1826,7 +1826,7 @@ command.
The file is used to store last working directories for each site visited.
.TP
.I "~/.netrc"

View File

@ -1,6 +1,6 @@
Summary: A sophisticated file transfer program
Name: lftp
Version: 4.2.0
Version: 4.2.1
Release: 1%{?dist}
License: GPLv3+
Group: Applications/Internet
@ -94,6 +94,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Mar 30 2011 Jiri Skala <jskala@redhat.com> - 4.2.1-1
- updated to latest upstream 4.2.1
* Mon Mar 14 2011 Jiri Skala <jskala@redhat.com> - 4.2.0-1
- updated to latest upstream 4.2.0
- fixes #675126 man page corrections

View File

@ -1 +1 @@
0ba993d4edda8d975a78b7e8f0c687d0 lftp-4.2.0.tar.xz
737912baf3ea576f2ed52eeebb14491b lftp-4.2.1.tar.xz