1 diff --git a/doc/lftp.1 b/doc/lftp.1
2 index 2123b2c..6da6440 100644
5 @@ -1749,8 +1749,8 @@ can try to set net:socket-buffer to relatively small value to avoid this.
6 limit accumulating of unused limit-total-rate. 0 means twice of limit-total-rate.
8 .BR net:max-retries \ (number)
9 -the maximum number of sequential retries of an operation without success.
11 +the maximum number of sequential tries of an operation without success.
12 +0 means unlimited. 1 means no retries.
14 .BR net:no-proxy \ (string)
15 contains comma separated list of domains for which proxy should not be used.
16 diff --git a/po/cs.po b/po/cs.po
17 index 62b572c..9ef370c 100644
21 # Czech translation of lftp.
22 # Copyright (C) 2009 Alexander V. Lukyanov <lav@yars.free.net>
23 # This file is distributed under the same license as the lftp package.
24 -# Petr Pisar <petr.pisar@atlas.cz>, 2009, 2010, 2011, 2012.
25 +# Petr Pisar <petr.pisar@atlas.cz>, 2009, 2010, 2011, 2012, 2013.
27 # handshake → dojednání (spojení)
33 -"Project-Id-Version: lftp 4.4.0\n"
34 +"Project-Id-Version: lftp 4.4.6\n"
35 "Report-Msgid-Bugs-To: lftp-bugs@lftp.yar.ru\n"
36 "POT-Creation-Date: 2013-05-17 14:34+0400\n"
37 -"PO-Revision-Date: 2012-09-30 20:40+0200\n"
38 +"PO-Revision-Date: 2013-05-21 19:42+0200\n"
39 "Last-Translator: Petr Pisar <petr.pisar@atlas.cz>\n"
40 "Language-Team: Czech <translation-team-cs@lists.sourceforge.net>\n"
42 @@ -1050,7 +1050,6 @@ msgid "[re]cls [opts] [path/][pattern]"
43 msgstr "[re]cls [volby] [cesta/][vzor]"
45 #: src/commands.cc:164
48 "List remote files. You can redirect output of this command to file\n"
49 "or via pipe to external command.\n"
50 @@ -1094,6 +1093,7 @@ msgstr ""
51 "nebo přes rouru do vnějšího příkazu.\n"
53 " -1 – jednosloupcový výstup\n"
54 +" -a, --all - zobrazí tečkové soubory\n"
55 " -B, --basename – ukáže jen názvy souborů bez cesty\n"
56 " --block-size=VEL – použije bloky po VEL bajtech\n"
57 " -d, --directory – vypíše záznamy adresářů namísto jejich obsahu\n"
58 @@ -1226,7 +1226,6 @@ msgid "get [OPTS] <rfile> [-o <lfile>]"
59 msgstr "get [VOLBY] <vzdálený_soubor> [-o <místní_soubor>]"
61 #: src/commands.cc:250
64 "Retrieve remote file <rfile> and store it to local file <lfile>.\n"
65 " -o <lfile> specifies local file name (default - basename of rfile)\n"
66 @@ -1239,7 +1238,7 @@ msgstr ""
67 " -o <místní_soubor>\n"
68 " určí název místního souboru (implicitně je odvozen ze "
69 "vzdáleného_souboru)\n"
70 -" -c pokračuje v nedokončeném stahování, reget\n"
71 +" -c pokračuje v nedokončeném stahování, obnoví přenos\n"
72 " -E po úspěšném přenosu vzdálené soubory smaže\n"
73 " -a použije režim ASCII (implicitní je binární)\n"
75 @@ -1276,11 +1275,12 @@ msgid "Print help for command <cmd>, or list of available commands\n"
76 msgstr "Vypíše nápovědu k <příkazu>, nebo vypíše všechny dostupné příkazy\n"
78 #: src/commands.cc:269
81 "List running jobs. -v means verbose, several -v can be specified.\n"
82 "If <job_no> is specified, only list a job with that number.\n"
83 -msgstr "Vypíše seznam běžících úloh. -v znamená podrobně, lze zadat více -v.\n"
85 +"Vypíše seznam běžících úloh. -v znamená podrobně, lze zadat více -v.\n"
86 +"Je-li zadáno <číslo_úlohy>, vypíše pouze úlohu s tímto číslem.\n"
88 #: src/commands.cc:271
89 msgid "kill all|<job_no>"
90 @@ -1361,7 +1361,6 @@ msgid "mget [OPTS] <files>"
91 msgstr "mget [VOLBY] <soubory>"
93 #: src/commands.cc:299
96 "Gets selected files with expanded wildcards\n"
97 " -c continue, resume transfer\n"
98 @@ -1372,7 +1371,7 @@ msgid ""
99 " -O <base> specifies base directory or URL where files should be placed\n"
101 "Získá soubory vybrané expanzí žolíkových znaků\n"
102 -" -c pokračuje v nedokončeném stahování, reget\n"
103 +" -c pokračuje v nedokončeném stahování, obnoví přenos\n"
104 " -d vytvoří adresáře stejné jako jsou v názvech souborů a soubory umístí "
106 " nich namísto do pracovního adresáře\n"
107 diff --git a/po/es.po b/po/es.po
108 index 27be471..8794a44 100644
111 @@ -13,7 +13,7 @@ msgstr ""
112 "Language-Team: Spanish <es@li.org>\n"
114 "MIME-Version: 1.0\n"
115 -"Content-Type: text/plain; charset=ISO-8859-1\n"
116 +"Content-Type: text/plain; charset=UTF-8\n"
117 "Content-Transfer-Encoding: 8-bit\n"
119 #: lib/argmatch.c:133
120 diff --git a/po/it.po b/po/it.po
121 index 69aff39..2ffae57 100644
124 @@ -12,7 +12,7 @@ msgstr ""
125 "Language-Team: Italian <it@li.org>\n"
127 "MIME-Version: 1.0\n"
128 -"Content-Type: text/plain; charset=ISO-8859-1\n"
129 +"Content-Type: text/plain; charset=UTF-8\n"
130 "Content-Transfer-Encoding: 8-bit\n"
132 #: lib/argmatch.c:133
133 diff --git a/po/pt_BR.po b/po/pt_BR.po
134 index 95e8e3d..5d1c02d 100644
137 @@ -11,7 +11,7 @@ msgstr ""
138 "Language-Team: pt_BR <pt@li.org>\n"
140 "MIME-Version: 1.0\n"
141 -"Content-Type: text/plain; charset=ISO-8859-1\n"
142 +"Content-Type: text/plain; charset=UTF-8\n"
143 "Content-Transfer-Encoding: 8-bit\n"
145 #: lib/argmatch.c:133
146 diff --git a/src/ChangeLog b/src/ChangeLog
147 index a381272..e5e7c3f 100644
151 +2013-05-21 Alexander V. Lukyanov <lav@yars.free.net>
153 + * FileCopy.cc: set size=NO_SIZE when the size could not be found.
154 + * FileSet.cc: allow info merging for files with the same basename.
155 + * Fish.cc: fixed file correption and garbage logging by requiring
156 + the file to have a size; improve error handling.
158 +2013-05-20 Alexander V. Lukyanov <lav@yars.free.net>
160 + * Fish.cc: disconnect in more cases on Close.
162 2013-05-13 Alexander V. Lukyanov <lav@yars.free.net>
164 * TorrentTracker.cc, TorrentTracker.h: use xstring for InfoHash and
165 diff --git a/src/FileCopy.cc b/src/FileCopy.cc
166 index 062b140..d0241c4 100644
167 --- a/src/FileCopy.cc
168 +++ b/src/FileCopy.cc
169 @@ -805,8 +805,7 @@ int FileCopyPeerFA::Do()
172 FileInfo *fi=info[0];
173 - if(fi->Has(fi->SIZE))
176 if(fi->Has(fi->DATE))
179 diff --git a/src/FileSet.cc b/src/FileSet.cc
180 index a2f5255..49c9df4 100644
185 void FileInfo::Merge(const FileInfo& f)
187 - if(strcmp(name,f.name))
188 + if(strcmp(basename_ptr(name),basename_ptr(f.name)))
190 // int sim=defined&f.defined;
191 int dif=(~defined)&f.defined;
192 diff --git a/src/Fish.cc b/src/Fish.cc
193 index f467781..99770a4 100644
196 @@ -341,10 +341,13 @@ void Fish::Close()
205 + if(mode==STORE || mode==RETRIEVE)
209 if(!RespQueueIsEmpty())
211 @@ -566,6 +569,10 @@ int Fish::HandleReplies()
215 + if(entity_size!=NO_SIZE && real_pos<entity_size)
217 + if(entity_size==NO_SIZE)
220 recv_buf->Put(pty_recv_buf->Get(),pty_recv_buf->Size()); // join the messages.
221 pty_recv_buf->Skip(pty_recv_buf->Size());
222 @@ -616,8 +623,10 @@ int Fish::HandleReplies()
227 - message.vappend("\n",line.get(),NULL);
229 + message.append('\n');
230 + message.append(line);
235 @@ -677,7 +686,7 @@ int Fish::HandleReplies()
236 else if(message && message[0]!='#')
238 FileInfo *fi=FileInfo::parse_ls_line(message,"GMT");
240 + if(!fi || !strncmp(message,"ls: ",4))
242 SetError(NO_FILE,message);
244 @@ -757,14 +766,14 @@ void Fish::CloseExpectQueue()
248 - case EXPECT_RETR_INFO:
254 RespQueue[i]=EXPECT_IGNORE;
257 + case EXPECT_RETR_INFO:
259 case EXPECT_STOR_PRELIMINARY: