Debian Codegraph @

src/ChangeLog

raw
1 2014-05-06 Alexander V. Lukyanov <[email protected]>
2
3 * DHT.cc: prefer fresh node over non-good and not responded one.
4 * xarray.h: fixed a typo which could cause segfault.
5 * FileAccess.cc, FileAccess.h, src/Fish.cc, src/Fish.h, src/Http.cc,
6 Http.h, NetAccess.cc, SFtp.cc, SFtp.h, SSH_Access.cc, SSH_Access.h,
7 ftpclass.cc, ftpclass.h: add last_disconnect_cause; display it
8 for 5 seconds in the status.
9
10 2014-04-09 Alexander V. Lukyanov <[email protected]>
11
12 * SSH_Access.cc, SSH_Access.h: display last error message from ssh.
13
14 2014-04-07 Alexander V. Lukyanov <[email protected]>
15
16 * misc.cc: add EIO and EPIPE to the list of temp network errors.
17 * FileAccess.cc, FileAccess.h, Http.cc, NetAccess.cc, ftpclass.cc,
18 ftpclass.h: replace try_time with Timer reconnect_timer;
19 use temporary_network_error in FA::NotSerious.
20 * SSH_Access.cc: detect name lookup error from ssh.
21
22 2014-03-26 Alexander V. Lukyanov <[email protected]>
23
24 * Job.cc, Job.h: (FormatShortStatus) new virtual method; don't check
25 Deleted() for jobs in the lists; use xlist_for_each_safe when it's
26 possible to remove scanned node from the list.
27 * MirrorJob.cc, MirrorJob.h: implement FormatShortStatus.
28 * CopyJob.cc: use Speedometer::GetStrProper for final rate reporting.
29
30 2014-03-25 Alexander V. Lukyanov <[email protected]>
31
32 * pgetJob.h: fixed bytes and rate reporting via Get methods.
33 * Job.cc, Job.h: use xlist; add children_jobs list; (NumberOfChildrenJobs) new method.
34 * commands.cc, CmdExec.cc: use NumberOfChildrenJobs to avoid counting "this" Job.
35
36 2014-03-24 Alexander V. Lukyanov <[email protected]>
37
38 * buffer.cc: (MoveDataHere) set eof only when all data are exhausted.
39 * misc.cc, misc.h: (xhuman) new function.
40 * Job.cc, Job.h: (GetTransferRate) new method;
41 (GetBytesCount) count recursively over descendants.
42 * CopyJob.cc, CopyJob.h, FileCopy.h: (GetTransferRate) implement;
43 (GetTimeSpent) don't count overlapped time intervals twice;
44 (GetBytesCount) count recursively for real time monitoring.
45 * MirrorJob.cc, MirrorJob.h: show real-time bytes transferred and
46 rate in the mirror job title.
47 * HttpDir.cc: try to parse as plain html when props format is unrecognized.
48
49 2014-03-18 Sami Farin <[email protected]>
50
51 * FileSet.cc, FtpDirList.cc, Http.cc, PollVec.cc, complete.cc, lftp.cc:
52 fix warnings
53
54 2014-03-18 Alexander V. Lukyanov <[email protected]>
55
56 * FileAccess.h, mkdirJob.h, FindJob.h: don't access the
57 FileAccessRefC ref in dtor, as the original FileAccessRef can be
58 already deleted.
59 * FindJob.cc: don't add slash for plain files in URLs.
60
61 2014-03-17 Alexander V. Lukyanov <[email protected]>
62
63 * resource.cc: add hftp:decode setting.
64 * xarray.cc, xarray.h: use xrealloc instead of realloc; truncate
65 xarray_m in dtor, so that proper dispose method is called.
66 * xmap.cc: use xfree for xmalloc'ed memory.
67
68 2014-03-14 Alexander V. Lukyanov <[email protected]>
69
70 * SSH_Access.cc: add another password prompt format for FreeBSD.
71
72 2014-03-13 Alexander V. Lukyanov <[email protected]>
73
74 * FileAccess.cc, FileAccess.h: get rid of direct delete calls.
75
76 2014-03-11 Alexander V. Lukyanov <[email protected]>
77
78 * Http.cc, resource.cc: (http:accept-encoding, http:decode) new settings.
79
80 2014-03-04 Alexander V. Lukyanov <[email protected]>
81
82 * CmdExec.cc, CmdExec.h, commands.cc: keep track of parent CmdExec;
83 add 'exit parent' subcommand; flush command buffer when exiting.
84 * SFtp.cc: don't send FSETSTAT when file modification time is unknown.
85
86 2014-02-13 Alexander V. Lukyanov <[email protected]>
87
88 * xarray.h, StringSet.h: (xarray_m) new template for malloc'ed
89 pointers; use it in StringSet.
90 * xmap.h: (dispose) new method.
91
92 2014-02-12 Alexander V. Lukyanov <[email protected]>
93
94 * Http.cc: don't call ExpandTildeInCWD every time.
95 * Http.cc: use a perfect hash for header handling.
96 * MirrorJob.cc: clear source/target sets when looping.
97
98 2014-02-11 Alexander V. Lukyanov <[email protected]>
99
100 * MirrorJob.cc, MirrorJob.h: fix transfer rate reporting for parallel
101 mode mirror (--parallel option).
102 * commands.cc: (--env-password) new open option to take password from
103 LFTP_PASSWORD environment variable.
104
105 2014-02-04 Alexander V. Lukyanov <[email protected]>
106
107 * ResMgr.cc, ResMgr.h, resource.cc: move some methods to ResType;
108 make ResMgr a descendant of ResType; make type_value_list a pointer
109 to avoid calling a ctor for each static ResType.
110 * Torrent.cc: use ~/.lftp/torrent/md directory; fix file permissions.
111 * FileAccess.cc, FileAccess.h: use xlist and xmap to speed up FA
112 creation and deleting.
113
114 2014-01-24 Alexander V. Lukyanov <[email protected]>
115
116 * pgetJob.cc: (pget:min-chunk-size) new setting with 1M by default.
117
118 2014-01-23 Alexander V. Lukyanov <[email protected]>
119
120 * FileAccess.cc, commands.cc, history.cc: don't add a slash if it's
121 already there.
122 * xmap.cc: slightly better hash.
123 * xarray.h: (xarray_p::qsort) new method.
124 * StringSet.h: (StringSet::qsort) new method.
125 * ResMgr.cc, ResMgr.h, Http.cc, resource.cc: use xlist and xmap to
126 manage settings (for better performance).
127 * Torrent.cc, Torrent.h: save metadata and load if needed;
128 (torrent:save-metadata) new setting.
129
130 2014-01-17 Alexander V. Lukyanov <[email protected]>
131
132 * Http.cc: allow UTC along with GMT in http timestamps.
133 * Http.cc: fixed Content-Length handling after PROPFIND.
134
135 2014-01-16 Alexander V. Lukyanov <[email protected]>
136
137 * DHT.cc: prefer responded nodes in search over not responded ones.
138 * Torrent.cc, Torrent.h: add shutting_down_timer to fix a hang on
139 unresponsive trackers.
140 * TorrentTracker.h: use 30 if interval<30.
141
142 2014-01-16 Alexander V. Lukyanov <[email protected]>
143
144 * Http.cc: fixed error handling for new _Read semantics.
145
146 2014-01-15 Alexander V. Lukyanov <[email protected]>
147
148 * Http.cc: fixed rmdir for WebDAV by adding trailing slash to the path.
149
150 2014-01-10 Alexander V. Lukyanov <[email protected]>
151
152 * Torrent.cc, Torrent.h: use SMTaskRef for FDCache.
153
154 2013-12-13 Alexander V. Lukyanov <[email protected]>
155
156 * RateLimit.cc, RateLimit.h, ftpclass.cc: use RateLimit settings
157 to set maximum buffer size.
158 * xstring.cc, xstring.h: (swap, set_length_no_z) new methods.
159 * buffer.cc, buffer.h: (MoveDataHere) new method, optimize data
160 copying by swapping buffers.
161 * FileCopy.cc: tune read delaying; add comments.
162 * DummyProto.cc, DummyProto.h, FileAccess.h, FileCopy.cc, Fish.cc,
163 Fish.h, Http.cc, Http.h, LocalAccess.cc, LocalAccess.h, SFtp.cc,
164 SFtp.h, example1.cc, example2.cc, ftpclass.cc, ftpclass.h:
165 change FA::Read to use Buffer and MoveDataHere.
166 * PollVec.cc, PollVec.h: (FDSetNotReady) new method.
167
168 2013-12-12 Alexander V. Lukyanov <[email protected]>
169
170 * TimeDate.h: include sys/time.h to get struct timeval.
171 * buffer.cc: don't shrink read buffer size.
172 * ftpclass.cc, ftpclass.h: use xfer:buffer-size for max_buf size;
173
174 2013-12-11 Alexander V. Lukyanov <[email protected]>
175
176 * xstring.cc, xstring.h: shrink buffer explicitly.
177 * PollVec.cc, PollVec.h: use select; (FDReady) new method.
178 * TimeDate.cc, TimeDate.h: change to microsecond resolution.
179 * Timer.cc, Timer.h: (GetTimeoutTV) new method.
180 * SMTask.cc, SMTask.h: use Timer::GetTimeoutTV; add resumed task to
181 the tail of new_tasks list.
182 * buffer.cc, buffer.h: change buffer size tuning; remove last_got member;
183 don't call down->Do in BufferStacked; use last select result
184 to save a read() system call.
185 * ftpclass.h: don't suspend control_recv so that control_sock gets
186 polled when delaying data read ops.
187 * CharReader.cc: check last select result before reading.
188 * FileCopy.cc: use microseconds for delaying reads; don't reset delay
189 on data unavailability; don't increase delay when read returned
190 enough data.
191
192 2013-12-09 Alexander V. Lukyanov <[email protected]>
193
194 * FileCopy.cc, FileCopy.h: add a delay when Read returns too small
195 portions of data, it should decrease the number of syscalls.
196 * Bencode.cc: fixed a mem leak (thanks to David Binderman).
197 * FileCopyFtp.cc, FileCopy.cc: minor style changes.
198 * ResMgr.cc, HttpDir.cc: remove unused old code.
199 * log.cc: check Log::global for NULL, avoid SEGV on exit.
200
201 2013-12-06 Alexander V. Lukyanov <[email protected]>
202
203 * xheap.h: min-heap implementation with random remove.
204 * Timer.cc, Timer.h, Makefile.am: use xheap and xlist for Timer.
205
206 2013-12-05 Alexander V. Lukyanov <[email protected]>
207
208 * Http.cc, Http.h: fixed ARRAY_INFO for the case of PROPFIND;
209 use symbolic error codes.
210
211 2013-12-04 Alexander V. Lukyanov <[email protected]>
212
213 * Torrent.cc: use Delete method for peers.
214 * MirrorJob.cc, MirrorJob.h: use SMTaskRef for ListInfo.
215 * Speedometer.cc, Speedometer.h: don't inherit SMTask.
216 * FileCopy.cc, FileCopy.h: don't use SMTaskRef for Speedometer.
217 * SMTask.h: don't inherit SMTaskRef from Ref, make SMTask dtor
218 protected.
219 * buffer.h: use plain Ref for Speedometer; make IOBuffer dtor protected.
220 * FileAccess.h, ProcWait.h: make SMTask heirs dtors protected.
221
222 2013-12-03 Alexander V. Lukyanov <[email protected]>
223
224 * buffer.cc, buffer.h: (TuneGetSize) new method.
225 * ProtoLog.cc: check Log::global for NULL.
226 * FileCopy.cc, FileCopy.h: use TuneGetSize, fixed `verify' type.
227 * FindJobDu.h, Fish.h, Http.h, HttpDir.h, PtyShell.h, SFtp.h:
228 use SMTaskRef for tasks.
229 * SMTask.cc, SMTask.h: use new xlist; add `deleted' list; add `new' list.
230
231 2013-12-02 Alexander V. Lukyanov <[email protected]>
232
233 * SMTask.cc: (CollectGarbage) fixed deleting list manipulation.
234
235 2013-11-29 Alexander V. Lukyanov <[email protected]>
236
237 * GetPass.cc, complete.cc: don't call SMTask dtor directly.
238 * SMTask.cc, SMTask.h: add deleting list; use static array for stack.
239 * xarray.cc, xarray.h: optimize space allocation by inlining some code.
240 * SMTask.cc: don't spin on collected garbage.
241 * DirColors.h: no need to inherit SMTask, use ResClient.
242 * SMTask.h: make deleting, running and ref_count private;
243 (Deleted) new method.
244 * IdNameCache.cc, Job.cc, ProcWait.cc, Resolver.cc, Torrent.cc:
245 use public methods of SMTask, don't use `deleting' member directly.
246
247
248 2013-11-27 Alexander V. Lukyanov <[email protected]>
249
250 * Http.cc: fixed ARRAY_INFO in keep-alive http connection.
251
252 2013-11-26 Alexander V. Lukyanov <[email protected]>
253
254 * CopyJob.cc: show file name in error messages, if not there already.
255 * FileCopy.cc: don't check file size when the file is already complete;
256 handle the case of defined limit without file size.
257 * FileCopy.cc: use max of get/put positions in size checking, since
258 put_eof_pos is uninitialized yet.
259
260 2013-11-25 Alexander V. Lukyanov <[email protected]>
261
262 * Http.cc: add debug message on chunk sizes; handle 400/501 codes
263 to turn off PROPFIND in ARRAY_INFO mode.
264 * FileCopy.cc: clean up GetArrayInfo call condition, don't call it
265 if not needed.
266 * OutputJob.cc: free input and output in PrepareToDie.
267 * FileCopy.cc, FileCopy.h: add check for file size at EOF.
268
269 2013-11-15 Alexander V. Lukyanov <[email protected]>
270
271 * FileCopy.cc: fixed spinning when GetArrayInfo gives an error.
272 * commands.cc, FindJob.cc, FindJob.h, FileSet.h: add find -l (--ls)
273 option to show long listing.
274
275 2013-11-11 Alexander V. Lukyanov <[email protected]>
276
277 * Torrent.cc: don't show verbose 100% peer completeness.
278
279 2013-11-08 Alexander V. Lukyanov <[email protected]>
280
281 * SFtp.cc: check reply type before casting, fixes a coredump.
282 * Torrent.cc: improve status of complete torrents by showing ratio.
283
284 2013-11-07 Alexander V. Lukyanov <[email protected]>
285
286 * Http.cc: fixed a hang in ARRAY_INFO mode.
287
288 2013-10-10 Alexander V. Lukyanov <[email protected]>
289
290 * Torrent.cc: use human_readable for up/dn counters.
291
292 2013-10-08 Alexander V. Lukyanov <[email protected]>
293
294 * ftpclass.cc, resource.cc: (ftp:use-utf8) new setting.
295 * buffer.cc: don't start translation if source and target encodings
296 are the same.
297
298 2013-10-04 Alexander V. Lukyanov <[email protected]>
299
300 * NetAccess.cc: fixed occasional hang in GenericParseListInfo,
301 when result!=NULL && old_mode!=mode.
302
303 2013-09-16 Alexander V. Lukyanov <[email protected]>
304
305 * buffer.cc: compile in SetTranslator unconditionslly (for Ftp).
306 * Http.cc, Http.h: use PROPFIND for ARRAY_INFO if supported.
307 * Torrent.cc, Torrent.h, DHT.cc: count dht announces, show the counters
308 in the status; don't count a peer complete until the metadata are
309 known; show next dht announce time.
310 * PtyShell.cc: kill the shell in dtor.
311
312 2013-08-30 Alexander V. Lukyanov <[email protected]>
313
314 * Http.cc: handle atotm parse error.
315 * TimeDate.cc, TimeDate.h: fixed localtime cacheing.
316 * commands.cc: (cd) automatically add slash if needed.
317 * LsCache.cc, LsCache.h, NetAccess.cc: (UpdateFileSet) new method; use it.
318 * PatternSet.cc, PatternSet.h: (AddFirst, GetFirstType) new methods.
319 * MirrorJob.cc, MirrorJob.h: add --file/-f and --target-directory/-O options.
320 * buffer.h: allow IOBufferFileAccess creation with plain pointer.
321 * Http.cc, Http.h: don't log empty commands;
322 handle PROPFIND result of CHANGE_DIR op; add "quote PROPFIND" support
323 (mostly for debugging); don't send Content-Type for PROPFIND requests
324 if there is no request body; don't request file info if not needed in
325 ARRAY_INFO mode.
326 * HttpDir.cc: automatically detect xml file listing.
327 * HttpDirXML.cc: handle atotm errors.
328
329 2013-08-16 Alexander V. Lukyanov <[email protected]>
330
331 * Speedometer.cc, Speedometer.h: (GetStrProper) new method for proper unit names.
332 * FileCopy.cc: use Speedometer::GetStrProper for logging.
333 * FileCopy.cc, LocalDir.cc: use FD_CLOEXEC on descriptors.
334 * FtpListInfo.cc: fixed MLSD parsing for semicolons in file names.
335 * FileSet.cc: allow NULL sets in certain places.
336 * MirrorJob.cc, MirrorJob.h: don't create empty directories with
337 --no-empty-dirs when all source files are filtered out.
338
339 2013-08-13 Alexander V. Lukyanov <[email protected]>
340
341 * ftpclass.cc, resource.cc: add woraround for wrong multiline
342 replies and ftp:strict-multiline setting.
343 * SFtp.cc: add a workaround for RouterOS v6 - symlink as the root dir.
344
345 2013-08-05 Alexander V. Lukyanov <[email protected]>
346
347 * Torrent.cc: don't decode %xx for plain file names of meta-info.
348
349 2013-07-30 Alexander V. Lukyanov <[email protected]>
350
351 * SFtp.cc, SFtp.h: request more information about symlink targets.
352
353 2013-07-29 Alexander V. Lukyanov <[email protected]>
354
355 * SFtp.cc: follow symlinks when requested.
356
357 2013-07-23 Alexander V. Lukyanov <[email protected]>
358
359 * MirrorJob.cc, MirrorJob.h: add progress meter for parent mirrors.
360 * Job.cc, Job.h: (GetCmdLine) new virtual method.
361 * FileSet.cc, FileSet.h: (CountBytes) new method.
362 * ftpclass.cc: move line and all_lines along with connection.
363
364 2013-07-15 Alexander V. Lukyanov <[email protected]>
365
366 * attach.h: pass all three std fds.
367 * lftp.cc: simplify attach/detach logic; get rid of goto;
368 handle Detached condition.
369
370 2013-07-04 Alexander V. Lukyanov <[email protected]>
371
372 * network.cc: don't use IPV6_V6ONLY if not defined.
373 (from [email protected]).
374 * FileSet.cc: (FileInfo::Merge) copy size properly.
375
376 2013-07-04 Alexander V. Lukyanov <[email protected]>
377
378 * FileSet.cc: recognize and ignore human readable sizes.
379
380 2013-05-30 Alexander V. Lukyanov <[email protected]>
381
382 * lftp_tinfo.cc: fixed segfault when there is no TERM env var.
383 * buffer_zlib.cc: fixed compilation with older zlib.
384
385 2013-05-28 Alexander V. Lukyanov <[email protected]>
386
387 * buffer_zlib.cc, buffer_zlib.h: implement inflator.
388 * Http.cc, Http.h: add support for gzip Content-Encoding.
389 * Makefile.am: buffer_zlib for proto-http.
390 * buffer.cc, buffer.h: (SetTranslator) translate unread data.
391 * buffer.h: (IsFull) new method.
392 * FileCopy.cc, FileCopy.h: (FileCopyPeerMemory) new peer type;
393 use IOBuffer::SetMaxBuffered and IsFull.
394 * Torrent.cc, Torrent.h: use FileCopy for metainfo fetching.
395
396 2013-05-27 Alexander V. Lukyanov <[email protected]>
397
398 * SFtp.cc: (SFtpListInfo::Do) fixed return value (prevents an endless loop).
399 * FileCopy.cc: init date member; clean up date/size requesting in FileCopyPeerFA.
400
401 2013-05-21 Alexander V. Lukyanov <[email protected]>
402
403 * FileCopy.cc: set size=NO_SIZE when the size could not be found.
404 * FileSet.cc: allow info merging for files with the same basename.
405 * Fish.cc: fixed file correption and garbage logging by requiring
406 the file to have a size; improve error handling.
407
408 2013-05-20 Alexander V. Lukyanov <[email protected]>
409
410 * Fish.cc: disconnect in more cases on Close.
411
412 2013-05-13 Alexander V. Lukyanov <[email protected]>
413
414 * TorrentTracker.cc, TorrentTracker.h: use xstring for InfoHash and
415 PeerId.
416
417 2013-05-07 Alexander V. Lukyanov <[email protected]>
418
419 * Torrent.cc: fixed NULL dereference when use-dht is off.
420
421 2013-04-18 Alexander V. Lukyanov <[email protected]>
422
423 * Http.cc, Http.h: improve DirFile; add slash for directories in ARRAY_INFO.
424 * FileAccess.cc, FileAccess.h, FileCopy.cc, FileCopy.h, FileSet.cc,
425 FileSet.h, Fish.cc, GetFileInfo.cc, GetFileInfo.h, Http.cc,
426 LocalAccess.cc, NetAccess.cc, NetAccess.h, SFtp.cc, SFtp.h,
427 ftpclass.cc: use FileSet for ARRAY_INFO; add READLINK support in sftp.
428
429 2013-04-12 Alexander V. Lukyanov <[email protected]>
430
431 * DHT.cc, DHT.h, Torrent.cc, Torrent.h: (DenounceDHT) new method; use it.
432 * complete.cc, FileGlob.cc, SFtp.cc: show .. and . in glob results.
433 * FileSetOutput.cc: add -a option for completion results display to show
434 dot files.
435
436 2013-03-13 Alexander V. Lukyanov <[email protected]>
437
438 * commands.cc: change reget to "resume transfer".
439
440 2013-03-11 Alexander V. Lukyanov <[email protected]>
441
442 * commands.cc: list all jobs from the top.
443 * Job.cc: don't add empty line for no-session jobs.
444 * IdNameCache.cc: fixed lookup by name.
445
446 2013-02-27 Alexander V. Lukyanov <[email protected]>
447
448 * lftp_ssl.cc, resource.cc: add SNI support.
449 * commands.cc, NetAccess.cc: add cls -a option; don't filter out
450 . and .. by default.
451 * TorrentTracker.cc: Enter/Leave parent for proper debug context.
452 * Torrent.cc: use Enter/Leave for proper debug context.
453 * Torrent.cc: better status when shutting down.
454 * TorrentTracker.{cc,h}: add UDP tracker IPv6 support as action 4;
455 fixed error handling; fixed loop range.
456
457 2013-02-26 Alexander V. Lukyanov <[email protected]>
458
459 * Torrent.cc, Torrent.h: add numeric key for udp tracker.
460 * buffer.cc, buffer.h: (Append(xstring)) new method.
461 * TorrentTracker.cc, TorrentTracker.h: add udp tracker support.
462
463 2013-02-25 Alexander V. Lukyanov <[email protected]>
464
465 * Torrent.cc, Torrent.h, TorrentTracker.cc, TorrentTracker.h:
466 split off TorrentTracker; add TrackerBackend class; prepare
467 for udp tracker implementation.
468 * ResMgr.cc: include stdlib.h for strtoll.
469 * DHT.cc, DHT.h: add requests_in_flight node counter; clean up
470 nodes more aggresively; make just loaded nodes non-good.
471
472 2013-02-20 Alexander V. Lukyanov <[email protected]>
473
474 * commands.cc: add "jobs" command arguments description.
475
476 2013-02-15 Alexander V. Lukyanov <[email protected]>
477
478 * CmdExec.cc, CmdExec.h: (cmd:show-status) new setting.
479
480 2013-02-07 Alexander V. Lukyanov <[email protected]>
481
482 * FileCopy.cc, FileSetOutput.cc, Fish.cc, FtpDirList.cc, Http.cc, HttpDir.cc,
483 OutputJob.cc, SFtp.cc, SMTask.cc, SMTask.h, buffer.cc, ftpclass.cc:
484 add ready task list to optimize Schedule when there are too many suspended
485 tasks.
486
487 2013-01-31 Alexander V. Lukyanov <[email protected]>
488
489 * xstring.cc, xstring.h: add flags in url_decode.
490 * Torrent.cc: pass URL_DECODE_PLUS flag to decode '+' into space.
491 * Makefile.am: add uninstall-hook to remove modules and some empty directories.
492
493 2013-01-29 Alexander V. Lukyanov <[email protected]>
494
495 * xstring.cc: (_url_decode) fixed decoding plus sign.
496 * Timer.cc, Timer.h: (StopDelayed) new method.
497 * Torrent.cc: don't call AnnounceDHT in StartTrackers, do it
498 only by timer; stop dht_announce_timer at the start; use Roll
499 method to set log context; decode magnet URL values properly.
500 * DHT.cc: refresh routes after loading the node cache; load the
501 cache quickly using Roll; add some debug log messages.
502
503 2013-01-25 Alexander V. Lukyanov <[email protected]>
504
505 * lftp.cc: don't run at-exit-fg when backgrounded.
506 * xstring.cc: (append(const char*,size_t)) fixed a bug;
507 (_url_decode) decode plus to space.
508
509 2013-01-24 Alexander V. Lukyanov <[email protected]>
510
511 * FileCopy.cc, Torrent.cc, attach.h, bookmark.cc, history.cc,
512 lftp.cc, lftp_rl.c, misc.cc, misc.h:
513 (get_lftp_{config,data,cache}_dir) new functions; use them.
514 * xdg-move: new script.
515 * CmdExec.cc, CmdExec.h, lftp.cc: (cmd:at-exit-fg) new setting.
516
517 2012-12-14 Alexander V. Lukyanov <[email protected]>
518
519 * CmdExec.cc, CmdExec.h, commands.cc, lftp.cc: make cmd:interactive tri-bool.
520
521 2012-12-13 Alexander V. Lukyanov <[email protected]>
522
523 * CmdExec.cc: don't show status line unless interactive.
524
525 2012-12-04 Alexander V. Lukyanov <[email protected]>
526
527 * ftpclass.cc: remove obsolete assert.
528
529 2012-12-03 Alexander V. Lukyanov <[email protected]>
530
531 * Torrent.cc: fixed coredump after trying to start a duplicate torrent.
532
533 2012-11-14 Alexander V. Lukyanov <[email protected]>
534
535 * Job.cc: fixed status message.
536 * buffer.cc, buffer.h: limit maximum buffer size.
537 * ftpclass.cc: use buffer size limit; don't Resume on several methods;
538 fixed CWD for certain paths; fixed try count resetting on uploading.
539
540 2012-09-27 Alexander V. Lukyanov <[email protected]>
541
542 * Torrent.cc: add support for base32 btih in magnet.
543
544 2012-09-26 Alexander V. Lukyanov <[email protected]>
545
546 * CmdExec.cc: call AtFinish after parsing an empty command.
547
548 2012-09-26 Christoph Junghans <[email protected]>
549
550 * module.cc: use ".bundle" for Darwin.
551
552 2012-09-26 Alexander V. Lukyanov <[email protected]>
553
554 * xstring.cc, xstring.h: (ends_with) new method.
555
556 2012-09-24 Robert Story <[email protected]>
557
558 * Resolver.cc: fix a typo in error message and add a warning for
559 untrusted domains if dns:strict-dnssec is not set.
560
561 2012-08-30 Alexander V. Lukyanov <[email protected]>
562
563 * lftp_tinfo.cc: fixed termcap coredump.
564
565 2012-08-27 Alexander V. Lukyanov <[email protected]>
566
567 * DHT.cc, DHT.h: add rate limit; improve FindNodes by checking
568 PrefixMatch on every next route bucket.
569 * Torrent.cc, Torrent.h: add name.utf-8 and path.utf-8 support.
570 * DHT.cc, DHT.h: remove name (unknown encoding); better printing
571 of route prefix; (DHT::KnownTorrent::AddPeer) new method.
572
573 2012-08-24 Alexander V. Lukyanov <[email protected]>
574
575 * network.cc: fixed port byte order in compact.
576 * Torrent.cc, Torrent.h: split DHT off; save DHT to separate directory;
577 check peer duplication and black-listing after setting port.
578 * DHT.cc, DHT.h: new files; send pings only when there is new node
579 candidate and bucket is full; limit ping rate; change disk-cache
580 format, save node_id too; handle changing node_id of remote nodes.
581 * network.cc, network.h: (sockaddr_compact) new class.
582 * StatusLine.cc: call termcap functions from StatusLine ctor, not _init.
583
584 2012-08-22 Alexander V. Lukyanov <[email protected]>
585
586 * network.cc: fixed set_compact for ipv6.
587 * Torrent.cc, Torrent.h: limit udp send rate; check POLLOUT before
588 sending a udp packet; tune dht timers; improve logging;
589 save node id in sent requests; try to send find request to all nodes
590 if no good nodes found; fixed route bucket splitting.
591 * ResMgr.cc, ResMgr.h: (NumberPair) new type; support number power
592 suffix in ranges and pairs.
593
594 2012-08-20 Alexander V. Lukyanov <[email protected]>
595
596 * network.cc, network.h; make set_compact return bool.
597 * Bencode.h: add lookup* methods.
598 * Torrent.cc, Torrent.h: init ping_lost_count properly; make ValidNodeId
599 call MakeNodeId, move masks info MakeNodeId; fixed route table refreshing;
600 check address type before using; use new lookup methods.
601
602 2012-08-16 Alexander V. Lukyanov <[email protected]>
603
604 * Torrent.cc: fixed ut_metadata total_size.
605 * xmap.cc, xmap.h: (each_finished, exists) new methods.
606 * network.cc, network.h: (set_compact(const char*,size_t)) new method.
607 * Torrent.cc, Torrent.h: added ut_pex extension; remember if the torrent
608 is private; remember is a peer is upload_only; (Seed) new method;
609 set tracker error only if last URL failed; disallow huge packets.
610 * network.cc, network.h: (is_compatible) new method.
611
612 2012-08-16 Alexander V. Lukyanov <[email protected]>
613
614 * network.cc: fixed typo.
615 * xstring.cc, xstring.h: (begins_with, instr, hexdump_to) new methods;
616 improved dump() for invalid utf8 strings.
617 * xarray.h: (xqueue_p) new class.
618 * Torrent.cc, Torrent.h: added timeout for tracker requests;
619 added support for tracker groups; new option --dht-bootstrap
620 for manual bootstrapping.
621 * ftp-opie.c: use newer version from wget (fixes a bug on 64-bit hw).
622 * xstring.cc, xstring.h: (hex_decode) new method.
623 * Torrent.cc, Torrent.h: use hex_decode; allow pure hash instead of
624 magnet links; make tracker Fail if no valid URLs found.
625
626 2012-08-15 Alexander V. Lukyanov <[email protected]>
627
628 * Bencode.cc, Bencode.h: new ctor; Pack to xstring.
629 * Filter.cc, Filter.h: (set_create_mode, set_lock) new methods,
630 do file locking if requested.
631 * misc.cc, misc.h, attach.h: (get_nodename) new function.
632 * xstring.cc, xstring.h: add explicit clone ctor; (move_here) new
633 method.
634 * xmap.cc, xmap.h: (empty) new method; xmap_p now uses delete.
635 * xarray.h: xarray_p now uses delete.
636 * network.cc, network.h: (family, set_port, compact, compact_addr,
637 set_compact) new methods.
638 * Torrent.cc, Torrent.h: add DHT and magnet support.
639
640 2012-08-08 Alexander V. Lukyanov <[email protected]>
641
642 * Torrent.cc, Torrent.h: add mt_metadata extension.
643
644 2012-08-07 Alexander V. Lukyanov <[email protected]>
645
646 * Bencode.cc, Bencode.h: new ctor BeNode(const char *);
647 (ComputeLength, Pack, Format1) new methods.
648 * buffer.h: add Put(char) method.
649 * xmap.h: add add(const char*) method.
650 * Torrent.cc, Torrent.h: add LTEP and FAST Extensions.
651
652 2012-07-26 Alexander V. Lukyanov <[email protected]>
653
654 * ftpclass.cc: send PROT after AUTH in any case, for servers
655 requiring a PROT command.
656
657 2012-07-25 Alexander V. Lukyanov <[email protected]>
658
659 * ftpclass.cc: don't try to upload if ALLO fails.
660
661 2012-07-19 Alexander V. Lukyanov <[email protected]>
662
663 * lftp_ssl.cc: fixed fatal error checking for gnutls.
664 * IdNameCache.cc, IdNameCache.h: allow numeric names.
665
666 2012-07-03 Alexander V. Lukyanov <[email protected]>
667
668 * lftp_ssl.cc: tread decryption error as non-fatal.
669 * ftpclass.cc: define TELNET_* ad char constants, get rid of type casts.
670 * FileSet.cc: fixed buffer size (string was truncated).
671 * Http.cc, resource.cc: add use-allprop settings.
672 * HttpDirXML.cc: fixed PROPFIND result parsing.
673
674 2012-05-30 Alexander V. Lukyanov <[email protected]>
675
676 * CmdExec.cc: don't Feed at-finish commands if the command buffer is
677 not empty.
678 * FileFeeder.cc, FileFeeder.h: read by 4K.
679 * commands.cc: set need_exact_time=true when the time is needed at all,
680 this removes complex and incomplete guess logic.
681
682 2012-04-23 Solar Designer <[email protected]>
683
684 * Torrent.cc: fix for large PIDs.
685
686 2012-04-20 Alexander V. Lukyanov <[email protected]>
687
688 * lftp_ssl.cc: don't check hostname in openssl case with ssl:check-hostname off;
689 show a warning when hostname checking is disabled.
690
691 2012-03-26 Alexander V. Lukyanov <[email protected]>
692
693 * Fish.cc, Job.h, SleepJob.cc, mgetJob.cc: Fix errors reported
694 by -Werror=format-security (Simon Ruderich <[email protected]>)
695
696 2012-03-16 Alexander V. Lukyanov <[email protected]>
697
698 * ftpclass.cc, ftpclass.h: check USER reply against retry-530 RExp;
699 (Retry530) new method.
700 * complete.cc: add "edit" command to the list of remote commands.
701
702 2012-03-13 Alexander V. Lukyanov <[email protected]>
703
704 * Http.cc, Http.h: add support for status "429 Too Many Requests"
705 and Retry-After header; don't handle redirect for CONNECT method.
706 * ftpclass.cc: better handle extra server messages in sync mode.
707
708 2012-02-14 Alexander V. Lukyanov <[email protected]>
709
710 * Http.cc: fixed error reporting.
711 * Torrent.cc: add explicit retracker support.
712
713 2012-01-24 Alexander V. Lukyanov <[email protected]>
714
715 * Http.cc: resume connection when moving it.
716 * ftpclass.cc, ftpclass.h: add Suspend/Resume.
717
718 2012-01-23 Alexander V. Lukyanov <[email protected]>
719
720 * Http.cc, Http.h: add Connection subclass.
721 * FileCopy.cc: fixed ascii mode size getting for local files.
722
723 2012-01-20 Alexander V. Lukyanov <[email protected]>
724
725 * CmdExec.cc: fixed core dump on "local" command without
726 arguments.
727
728 2012-01-17 Alexander V. Lukyanov <[email protected]>
729
730 * Http.cc: fixed compilation without ssl.
731
732 2011-12-28 Alexander V. Lukyanov <[email protected]>
733
734 * ftpclass.cc, ftpclass.h: fixed the case when home is unknown;
735 accept new cwd when real_cwd equals the new cwd.
736
737 2011-12-14 Alexander V. Lukyanov <[email protected]>
738
739 * QueueFeeder.cc, QueueFeeder.h: (JobCount) new method.
740 * CmdExec.cc, CmdExec.h, lftp.cc: new settings cmd:at-exit-bg,
741 cmd:at-finish, cmd:at-queue-finish.
742 * MirrorJob.h, mkdirJob.h: use 0,1 exit codes.
743 * Torrent.cc: fixed status command line.
744
745 2011-12-13 Alexander V. Lukyanov <[email protected]>
746
747 * commands.cc: fixed exit code of queue command.
748
749 2011-12-09 Alexander V. Lukyanov <[email protected]>
750
751 * MirrorJob.cc: follow local symlinks with -L option.
752
753 2011-12-06 Alexander V. Lukyanov <[email protected]>
754
755 * Torrent.cc: open files with CLOEXEC flag.
756 * misc.cc, misc.h, Fish.cc, LocalAccess.cc: (shell_encode) return xstring ref.
757
758 2011-11-18 Alexander V. Lukyanov <[email protected]>
759
760 * TimeDate.cc: fixed IsoDateTime (added seconds).
761 * lftp_rl.c: save timestamps in history; show them.
762
763 2011-11-16 Alexander V. Lukyanov <[email protected]>
764
765 * FileAccess.cc: fixed "URL mismatch" message for root directory.
766
767 2011-11-09 Alexander V. Lukyanov <[email protected]>
768
769 * Http.cc: fixed NULL-crash on ssl.
770 * lftp.cc: (attach) check process existence; remove stale sockets.
771
772 2011-10-06 Alexander V. Lukyanov <[email protected]>
773
774 * MirrorJob.cc: save the buffer of target_dir using alloca.
775 * ResMgr.cc, ResMgr.h: (ResValue::to_tri_bool, *::QueryTriBool)
776 new methods; use const for const methods; remove ifdef0'ed code.
777 * FileSetOutput.cc, commands.cc: use QueryTriBool.
778 * ftpclass.cc, resource.cc: new setting ftp:use-tvfs.
779
780 2011-09-22 Alexander V. Lukyanov <[email protected]>
781
782 * ftpclass.cc, FileAccess.cc, commands.cc:
783 use ParsedURL for URL path verification; compare path to home
784 dir ~ properly; send first path component together with root
785 directory to ftp server; use reconnect if cannot change back to
786 home dir.
787
788 2011-09-16 Alexander V. Lukyanov <[email protected]>
789
790 * ResMgr.cc: (ResMgr::Resource::ClosureMatch) try to match basename,
791 it helps matching torrent metadata urls to *.torrent pattern.
792
793 2011-09-15 Alexander V. Lukyanov <[email protected]>
794
795 * Torrent.cc: don't try to send stop to a failed tracker.
796
797 2011-08-01 Alexander V. Lukyanov <[email protected]>
798
799 * Fish.cc: check for '###' before parsing ls line.
800 * Torrent.cc: use a separate check for posix_fadvise.
801 * attach.h: don't use "sun" name; define SUN_LEN macro if missing
802 (patch from [email protected]).
803 * lftp_ssl.cc: use gnutls_priority_set_direct instead of deprecated
804 gnutls_protocol_set_priority.
805
806 2011-06-24 Alexander V. Lukyanov <[email protected]>
807
808 * SleepJob.cc: print error when date-time spec is missed; remove
809 a hack with Combine.
810
811 2011-06-21 Alexander V. Lukyanov <[email protected]>
812
813 * Torrent.cc: check ifa_addr!=0.
814
815 2011-06-17 Alexander V. Lukyanov <[email protected]>
816
817 * lftp.cc: attach without arguments; don't use long for pid.
818 * attach.h: use unsigned for pid; better error handling.
819
820 2011-06-16 Alexander V. Lukyanov <[email protected]>
821
822 * attach.cc, attach.h: new files.
823 * lftp.cc: (attach) new command, pass tty fd to a backgrounded lftp.
824 * NetAccess.cc: init reconnect_interval_current properly.
825 * complete.cc: re-set SIGINT handler.
826 * ftpclass.cc: don't send FEAT after QUIT.
827
828 2011-06-10 Alexander V. Lukyanov <[email protected]>
829
830 * CmdExec.cc, CmdExec.h: when cmd:fail-exit is true, save the non-zero
831 exit code for the case of cmd:parallel>1 (patch by Fernando Gutierrez).
832
833 2011-06-08 Alexander V. Lukyanov <[email protected]>
834
835 * CmdExec.h: use ResClient to hook Reconfig (reported by Fernando
836 Gutierrez <[email protected]>).
837 * CmdExec.cc: parse buffered command even without a feeder, when
838 cmd:parallel>1 (patch by Fernando Gutierrez).
839 * CmdExec.cc: set exit_code to 0 when a job has been created
840 (patch by Fernando Gutierrez).
841
842 2011-05-10 Alexander V. Lukyanov <[email protected]>
843
844 * xstring.cc, xstring.h: (tmp_buf) new method.
845 * CmdExec.cc, network.cc, ResMgr.cc: get rid of static buffers.
846 * Torrent.cc, Torrent.h: auto set torrent:ipv6; better status.
847
848 2011-04-29 Alexander V. Lukyanov <[email protected]>
849
850 * CmdExec.cc, CmdExec.h, CopyJob.cc, CopyJob.h, DirColors.cc,
851 FileSet.cc, FileSetOutput.cc, FileSetOutput.h, FindJob.cc,
852 FindJob.h, Http.cc, Job.cc, Job.h, MirrorJob.cc, MirrorJob.h,
853 QueueFeeder.cc, QueueFeeder.h, SleepJob.cc, SleepJob.h,
854 StatusLine.cc, Torrent.cc, Torrent.h, TreatFileJob.cc,
855 TreatFileJob.h, commands.cc, complete.cc, ftpclass.cc, mgetJob.cc,
856 mgetJob.h, mkdirJob.cc, mkdirJob.h, mvJob.cc, mvJob.h, pgetJob.cc,
857 pgetJob.h, url.cc, xstring.cc, xstring.h: replace PrintStatus with
858 FormatStatus; allow `jobs' output filtering; get rid of complex
859 alloca tricks.
860 * Torrent.cc, Torrent.h: don't show not connected peers by default
861 (jobs -vv still lists them); show validation rate and eta.
862
863 2011-04-22 Alexander V. Lukyanov <[email protected]>
864
865 * MirrorJob.cc, resource.cc: (mirror:no-empty-dirs) new setting.
866 * FileCopy.cc: remove password from URLs before logging.
867
868 2011-04-11 Alexander V. Lukyanov <[email protected]>
869
870 * commands.cc: save tmp buffer, this fixes `cd -'.
871 * FileCopy.cc: (FileCopyPeerFA::Clone) copy orig_url.
872
873 2011-03-25 Alexander V. Lukyanov <[email protected]>
874
875 * xstring.cc, xstring.h: (url_decode, append_url_encoded) new methods.
876 * url.cc, url.h: drop functions decode_string and encode_string.
877 * network.h: use proper includes.
878 * netrc.cc, CmdExec.cc, FileAccess.cc, FileCopy.cc, FileSet.cc,
879 FileSetOutput.cc, Fish.cc, FtpDirList.cc, Http.cc, HttpDir.cc,
880 IdNameCache.cc, LocalAccess.cc, MirrorJob.cc, MirrorJob.h,
881 NetAccess.cc, OutputJob.cc, OutputJob.h, ResMgr.cc, Resolver.cc,
882 SFtp.cc, StringSet.cc, misc.cc, misc.h, commands.cc, complete.cc,
883 history.cc, lftp.cc, netrc.cc: don't use sprintf, decode_string,
884 encode_string; drop xasprintf and xvasprintf.
885 * ftpclass.cc, resource.cc: (ftp:use-ip-tos) new setting.
886
887 2011-03-16 Alexander V. Lukyanov <[email protected]>
888
889 * SFtp.cc, SFtp.h: don't use uid_t and gid_t, may fix a problem
890 with sign expansion on some systems.
891
892 2011-03-09 Alexander V. Lukyanov <[email protected]>
893
894 * Torrent.cc, Torrent.h: use fadvise during validation;
895 fixed fallocate call to pass correct file length;
896 optimized validation by removing realloc call.
897 * xstring.cc, xstring.h: outline add_space; (get_space2) new method;
898 change get_space to take one arg.
899 * xmap.cc: optimize make_hash for hash_size==1.
900 * buffer.cc: use get_space2.
901 * ftpclass.cc: better wording in debug.
902
903 2011-03-03 Alexander V. Lukyanov <[email protected]>
904
905 * netkey.c: new file (from Ryan Thomas <[email protected]>).
906 * ftpclass.cc, ftpclass.h, resource.cc: add netkey support;
907 (ftp:netkey-allow) new setting (original patch from Ryan Thomas).
908
909 2011-02-24 Alexander V. Lukyanov <[email protected]>
910
911 * pgetJob.cc: check for chunk[0] error, avoids a segfault.
912 * Torrent.cc, Torrent.h: (Torrent::CanAccept, NoTorrentCanAccept)
913 new methods; don't accept connections if no torrent can accept.
914
915 2011-02-10 Alexander V. Lukyanov <[email protected]>
916
917 * lftp_ssl.cc: use curl version of openssl hostname check.
918 * FileCopy.cc, ResMgr.cc, ResMgr.h, resource.cc: (xfer:log-file)
919 new setting (original patch by Timur Sufiev <[email protected]>).
920
921 2011-02-08 Alexander V. Lukyanov <[email protected]>
922
923 * lftp_ssl.cc: check CN in openssl (code taken from wget);
924 (cert_error) new flag.
925 * Http.cc: rtrim error text.
926 * commands.cc: allow selecting jobs in 'jobs' command.
927 * misc.cc, misc.h: (remove_tags) don't call strlen repeatedly;
928 (rtrim) new func.
929 * ftpclass.cc: don't fall back to plain connection when cert error found.
930 * network.cc, network.h: (sockaddr_u::set_defaults) new method;
931 (Networker::SocketSinglePF) new method to bind to single protocol family.
932 * Torrent.cc, Torrent.h: add ipv6 support.
933 * resource.cc: make ssl:verify-certificate on by default.
934
935 2011-02-08 Alexander V. Lukyanov <[email protected]>
936
937 * lftp_ssl.cc: force SSL3 when ssl-auth is set to SSL (needed for
938 some ftp servers). Patch from Jiri Skala <[email protected]>;
939 disable SSLv2 and weak ciphers (Ludwig Nussel <[email protected]>);
940
941 2011-01-17 Alexander V. Lukyanov <[email protected]>
942
943 * Torrent.cc: check for null; set done when preparing to die.
944
945 2010-12-28 Alexander V. Lukyanov <[email protected]>
946
947 * Torrent.cc, Torrent.h: detect and remove duplicate peers.
948 * LocalAccess.cc: dir_file saving is not needed anymore (it uses
949 revolver).
950 * MirrorJob.cc: add remote symlink creation support.
951 * mvJob.cc, mvJob.h: add support for pre-removing target; better
952 status messages.
953
954 2010-12-17 Alexander V. Lukyanov <[email protected]>
955
956 * FileAccess.cc, FileAccess.h: new modes (LINK,SYMLINK);
957 (Open2) new method; make Rename, Mkdir, Chdir non-virtual.
958 * Fish.cc, SFtp.cc SFtp.h, LocalAccess.cc, ftpclass.cc: support ln.
959 * Http.cc: handle new open modes in switches.
960 * mvJob.cc, mvJob.h: add link support.
961 * commands.cc: (ln) new command.
962 * resource.cc: use sftp v6 by default.
963 * xstring.h: add inline strlen for xstring.
964
965 2010-12-15 Alexander V. Lukyanov <[email protected]>
966
967 * Torrent.cc: better trace messages; reset recv_rate on completion.
968
969 2010-11-24 Alexander V. Lukyanov <[email protected]>
970
971 * CmdExec.cc: fixed setting of cmdline in new jobs.
972 * Torrent.cc, lftp_rl.c, xstring.cc: fixed warnings
973 (patch from Openwall, Alexander Peslyak).
974 * complete.cc: use CmdExec::is_space for parsing.
975 * xstring.h: fixed compilation with non-gcc and old gcc compilers
976 (patch from Openwall, Vasiliy Kulikov).
977
978 2010-11-22 Alexander V. Lukyanov <[email protected]>
979
980 * MirrorJob.cc, SleepJob.cc: use parse_datetime instead of obsolete
981 get_date.
982 * CmdExec.cc, CmdExec.h: (AddNewJob) new method.
983 * ArgV.cc, ArgV.h: (Combine) add end index argument.
984 * Torrent.cc: dispose tracker session when shutting down;
985 divide numwant to number of trackers going to request the peers;
986 better shutting down status; glob local torrent files; use AddNewJob
987 to create multiple torrent jobs.
988 * mgetJob.cc: call globfree even when no files found.
989
990 2010-11-19 Alexander V. Lukyanov <[email protected]>
991
992 * Torrent.cc, Torrent.h: add multitracker support.
993
994 2010-11-15 Alexander V. Lukyanov <[email protected]>
995
996 * FileSet.cc: optimize b-search.
997 * StatusLine.cc: use tmp xstring.
998 * Torrent.cc, Torrent.h: (TorrentTracker) new class;
999 use posix_fallocate to pre-allocate disk space.
1000
1001 2010-10-19 Alexander V. Lukyanov <[email protected]>
1002
1003 * CmdExec.cc, CmdExec.h, commands.cc: new CmdExec ctor; `local' builtin.
1004 * MirrorJob.cc: allow continue of pget.
1005 * Torrent.cc, Torrent.h: better diag msg; don't show `next tracker in'
1006 msg when validating; allow starting of multiple torrents at once;
1007 show torrent name in status; add torrent to listener earlier;
1008 better handle shutting down of multiple torrents.
1009 * convert-mozilla-cookies: fix info duplication;
1010 * pgetJob.cc: save status at the start.
1011
1012 2010-09-09 Alexander V. Lukyanov <[email protected]>
1013
1014 * ftpclass.cc, ftpclass.h: add TVFS support; send path components
1015 separately as required by RFC1738 unless TVFS is declared by server.
1016 * example-cmd.cc: fix assertion failure.
1017
1018 2010-09-01 Alexander V. Lukyanov <[email protected]>
1019
1020 * convert-netscape-cookies: add sqlite support.
1021 * NetAccess.cc: use cached fset.
1022 * ResMgr.cc: match *.domain.org to domain.org in closure.
1023
1024 2010-08-17 Alexander V. Lukyanov <[email protected]>
1025
1026 * MirrorJob.cc: fixed coredump on --log=unopenable-file.
1027 * FileAccess.cc, ftpclass.cc, Http.cc, LocalAccess.cc: carefully
1028 save errno value.
1029
1030 2010-06-10 Alexander V. Lukyanov <[email protected]>
1031
1032 * Timer.cc: fixed Reset for timer which have been just Stop()ped.
1033 * commands.cc: document (repeat) options.
1034
1035 2010-06-09 Alexander V. Lukyanov <[email protected]>
1036
1037 * Torrent.cc, Torrent.h: don't try to re-download invalid piece
1038 from the same peer; black-list peers with many invalid pieces.
1039
1040 2010-06-09 Claus K. Larsen <[email protected]>
1041
1042 * xstring.h: include unistd.h to workaround truncate64 problem on aix.
1043
1044 2010-06-04 gabriele balducci <[email protected]>
1045
1046 * ftpclass.cc: fixed a problem with zeroed errno.
1047
1048 2010-06-02 Alexander V. Lukyanov <[email protected]>
1049
1050 * CopyJob.cc: use no_status flag.
1051 * CopyJob.h: (NoStatus) accept optional parameter.
1052 * OutputJob.cc: pass no_status flag.
1053
1054 2010-05-24 Alexander V. Lukyanov <[email protected]>
1055
1056 * GetJob.cc: fixed get/mget -c with xfer:clobber=no.
1057
1058 2010-05-20 Alexander V. Lukyanov <[email protected]>
1059
1060 * ftpclass.cc: workaround for servers with LANG but without UTF8
1061 (original patch by Henry Hu <[email protected]>).
1062
1063 2010-04-30 Alexander V. Lukyanov <[email protected]>
1064
1065 * FileCopy.cc, FileCopy.h, pgetJob.cc: (do_verify) new flag; unset it
1066 for pget chunks.
1067
1068 2010-04-28 Alexander V. Lukyanov <[email protected]>
1069
1070 * misc.cc, misc.h: (random_init, random01) new functions.
1071 * ResMgr.cc: use them.
1072 * TimeDate.cc, TimeDate.h: (TimeDiff::valueOf) new static method.
1073 * Timer.cc, Timer.h: (AddRandom) new method for randomization.
1074 * Torrent.cc: randomize peer connections in time.
1075
1076 2010-04-19 Alexander V. Lukyanov <[email protected]>
1077
1078 * GetJob.cc: make xfer:clobber=no by default.
1079 * FileCopy.cc, FileCopy.h: fixed retries counting on upload;
1080 track upload watermark.
1081 * ftpclass.cc: handle 426 reply on upload specially;
1082 retry FEAT after login on any 5xx reply but explicit unsup code.
1083
1084 2010-03-18 Alexander V. Lukyanov <[email protected]>
1085
1086 * resource.cc, commands.cc: add setting xfer:auto-rename to control
1087 server's suggested file name usage.
1088
1089 2010-03-09 Alexander V. Lukyanov <[email protected]>
1090
1091 * ftpclass.cc: prolong y2k workaround for next 300 years.
1092
1093 2010-03-05 Alexander V. Lukyanov <[email protected]>
1094
1095 * ftpclass.cc, ftpclass.h: (ssl-copy-sid) new setting; added
1096 recognition of "too many users" condition in Transient5XX method;
1097 more const on methods; shutdown ssl properly after CCC command.
1098 * resource.cc: (ftp:ssl-copy-sid) new setting; update RETRY_530 list.
1099 * Torrent.cc, Torrent.h: add black_list; refuse to start the same
1100 torrent twice.
1101
1102 2010-02-05 Alexander V. Lukyanov <[email protected]>
1103
1104 * FileAccess.cc, FileAccess.h, network.cc, network.h: more const.
1105 * misc.h: (ListScanPtr) new macro.
1106
1107 2010-01-27 Alexander V. Lukyanov <[email protected]>
1108
1109 * pgetJob.cc: resume transfer at the end when there is not status file
1110 (fixes re-downloading of complete files and allows resuming of plain
1111 transfers with pget).
1112
1113 2010-01-21 Alexander V. Lukyanov <[email protected]>
1114
1115 * FileAccess.cc: more restrictions on suggested file name.
1116 * FileCopy.cc: use suggested file name only if no such file exists.
1117 * GetJob.cc, FileCopy.cc: use O_EXCL when xfer:clobber is no.
1118
1119 2009-12-21 Alexander V. Lukyanov <[email protected]>
1120
1121 * pgetJob.cc, pgetJob.h: add PrepareToDie method (fixes a core dump
1122 on "kill all").
1123 * HttpDir.cc: don't use strlcpy.
1124 * Torrent.cc, Torrent.h: fix a warning on x86_64; when shutting down,
1125 terminate immediately on a new signal.
1126
1127 2009-12-18 Alexander V. Lukyanov <[email protected]>
1128
1129 * xstring.cc: use xrealloc.
1130 * misc.cc: (dir_file) use xstring::get_tmp (fixes sftp rename).
1131 * HttpDir.cc: add parser for lightttpd listing.
1132
1133 2009-11-17 Alexander V. Lukyanov <[email protected]>
1134
1135 * lftp.cc, lftp_rl.c, lftp_rl.h: new setting cmd:stifle-rl-history.
1136
1137 2009-11-17 Robert Story <[email protected]>
1138
1139 * Resolver.cc: use VAL_GETADDRINFO_HAS_STATUS macro.
1140
1141 2009-10-30 Robert Story <[email protected]>
1142
1143 * Resolver.cc: validate "no such name" answers.
1144
1145 2009-10-26 Alexander V. Lukyanov <[email protected]>
1146
1147 * Resolver.cc, Resolver.h: use default dnssec context; cosmetics.
1148
1149 2009-10-23 Robert Story <[email protected]>
1150
1151 * ResMgr.cc: check is_nil for numeric settings, prevents core dump
1152 when accessing inexisting settings.
1153 * resource.cc, Resolver.cc, Resolver.h: add dnssec support.
1154
1155 2009-10-23 Alexander V. Lukyanov <[email protected]>
1156
1157 * ResMgr.cc: use strtoll for signed numbers.
1158
1159 2009-10-16 Daniel Fazekas <[email protected]>
1160
1161 * FileSetOutput.cc: fixed buffer size for human_readable.
1162
1163 2009-10-09 Alexander V. Lukyanov <[email protected]>
1164
1165 * mgetJob.cc: better error messages; fixed exit code.
1166 * FileGlob.cc better error handling.
1167 * FileSet.cc, MirrorJob.cc: get rid of HAVE_LSTAT.
1168 * lftp_ssl.cc: include string.h
1169
1170 2009-09-23 Alexander V. Lukyanov <[email protected]>
1171
1172 * Torrent.cc, Torrent.h: show tracker timer time left; don't connect
1173 to passive peers; show torrent name as context.
1174
1175 2009-09-17 Alexander V. Lukyanov <[email protected]>
1176
1177 * Torrent.cc, ChmodJob.cc: add missing headers for NetBSD.
1178
1179 2009-09-16 Alexander V. Lukyanov <[email protected]>
1180
1181 * buffer.cc: fixed DataRecoder for the case of failed iconv_open;
1182 retry iconv_open without //TRANSLIT.
1183
1184 2009-09-15 Alexander V. Lukyanov <[email protected]>
1185
1186 * NetAccess.cc: fixed tilde handling.
1187 * FtpListInfo.cc: ignore 'Status of' line.
1188 * Torrent.cc: don't reset activity timer on connect (the peer may
1189 disconnect immediately).
1190 * ftpclass.cc, network.cc, network.h: don't bind data socket to
1191 default address (fixes an infinite bind loop).
1192
1193 2009-08-18 Alexander V. Lukyanov <[email protected]>
1194
1195 * Speedometer.cc, Speedometer.h: (GetStrS) return "" when not valid.
1196 * Torrent.cc, Torrent.h: better peer status; better traffic balance
1197 between different torrents; handle IO-buffer errors; add settings
1198 closure - name of the torrent; push uploaded data faster.
1199
1200 2009-08-11 Alexander V. Lukyanov <[email protected]>
1201
1202 * commands.cc: (print_cmd_index) better formatting.
1203 * CopyJob.h: pass FileTimestamp correctly.
1204 * FileCopy.cc: fix prec comparision.
1205
1206 2009-08-10 Alexander V. Lukyanov <[email protected]>
1207
1208 * lftp_ssl.cc: use SSL_OP_NO_TICKET to work with old servers.
1209
1210 2009-08-05 Alexander V. Lukyanov <[email protected]>
1211
1212 * buffer.cc, buffer.h: (Dump) new method.
1213 * Torrent.cc, Torrent.h: (ScanPeers) new method; add key, ip params;
1214 add --force-valid option to skip validating; add seed-min-peers
1215 parameter; better debug messages.
1216
1217 2009-08-04 Alexander V. Lukyanov <[email protected]>
1218
1219 * Speedometer.cc, Speedometer.h: (GetStr) return "" when not valid.
1220
1221 2009-07-29 Jeroen Roovers <[email protected]>
1222
1223 * Makefile.am: link cmd-torrent with liblftp-network.
1224
1225 2009-07-28 Alexander V. Lukyanov <[email protected]>
1226
1227 * RateLimit.cc, RateLimit.h: (Relaxed) new method.
1228
1229 2009-07-24 Alexander V. Lukyanov <[email protected]>
1230
1231 * buffer.cc: fixed Put for large blocks with translation, make
1232 scheduler run after putting some data into the buffer.
1233
1234 2009-07-23 Alexander V. Lukyanov <[email protected]>
1235
1236 * xmap.h: fixed xmap lookup returning zero.
1237 * xmap.cc: fixed hash_size calculation.
1238 * Speedometer.cc: speed-optimize by skipping Valid call.
1239
1240 2009-07-21 Alexander V. Lukyanov <[email protected]>
1241
1242 * xmap.h: (lookup_Lv) new method; make lookup const.
1243 * commands.cc: add short desc for torrent.
1244 * lftp.cc: send signal to jobs.
1245 * network.cc, network.cc: (SocketAccept) new method; move NonBlock and CloseOnExec here.
1246 * FileAccess.cc, FileAccess.h: ... from here.
1247 * ftpclass.cc: use SocketAccept and SocketCreateTCP.
1248 * Torrent.cc: use SocketAccept.
1249
1250 2009-07-17 Alexander V. Lukyanov <[email protected]>
1251
1252 * commands.cc, CmdExec.cc, CmdExec.h: (static_cmd_table_length) new const; use it;
1253 fixed core dump on help command (reported by Ganael LAPLANCHE <[email protected]>).
1254 (torrent) new command.
1255 * ProtoLog.cc, ProtoLog.h: new class.
1256 * FileAccess.cc, FileAccess.h: use ProtoLog; assume "file" protocol
1257 by default.
1258 * Http.cc: strip interface name from hostname for ipv6.
1259 * Job.cc: (Kill) try a signal first.
1260 * LocalAccess.cc, LocalAccess.h: use current cwd by default.
1261 * NetAccess.cc, NetAccess.h, network.cc, network.h: (Networker)
1262 new class, use it; add is_* methods for IP address classes.
1263 * Resolver.cc, Resolver.h: use ProtoLog.
1264 * ftpclass.cc: use sockaddr_u methods.
1265 * url.cc, url.h: use xstring, more unsafe chars.
1266 * xarray.h: (allocate) new method; (RefQueue) new class.
1267 * xstring.cc, xstring.h: (append_padding, dump, dump_to, is_binary) new methods.
1268 * xmap.cc, xmap.h, Error.cc, Error.h, Torrent.cc, Torrent.h: new files.
1269 * Makefile.am: add new files.
1270
1271 2009-06-11 Alexander V. Lukyanov <[email protected]>
1272
1273 * FileSet.cc: set time precision +-1 second on msdos fs (linux only).
1274 * xstring.h: add ctor(str,len).
1275
1276 2009-06-11 Jiri Skala <[email protected]>
1277
1278 * url.cc: fixed decode_string return value (also fixes http ls).
1279
1280 2009-05-14 Alexander V. Lukyanov <[email protected]>
1281
1282 * SFtp.cc: fixed coredump when ssh gets killed.
1283 * SleepJob.cc: show exec'd command status; fixed a deadlock msg.
1284 * ChmodJob.cc: fixed modes and umask (use octal as intended).
1285
1286 2009-05-13 Alexander V. Lukyanov <[email protected]>
1287
1288 * MirrorJob.cc: use line buffering for log file.
1289
1290 2009-05-07 Alexander V. Lukyanov <[email protected]>
1291
1292 * Filter.cc: fflush stdout before fork().
1293 * SFtp.cc: use xstring::get_tmp to avoid clobbering buffer in
1294 lc_to_utf8 and utf8_to_lc.
1295
1296 2009-04-29 Alexander V. Lukyanov <[email protected]>
1297
1298 * CopyJob.h: check for null ptr (fixes a core dump).
1299
1300 2009-04-27 Alexander V. Lukyanov <[email protected]>
1301
1302 * CopyJob.cc, CopyJob.h, FileCopy.cc: fixed core dump on kill command.
1303 * ftpclass.cc, ftpclass.h: better handle unsupported EPSV command.
1304 * mputJob.cc: fixed a coredump on 'mput -d'.
1305
1306 2009-04-16 Alexander V. Lukyanov <[email protected]>
1307
1308 * FileAccess.cc, FileAccess.h: (MkdirMakeSet) new method.
1309 * ftpclass.cc, SFtp.cc: use it (fixes mkdir -p for sftp).
1310
1311 2009-04-10 Alexander V. Lukyanov <[email protected]>
1312
1313 * Http.cc: size_t fun.
1314
1315 2009-03-20 Alexander V. Lukyanov <[email protected]>
1316
1317 * xarray.cc, xarray.h, CmdExec.cc, CmdExec.h:
1318 (xarray::insert_ordered, xarray::bsearch) new methods;
1319 use them to add new commands.
1320 * Speedometer.cc, Speedometer.h, FileCopy.cc: use xstring;
1321 fixed eta display.
1322 * commands.cc: drop some unneeded isdigit calls; cast char to
1323 unsigned char to prevent sign expansion.
1324 * CopyJob.cc: use xstring.
1325 * url.cc: optimize; cast char to unsigned char to prevent sign expansion.
1326 * log.cc, log.h: outline SetOutput.
1327 * StringSet.cc, StringSet.h, DummyProto.cc, DummyProto.h: outline ctor/dtor.
1328
1329 2009-03-18 Alexander V. Lukyanov <[email protected]>
1330
1331 * TimeDate.cc, TimeDate.h: (toString) new method.
1332 * Speedometer.cc: use it.
1333 * SleepJob.cc, SleepJob.h: show sleep time left.
1334 * commands.cc: fixed 'exit kill'.
1335
1336 2009-03-17 Alexander V. Lukyanov <[email protected]>
1337
1338 * ftpclass.cc: set NOREST mode on specific error message;
1339 unset epsv_supported if it actually isn't.
1340 * resource.cc: make ftp:prefer-epsv off by default.
1341 * pgetJob.cc: fixed off-by-one -c bug.
1342
1343 2009-03-03 Alexander V. Lukyanov <[email protected]>
1344
1345 * FileCopy.cc, FileCopy.h: outline SetRange.
1346 * pgetJob.cc: convert off_t to long long before passing to printf.
1347 * ftpclass.cc: fix warning; pre-select both PROT modes.
1348 * FileInfo.cc: fixed parsing of NT unix-like listings with one digit hour.
1349
1350 2009-02-02 Kevin Lo <[email protected]>
1351
1352 * FileCopy.cc: silent some warnings.
1353 * lftp_pty.c: add missing headers for openpty(3) on OpenBSD.
1354
1355 2009-01-28 Jiri Skala <[email protected]>
1356
1357 * ftpclass.cc: fixed a possible null dereference.
1358
1359 2009-01-27 Alexander V. Lukyanov <[email protected]>
1360
1361 * Resolver.cc: make it compile on old ipv6 systems.
1362
1363 2009-01-27 Arkadiusz Miskiewicz <[email protected]>
1364
1365 * Resolver.cc, Resolver.h: add support for IPv6 scope for link-local addresses.
1366
1367 2009-01-27 Alexander V. Lukyanov <[email protected]>
1368
1369 * ftpclass.cc, ftpclass.h, resource.cc: (ftp:prefer-epsv) new setting;
1370 fixed message for ignore-pasv-address; use EPSV when ftp:prefer-epsv
1371 is true and it's supported.
1372
1373 2009-01-14 Alexander V. Lukyanov <[email protected]>
1374
1375 * buffer_ssl.cc: shutdown ssl connection only when there is no data left.
1376
1377 2008-12-12 Alexander V. Lukyanov <[email protected]>
1378
1379 * ftpclass.cc, resource.cc: (ftp:trust-feat) new setting.
1380
1381 2008-11-27 Alexander V. Lukyanov <[email protected]>
1382
1383 * ftpclass.cc, resource.cc: add another proxy-auth-type: proxy-user@host.
1384
1385 2008-11-11 Alexander V. Lukyanov <[email protected]>
1386
1387 * OutputJob.cc: fixed a memory corruption bug (occured in zmore).
1388
1389 2008-11-10 Justin Piszcz <[email protected]>
1390
1391 * commands.cc: add include sys/wait.h
1392
1393 2008-11-07 Alexander V. Lukyanov <[email protected]>
1394
1395 * CopyJob.cc, FileSetOutput.cc, Job.cc, Job.h, MirrorJob.cc,
1396 SleepJob.cc, echoJob.cc, mgetJob.cc: make AddWaiting set parent/fg.
1397
1398 2008-11-06 Alexander V. Lukyanov <[email protected]>
1399
1400 * FileFeeder.cc, FileFeeder.h: use Ref.
1401 * FileSet.cc, MirrorJob.cc: don't include lstat.h
1402 * SysCmdJob.cc: call super::PrepareToDie.
1403 * Job.cc, Job.h: use Ref for fg_data; don't call Done for running job;
1404 add PrepareToDie method; use List macros; use xarray::search.
1405 * CmdExec.cc, CmdExec.h: add auto_terminate_in_bg; use resource names;
1406 new setting cmd:move-background-detach.
1407 * commands.cc: add no-detach bg exit option.
1408
1409 2008-10-29 Alexander V. Lukyanov <[email protected]>
1410
1411 * misc.cc, misc.h: (in_foreground_pgrp) new function.
1412 * lftp.cc: use in_foreground_pgrp.
1413 * ftpclass.cc: don't require ftp:acct when proxy settings provide an acct.
1414
1415 2008-10-01 Alexander V. Lukyanov <[email protected]>
1416
1417 * MirrorJob.cc: clone session properly - it fixed mirror -RP.
1418 * lftp_ssl.cc, lftp_ssl.h: (shutdown) new method.
1419 * ftpclass.cc, ftpclass.h: automatically try PROT P if enforced
1420 by server.
1421 * buffer_ssl.cc, buffer_ssl.h: shutdown ssl when sending eof.
1422
1423 2008-08-23 Alexander V. Lukyanov <[email protected]>
1424
1425 * FileCopyFtp.cc: add another timeout check.
1426 * SFtp.cc: don't ignore UNKNOWN type entries; add debug.
1427
1428 2008-08-15 Alexander V. Lukyanov <[email protected]>
1429
1430 * ResMgr.cc, ResMgr.h: add number suffix support (i.e. 10k for 10240).
1431 * LsCache.cc, resource.cc: use new number suffixes.
1432 * ftpclass.cc: use new ResValue::to_number method.
1433
1434 2008-08-05 Alexander V. Lukyanov <[email protected]>
1435
1436 * SMTask.cc, SMTask.h: add PrepareToDie virtual method.
1437 * FileAccess.cc, FileAccess.h, FileCopy.cc, FileCopy.h, GetFileInfo.cc,
1438 GetFileInfo.h, SleepJob.cc, SleepJob.h, SysCmdJob.cc, SysCmdJob.h,
1439 TreatFileJob.cc, TreatFileJob.h, echoJob.cc, echoJob.h, mgetJob.cc,
1440 mgetJob.h: use PrepareToDie, use Refs.
1441 * buffer.cc, buffer.h: allow to make IOBufferFDStream with FDStream ref.
1442 * PtyShell.cc, PtyShell.h: use Refs.
1443 * Job.cc, Job.h: use const in RemoveWaiting.
1444
1445 2008-07-23 Alexander V. Lukyanov <[email protected]>
1446
1447 * misc.cc: use gnulib's unsetenv.
1448 * SleepJob.cc, MirrorJob.cc: use gnulib's get_date.
1449 * Makefile.am: link only liblftp-tasks with gnulib.
1450 * DummyProto.cc: inc stddef.h.
1451 * FileAccess.cc: hook md5 and glob from gnulib.
1452
1453 2008-05-27 Alexander V. Lukyanov <[email protected]>
1454
1455 * FileAccess.cc, pgetJob.cc: don't include unneeded headers;
1456 move assert.h where needed.
1457 * PollVec.h: include poll.h with CDECL.
1458
1459 2008-05-23 Alexander V. Lukyanov <[email protected]>
1460
1461 * ascii_ctype.h: use gnulib c-ctype.
1462
1463 2008-05-22 Alexander V. Lukyanov <[email protected]>
1464
1465 * resource.cc: use locale_charset.
1466 * FileSet.cc, MirrorJob.cc: use lstat.h.
1467 * ftpclass.cc, ResMgr.cc, NetAccess.cc: use inet_pton.
1468
1469 2008-05-16 Alexander V. Lukyanov <[email protected]>
1470
1471 * ftpclass.cc, ftpclass.h: outline some funcs; disable ALLO on 202 reply;
1472 add support for two-arg SITE UTIME; add support for MFMT; new setting
1473 ftp:use-site-utime2.
1474
1475 2008-05-14 Alexander V. Lukyanov <[email protected]>
1476
1477 * ftpclass.cc, ftpclass.h: add ALLO check and set use-allo if unsupported.
1478
1479 2008-05-08 Alexander V. Lukyanov <[email protected]>
1480
1481 * SFtp.cc: fixed handling of missed strings in Status reply.
1482
1483 2008-05-06 Alexander V. Lukyanov <[email protected]>
1484
1485 * Http.cc: (MergeCookie) use xstring methods; fixed NULL dereference.
1486 * xstring.cc, xstring.h: xstring::skip_all new method.
1487
1488 2008-04-24 Alexander V. Lukyanov <[email protected]>
1489
1490 * ftpclass.cc: fixed cwd tracking for ftps; fixed rate_limit allocation
1491 for HTTP proxy; don't re-create data_iobuf when receiving data over
1492 HTTP proxy, because we could lose some already received data (reported
1493 by Arkady Sherman <[email protected]>).
1494
1495 2008-04-08 Alexander V. Lukyanov <[email protected]>
1496
1497 * GetFileInfo.cc: init size/time fields.
1498 * SFtp.cc: more debug messages; fill array_info even in case of error.
1499 * buffer.cc, resource.cc: don't use empty charset name.
1500
1501 2008-03-14 Alexander V. Lukyanov <[email protected]>
1502
1503 * resource.cc: make sftp:use-full-path on by default; validate it
1504 properly as a boolean.
1505
1506 2008-03-13 Alexander V. Lukyanov <[email protected]>
1507
1508 * FileSet.cc: use time 12:00:00 when time is unknown (instead of 12:00:30).
1509
1510 2008-03-05 Alexander V. Lukyanov <[email protected]>
1511
1512 * Fish.cc: handle stderr messages during file transfer.
1513 * Http.cc: add 303 and 307 codes (suggested by Stephane Chazelas <[email protected]>).
1514
1515 2008-02-26 Alexander V. Lukyanov <[email protected]>
1516
1517 * SSH_Access.cc, SSH_Access.h, Fish.cc, Fish.h, SFtp.cc, SFtp.h, Makefile.am:
1518 split off the ssh interaction logic to separate module (SSH_Access).
1519 * MirrorJob.cc: add basename only if it is not already there.
1520
1521 2008-02-20 Alexander V. Lukyanov <[email protected]>
1522
1523 * CmdExec.cc: fix spinning when fail-exit is triggered with non-empty
1524 root cmd_buf.
1525
1526 2008-02-17 Alexander V. Lukyanov <[email protected]>
1527
1528 * ftpclass.cc, ftpclass.h, resource.cc: new setting ftp:ssl-shutdown-timeout;
1529 wait for ssl shutdown after CCC (new wait state WAITING_CCC_SHUTDOWN);
1530 move some timers and connection state variables to Connection class;
1531 use xstring_c for some members.
1532 * FileAccess.h, NetAccess.h: use xstring_c for some members.
1533
1534 2008-02-16 Alexander V. Lukyanov <[email protected]>
1535
1536 * ftpclass.cc, ftpclass.h, resource.cc: ftp:proxy-auth-type replaces
1537 old ftp:proxy-auth-joined setting; implement two more auth types:
1538 joined-acct and open (partly based on patch from David Wolfe <[email protected]>).
1539
1540 2008-02-15 Alexander V. Lukyanov <[email protected]>
1541
1542 * network.cc, network.h, Makefile.am: (network.*) new files.
1543 * xarray.h: (search) new method.
1544 * Resolver.h, Resolver.cc: use new sockaddr_u methods;
1545 don't add the same address multiple times; report found addrs.
1546 * NetAccess.cc, NetAccess.h: use new sockaddr_u methods.
1547 * ftpclass.cc: workaround proftpd NLST bug; workaround for
1548 a server bug sending single NL; simplify encode_eprt.
1549
1550 2008-02-06 Laurent MONIN <[email protected]>
1551
1552 * commands.cc: add open -s option, describe slot command syntax.
1553
1554 2008-02-06 Alexander V. Lukyanov <[email protected]>
1555
1556 * parsecmd.cc: don't delete Ref (fixes double delete bug).
1557
1558 2008-01-31 Alexander V. Lukyanov <[email protected]>
1559
1560 * ftpclass.cc, ftpclass.h, resource.cc: (ftp:waiting-150-timeout) new setting;
1561 limit time to wait for 150 reply; stop waiting for 150 reply after receiving
1562 another reply.
1563 * FileCopy.cc: (xfer:buffer-size) new setting.
1564
1565 2008-01-23 Alexander V. Lukyanov <[email protected]>
1566
1567 * ftpclass.cc: always use passive mode for proxy_is_http==true;
1568 use GetFlag function everywhere to test flags.
1569
1570 2008-01-21 Alexander V. Lukyanov <[email protected]>
1571
1572 * MirrorJob.h: use SMTaskRef properly (fixes kill all core dump).
1573 * SFtp.cc: don't use FSETSTAT to truncate the file on upload when
1574 not needed (pos==0 can use open mode with truncation).
1575 * Fish.cc: unset translation when charset is set to an empty string.
1576 * SFtp.cc, SFtp.h, resource.cc: (sftp:use-full-path) new setting;
1577 use sftp:charset properly; unset translation when charset eq "".
1578
1579 2008-01-17 Alexander V. Lukyanov <[email protected]>
1580
1581 * SFtp.cc: fixed hex printing of the handle.
1582
1583 2008-01-03 Alexander V. Lukyanov <[email protected]>
1584
1585 * buffer.cc: use copy of va_list properly (fixes a coredump on some systems).
1586 * url.cc: (encode) use xstring::get_tmp to allow several encode calls at once.
1587 * HttpDir.cc: init link_target properly (fixes NULL pointer fault).
1588
1589 2007-12-28 Alexander V. Lukyanov <[email protected]>
1590
1591 * FileCopy.cc, FileGlob.cc, HttpDir.cc, LocalAccess.cc, ftpclass.cc:
1592 fixed constness for strchr, strrchr and strstr
1593 (reported by Yann Rouillard <[email protected]>).
1594 * GetJob.cc, GetJob.h: don't decode URL escapes when no URL schema used.
1595
1596 2007-12-12 Alexander V. Lukyanov <[email protected]>
1597
1598 * ftpclass.cc: workaround the case when transfer ends without data connection.
1599
1600 2007-12-12 Martin Nagy <[email protected]>
1601
1602 * FileCopy.cc: (GetPercentDoneStr) prevent buffer overflow.
1603
1604 2007-11-13 Alexander V. Lukyanov <[email protected]>
1605
1606 * xstring.cc, xstring.h: make most xstring methods return *this;
1607 new function get_tmp(s,n).
1608 * misc.cc: use new get_tmp.
1609 * xmalloc.h: add ().
1610
1611 2007-11-12 Alexander V. Lukyanov <[email protected]>
1612
1613 * xstring.cc, xstring.h: (get_tmp(const char*)) new function.
1614 * misc.cc: use it.
1615 * FileAccess.cc, FileAccess.h: optimize Log* methods.
1616 * MirrorJob.cc: count rm errors properly.
1617
1618 2007-11-08 Alexander V. Lukyanov <[email protected]>
1619
1620 * ftpclass.cc: don't reset timeout_timer all the time.
1621 * resource.cc: make ftp:use-stat-for-list off by default.
1622
1623 2007-11-03 Alexander V. Lukyanov <[email protected]>
1624
1625 * FileAccess.cc: (Log2) don't use %.*s (it mishandles invalid mb characters).
1626 * SleepJob.cc, SleepJob.h: repeat --weak new option.
1627
1628 2007-10-24 Alexander V. Lukyanov <[email protected]>
1629
1630 * parsecmd.cc: don't accept incomplete comments.
1631 * CmdExec.cc: set slot name before ChangeSession (fixes a glitch).
1632 * ConnectionSlot.cc, ConnectionSlot.h: use FileAccessRef.
1633 * url.cc, FileAccess.cc: use const for FindSession result.
1634
1635 2007-10-18 Alexander V. Lukyanov <[email protected]>
1636
1637 * ftpclass.cc: set prot='P' for ftps if PROT command fails.
1638 * IdNameCache.cc, IdNameCache.h: use Ref; use xstrcmp.
1639
1640 2007-10-15 Alexander V. Lukyanov <[email protected]>
1641
1642 * ftpclass.cc: handle timeouts when 150 reply is not received yet.
1643
1644 2007-10-13 Alexander V. Lukyanov <[email protected]>
1645
1646 * Job.cc: fix `wait all'.
1647
1648 2007-10-12 Alexander V. Lukyanov <[email protected]>
1649
1650 * NetAccess.cc: clear proxy_proto properly.
1651 * ftpclass.cc: (TurnOffStatForList) new method; fine tune STAT for LIST
1652 handling for some servers.
1653
1654 2007-10-09 Alexander V. Lukyanov <[email protected]>
1655
1656 * Ref.h: (get) new method.
1657 * FileSet.cc: workaround for OSF/1 compiler.
1658
1659 2007-10-08 Alexander V. Lukyanov <[email protected]>
1660
1661 * xstring.cc: fix xstring::cat.
1662 * xarray.h: drop automatic cast to T*.
1663 * Resolver.cc, Resolver.h: use explicit xarray::get.
1664 * SFtp.cc: fix type mismatch warning.
1665
1666 2007-10-01 Alexander V. Lukyanov <[email protected]>
1667
1668 * ftpclass.cc: handle and log STAT errors properly.
1669
1670 2007-09-24 Alexander V. Lukyanov <[email protected]>
1671
1672 * ftpclass.cc: fix for non-standard FEAT reply.
1673 * SFtp.cc, SFtp.h: use timer to flush imcomplete data.
1674
1675 2007-09-21 Alexander V. Lukyanov <[email protected]>
1676
1677 * module.cc: use xstring; (access_so) new function.
1678
1679 2007-09-20 Alexander V. Lukyanov <[email protected]>
1680
1681 * LocalAccess.cc, LocalAccess.h: let other tasks run while doing
1682 ListInfo; better status messages.
1683 * NetAccess.cc: optimize translations; use xstring::format.
1684 * FileSet.h: (count, curr_index, curr_pct) new methods.
1685
1686 2007-09-17 Alexander V. Lukyanov <[email protected]>
1687
1688 * ftpclass.cc: skip leading space in STAT reply.
1689 * resource.cc: add another server overload message.
1690 * MirrorJob.cc, MirrorJob.h: (depth-first, no-empty-dirs, ascii)
1691 new options.
1692 * CmdExec.cc, CmdExec.h, complete.cc: (CmdByIndex) return cmd name.
1693
1694 2007-09-12 Alexander V. Lukyanov <[email protected]>
1695
1696 * ftpclass.cc: improve STAT reply handling.
1697 * ArgV.cc, ArgV.h: (getopt_error_message) new method.
1698 * commands.cc: use getopt_error_message; don't pass longopt - unneeded;
1699 (cls) remove options after time_style is used.
1700
1701 2007-09-12 Lamer <[email protected]>
1702
1703 * lftp_ssl.cc, resource.cc: (ssl:check-hostname) new setting.
1704
1705 2007-09-10 Alexander V. Lukyanov <[email protected]>
1706
1707 * ArgV.cc: use strtok instead of tokenize.
1708 * misc.cc, misc.h: drop tokenize.
1709 * CmdExec.cc, CmdExec.h, commands.cc: use xarray for dyn_cmd_table.
1710 * ColumnOutput.cc, ColumnOutput.h: use RefArray for datum.
1711 * FileAccess.cc, FileAccess.h: outline DirList ctor and dtor.
1712 * FileCopy.cc, FileCopy.h, FileGlob.cc, FileGlob.h, FileSet.cc,
1713 FileSet.h: outline ctor/dtor.
1714 * FindJob.cc, FindJob.h: use RefArray for stack.
1715 * FindJobDu.cc, FindJobDu.h: use RefArray for size_stack; use Ref.
1716 * xarray.cc, xarray.h: (xqueue) new class; (xarray::chop,last,qsort,
1717 move_here) new methods; (xarray_s) new class.
1718 * xstring.h, Ref.h: (_clear,_set,unset) new methods.
1719 * Fish.cc: use xqueue for RespQueue.
1720 * HttpDirXML.cc: use Refs, use xarray_s for stack.
1721 * Job.cc, Job.h: use xarray for waiting; (AllWaitingFg) new method.
1722 * CopyJob.cc, MirrorJob.cc: define waiting_num.
1723 * Resolver.cc: use xarray.
1724 * SMTask.cc, SMTask.h: use xarray for stack.
1725 * history.cc: use url::encode.
1726 * SleepJob.cc: fixup for new waiting.
1727 * ftpclass.cc: when directory STAT reply includes 211- prefixes, strip them.
1728
1729 2007-09-02 Alexander V. Lukyanov <[email protected]>
1730
1731 * ftpclass.cc: fixed typo leading to coredump.
1732
1733 2007-08-31 Alexander V. Lukyanov <[email protected]>
1734
1735 * ftpclass.cc: set entity_size only for RETRIEVE mode; better handle 1xx replies.
1736
1737 2007-08-31 Craig Ruff <[email protected]>
1738
1739 * ftpclass.cc: handle 125 reply as 150.
1740
1741 2007-08-30 Alexander V. Lukyanov <[email protected]>
1742
1743 * MirrorJob.cc: clone session when doing transfer (fixes -P).
1744 * buffer.cc, buffer.h: (Append, AppendTranslated) new methods.
1745
1746 2007-08-29 Alexander V. Lukyanov <[email protected]>
1747
1748 * buffer.cc, buffer.h: move Put_LL shortcut to IOBuffer.
1749 * FileAccess.cc, FileAccess.h: (expand_tilde) add start index arg;
1750 (Path::Optimize) use xstrings, add a special case for optimization of url paths,
1751 (Path::Change) use xstrings, expand single tilde in url.
1752 * misc.cc, misc.h: dirname works with xstring.
1753 * GetFileInfo.cc: use new dirname.
1754 * FileCopy.cc: use new dirname; getfd in FileCopyPeerFDStream mode PUT, so that
1755 it becomes IOReady.
1756 * HttpDir.cc: use xstrings.
1757 * xstring.cc, xstring.h: (append(s,len), append(xstring)) new methods; fix set_substr;
1758 (set_substr(i,len1,s,len2)) new method.
1759
1760 2007-08-24 Alexander V. Lukyanov <[email protected]>
1761
1762 * xstring.cc, xstring.h: (get_tmp, format, vformat, cat, join) new static methods.
1763 * CopyJob.cc, Fish.cc, Http.cc, ftpclass.cc, log.cc, misc.cc, url.cc, SFtp.cc:
1764 use new xstring methods; prefer xstring::length over strlen.
1765 * ftpclass.cc, ftpclass.h: (ReceiveOneLine) new method; clean up ReceiveResp.
1766 * buffer.h: (Put(xstring&)) new method.
1767
1768 2007-08-23 Alexander V. Lukyanov <[email protected]>
1769
1770 * FileCopy.cc: don't use put_ll_timer in ascii mode.
1771
1772 2007-08-20 Alexander V. Lukyanov <[email protected]>
1773
1774 * FileAccess.cc, FileAccess.h: new Log* methods.
1775 * log.cc, log.h: (vFormat) new method.
1776 * RateLimit.cc, RateLimit.h, NetAccess.cc, Makefile.am: move RateLimit
1777 implementation to a separate file.
1778 * ftpclass.cc, ftpclass.h: use new Log* methods; don't call getpeername
1779 for just connected socket; wait for 150 reply before accessing data socket.
1780 * Fish.cc, SFtp.cc, Http.cc, LocalAccess.cc, Resolver.cc,
1781 NetAccess.cc: use new Log* methods.
1782 * SFtp.cc: limit upload packet size.
1783 * LsCache.cc: increase cache size to 16Mb.
1784
1785 2007-08-16 Alexander V. Lukyanov <[email protected]>
1786
1787 * FileSetOutput.cc: truncate xstring correctly.
1788 * lftp.cc, commands.cc, CmdExec.cc, CmdExec.h: use Ref for top_exec.
1789 * FileCopy.cc, FileCopy.h, resource.cc: add transfer log support
1790 and xfer:log setting.
1791
1792 2007-08-15 Alexander V. Lukyanov <[email protected]>
1793
1794 * xstring.h: disable clone and assign for xstring_ca.
1795 * xstring.cc: use a clearer alloc condition.
1796 * FtpListInfo.cc: simplify parser with xstring.
1797 * xarray.cc, xarray.h: (keep_extra) new member.
1798
1799 2007-08-14 Alexander V. Lukyanov <[email protected]>
1800
1801 * FileSet.cc, FileSet.h: fix clone ctor, add Dump method.
1802 * MirrorJob.cc: use NO_DATE.
1803 * ftpclass.cc: don't do ResetLocationDate in clone ctor - it leads
1804 to loss of cwd; set correct real_cwd when handling of CWD reply.
1805 * NetAccess.cc: save listing in cache with proper mode.
1806 * commands.cc: update copyright.
1807 * ftpclass.cc: don't change TYPE unless needed.
1808
1809 2007-08-13 Alexander V. Lukyanov <[email protected]>
1810
1811 * xarray.h: zero terminate xarray_p.
1812 * ftpclass.cc: correctly truncate xstring.
1813 * FtpDirList.cc: fixed list colouring (line parse).
1814 * StringSet.cc: optimize.
1815
1816 2007-08-10 Alexander V. Lukyanov <[email protected]>
1817
1818 * Ref.h, xarray.h, SMTash.h: make a base class _RefArray; new class
1819 TaskRefArray; new class xarray_p; (xarray::borrow) new method.
1820 * StringPool.cc, StringPool.h, StringSet.cc, StringSet.h: use xarray_p.
1821 * pgetJob.cc, pgetJob.h: use TaskRefArray.
1822 * ftpclass.cc, ftpclass.h: check anonymous password for leading minus sign
1823 before enabling stat-for-list.
1824
1825 2007-08-08 Alexander V. Lukyanov <[email protected]>
1826
1827 * ResMgr.cc, url.cc: use xstring and StringSet.
1828 * xarray.cc, xarray.h: new files.
1829 * Makefile.am: add xarray files.
1830 * NetAccess.cc, NetAccess.h, ftpclass.cc, Http.cc, FileSet.cc,
1831 FileSet.h, PollVec.cc, PollVec.h, ColumnOutput.cc, ColumnOutput.h,
1832 Resolver.cc, Resolver.h: use xarray.
1833 * StringSet.h: (borrow) new method.
1834 * Ref.h: make RefArray a friend.
1835
1836 2007-08-06 Alexander V. Lukyanov <[email protected]>
1837
1838 * FileSet.h, FileSet.cc: (NotNewerThan, NotOlderThan, Subtract*) new methods.
1839 * MirrorJob.cc: use SubtractNotNewerThan and SubtractNotOlderThan.
1840
1841 2007-08-02 Alexander V. Lukyanov <[email protected]>
1842
1843 * ftpclass.cc, NetAccess.cc, NetAccess.h: increment retries on
1844 soft transfer errors which do not cause disconnect; check retry
1845 count before re-starting transfer.
1846 * FileCopy.cc: increment saved retry count before next try.
1847 * resource.cc: remove obsolete code.
1848 * log.cc, log.h: use Ref; use xstring::vsetf.
1849 * keyvalue.cc, keyvalue.h: use xstring::appendf.
1850 * ArgV.cc, CmdExec.cc: use xstring.
1851
1852 2007-07-31 Alexander V. Lukyanov <[email protected]>
1853
1854 * ftpclass.cc: set STORE_FAILED error properly in some cases.
1855 * ftpclass.cc, ftpclass.h, resource.cc: new setting ftp:use-stat-for-list.
1856
1857 2007-07-30 Alexander V. Lukyanov <[email protected]>
1858
1859 * SFtp.cc: clear handle on disconnect (fixes coredump).
1860
1861 2007-07-27 Alexander V. Lukyanov <[email protected]>
1862
1863 * commands.cc: add $$ eval substitution.
1864 * xstring.cc, xstring.h: (appendf, vappendf) new methods.
1865
1866 2007-07-26 Alexander V. Lukyanov <[email protected]>
1867
1868 * commands.cc: (eval) new command.
1869
1870 2007-07-26 Alexander V. Lukyanov <[email protected]>
1871
1872 * ColumnOutput.cc, ColumnOutput.h: use Refs.
1873 * CopyJob.cc, CopyJob.h: use Refs; allow to specify CopyJob creator
1874 for CopyJobEnv.
1875 * FileCopy.cc, FileCopy.h: close session when it's not needed; suspend
1876 only open sessions; new Clone methods; disallow negative buf size.
1877 * FileSetOutput.cc, FileSetOutput.h: use Refs; remember data source error.
1878 * Job.h: make JobRef===SMTaskRef.
1879 * OutputJob.h: remove unused members/methods.
1880 * MirrorJob.cc, commands.cc: use new pget.
1881 * complete.cc: use JobRef.
1882 * pgetJob.cc, pgetJob.h: derive from CopyJob.
1883
1884 2007-07-25 Alexander V. Lukyanov <[email protected]>
1885
1886 * ftpclass.cc, ftpclass.h: allow to borrow active connection if last
1887 connection failed.
1888
1889 2007-07-06 Alexander V. Lukyanov <[email protected]>
1890
1891 * buffer.cc: fixed DataRecoder.
1892 * buffer.h: (PutRaw) new method.
1893 * ftpclass.cc, ftpclass.h: send encoded parts of url untranslated.
1894 * url.cc, url.h: (path_ptr) new method.
1895
1896 2007-06-15 Alexander V. Lukyanov <[email protected]>
1897
1898 * ResMgr.cc: (CharsetValidate) return error without iconv.
1899 * buffer.cc, buffer.h: nicer conditionals.
1900
1901 2007-06-15 Jakob Truelsen <[email protected]>
1902
1903 * ResMgr.cc, SFtp.cc, buffer.cc, buffer.h: allow compilation without iconv.
1904
1905 2007-06-08 Alexander V. Lukyanov <[email protected]>
1906
1907 * FileAccess.h: don't include LsCache.h.
1908 * FileSet.cc, FileSet.h: const Count.
1909 * GetPass.cc: don't return NULL for empty pass.
1910 * LocalAccess.cc, LocalAccess.h, LsCache.cc, LsCache.h,
1911 MirrorJob.cc, MirrorJob.h: use Refs.
1912 * xstring.h: (last_char) new method.
1913 * xmalloc.h: (alloca_append) new macro.
1914 * url.cc, url.h: (url::decode) new static method; make
1915 url::dir_needs_trailing_slash support urls instead of just proto.
1916 * FileAccess.cc: add trailing slash to urls when needed; keep url when doing cd ..
1917 * commands.cc: consult cache when deciding how to Chdir.
1918 * NetAccess.cc: move peer cloning here from Http; cache FileSet.
1919 * Http.cc: don't add slash if url is known; cache dir status.
1920
1921 2007-06-04 Alexander V. Lukyanov <[email protected]>
1922
1923 * buffer.cc, buffer.h: make Unpack* const.
1924 * Ref.h: (get_non_const) new method; Cast<T> new template.
1925 * SFtp.cc, SFtp.h: use Refs, use const where appropriate.
1926
1927 2007-05-31 Alexander V. Lukyanov <[email protected]>
1928
1929 * Fish.cc: fixed Disconnect to unset buffers.
1930 * FileGlob.h: dir_list should not be Ref.
1931 * xstring.cc, xstring.h: (xstring_c::vset, xstring::setf) new methods.
1932 * CopyJob.cc, misc.cc, pgetJob.cc, resource.cc: use xstring::setf.
1933 * OutputJob.cc: use xstring_c::vset.
1934 * url.cc: encode non-ascii chars; use setf.
1935 * xmalloc.cc: better debug print.
1936 * Http.cc: fixed Read (broken when _Read was split off);
1937 fixed handling of urls without path.
1938
1939 2007-05-24 Alexander V. Lukyanov <[email protected]>
1940
1941 * convert-netscape-cookies: use strict; better error message.
1942
1943 2007-05-22 Alexander V. Lukyanov <[email protected]>
1944
1945 * ftpclass.cc, ftpclass.h: use Ref for expect.
1946 * xmalloc.cc, xmalloc.h: 3-arg xstrset - new function.
1947 * xstring.h: (xstring_c::nset) new method.
1948 * FileAccess.cc, FileCopy.cc, FindJob.cc, HttpDirXML.cc, MirrorJob.cc,
1949 commands.cc, misc.cc, resource.cc, url.cc, url.h: use xstring in ParsedURL.
1950
1951 2007-05-21 Alexander V. Lukyanov <[email protected]>
1952
1953 * Http.cc, Http.h: (_Read) new private method to use in LogErrorText
1954 (fixed incorrect resetting of retries).
1955
1956 2007-05-15 Alexander V. Lukyanov <[email protected]>
1957
1958 * FileAccess.h: use static_cast (as we use -fno-rtti).
1959 * NetAccess.cc, NetAccess.h: use Ref; split off RateLimit.
1960 * RateLimit.h: new file.
1961 * Fish.cc, SFtp.cc: change for Refs in NetAccess.
1962 * Http.cc, Http.h: use Ref.
1963 * ProcWait.h: make dtor public.
1964 * Resolver.cc, Resolver.h, buffer_ssl.cc, buffer_ssl.h, ftpclass.cc,
1965 ftpclass.h: use Ref.
1966
1967 2007-04-27 Alexander V. Lukyanov <[email protected]>
1968
1969 * FileAccess.cc, FileAccess.h: more inlines; make dtor public.
1970 * StatusLine.h: make dtor public.
1971 * SMTask.h: make SMTaskRef inherit from Ref.
1972
1973 2007-04-25 Alexander V. Lukyanov <[email protected]>
1974
1975 * CmdExec.cc: use explicit borrow().
1976 * Fish.cc, Fish.h, SFtp.cc, SFtp.h: use Refs.
1977 * Ref.h: declare Ref::null; deny assignment from other Ref.
1978 * HttpDir.cc: use Ref::null.
1979 * buffer.h: optimize ctors.
1980
1981 2007-04-21 Alexander V. Lukyanov <[email protected]>
1982
1983 * CatJob.cc: use new FileCopyPeerFA::New.
1984 * CmdExec.cc, CmdExec.h: use Ref for saved_session.
1985 * ConnectionSlot.cc, ConnectionSlot.h: add const.
1986 * DirColors.cc, DirColors.h: pass const Ref&.
1987 * DummyProto.cc: use new DirList ctor.
1988 * FileAccess.cc, FileAccess.h: use Refs; (FileAccessRef::null) new
1989 const;
1990 * FileCopy.cc, FileCopy.h, FileCopyFtp.cc, FileCopyFtp.h: use Refs;
1991 const; Cast method.
1992 * FileGlob.cc, FileGlob.h, Filter.cc, Filter.h: use Refs.
1993 * FileSet.cc, FileSet.h: use consts.
1994 * FindJob.cc, FindJob.h, Fish.cc, Fish.h, FtpDirList.cc, FtpDirList.h,
1995 GetFileInfo.cc, GetFileInfo.h, GetJob.cc GetJob.h, HttpDir.cc,
1996 OutputJob.cc, OutputJob.h, SFtp.cc, SFtp.h, SleepJob.cc, SleepJob.h,
1997 buffer.cc, buffer.h, commands.cc, mkdirJob.cc, mkdirJob.h: use Refs.
1998 * Http.cc, ftpclass.cc: change order of args to *DirList.
1999 * ftpclass.h, history.cc, history.h: add const.
2000 * Job.cc, Job.h: use Refs in SessionJob; drop Reuse method.
2001 * LocalAccess.cc: pass 0 as session to DirList.
2002 * NetAccess.cc, commands.cc: use non-static Roll method.
2003 * SMTask.h: drop operator=(SMTaskRef&).
2004
2005 2007-04-18 Alexander V. Lukyanov <[email protected]>
2006
2007 * CmdExec.cc: don't delete Refs.
2008 * CopyJob.h, OutputJob.cc, OutputJob.h: return ref to Ref instead of
2009 pointer.
2010 * FileCopy.cc, FileCopy.h: use Refs; make more virtual methods for fxp.
2011 * FileCopyFtp.cc: use the new virtual methods instead of ptr casting.
2012 * FileSetOutput.cc, FileSetOutput.h: (FileSetOutput::parse_res) new
2013 method.
2014 * GetJob.cc, GetJob.h: use Ref and new FileCopyPeerFDStream ctor.
2015 * SMTask.cc, SMTask.h: fixed Ref assignment; more info in PrintTasks.
2016 * commands.cc, complete.cc: use FileSetOutput::parse_res.
2017 * pgetJob.cc, pgetJob.h: use new FileCopyPeerFDStream ctor.
2018 * CatJob.cc, CatJob.h, FileCopyOutputJob.cc: use JobRef; pass const ref to JobRef.
2019 * FileCopyOutputJob.h, FileCopy.h, Makefile.am: split off FileCopyOutputJob.h.
2020
2021 2007-04-13 Alexander V. Lukyanov <[email protected]>
2022
2023 * Ref.h: (Ref) new template class.
2024 * SMTask.h: (SMTaskRef) new template class.
2025 * Job.h: (JobRef) new template class.
2026 * CatJob.cc, CatJob.h, CmdExec.cc, CmdExec.h, CopyJob.cc, CopyJob.h,
2027 FileSetOutput.cc, FileSetOutput.h, FindJob.cc, FindJob.h, Job.cc,
2028 Job.h, MirrorJob.cc, MirrorJob.h, OutputJob.cc, OutputJob.h,
2029 TreatFileJob.cc, TreatFileJob.h, buffer.cc, buffer.h, commands.cc,
2030 echoJob.cc, echoJob.h, mgetJob.cc, mgetJob.h, mvJob.cc, mvJob.h,
2031 pgetJob.cc, pgetJob.h: use Ref.
2032
2033 2007-04-12 Alexander V. Lukyanov <[email protected]>
2034
2035 * HttpDir.cc, HttpDir.h, LocalAccess.cc, LsCache.cc, LsCache.h: use xstring.
2036 * xstring.cc, xstring.h: make vstrlen do va_copy.
2037
2038 2007-04-11 Alexander V. Lukyanov <[email protected]>
2039
2040 * CmdExec.cc, CmdExec.h, parsecmd.cc: use Buffer for cmd_buf;
2041 use xstring where needed; fix FIXME in WriteCmds and ReadCmds;
2042 * buffer.cc, buffer.h: make Get const; (Prepend) new method.
2043 * MirrorJob.cc, MirrorJob.h, PatternSet.cc, PatternSet.h,
2044 PtyShell.cc, PtyShell.h, commands.cc, lftp_ssl.cc, lftp_ssl.h:
2045 use xstring.
2046 * ArgV.h: (CombineCmd) new method.
2047 * CmdExec.cc, CmdExec.h, CopyJob.cc, CopyJob.h, DummyProto.cc,
2048 DummyProto.h, FileCopy.cc, FileCopy.h, FileGlob.cc, FileGlob.h,
2049 Filter.cc, Filter.h, FindJob.cc, FindJob.h, FindJobDu.cc,
2050 FindJobDu.h, Fish.cc, FtpDirList.cc, FtpDirList.h, GetFileInfo.cc,
2051 GetFileInfo.h, GetJob.cc, GetJob.h, LocalDir.cc, LocalDir.h,
2052 PtyShell.cc, alias.cc, alias.h, bookmark.cc, bookmark.h, commands.cc,
2053 complete.cc, ftpclass.cc, history.cc, history.h, lftp.cc,
2054 mgetJob.cc, mgetJob.h: use xstring.
2055 * lftp_rl.c, lftp_rl.h: const in filename_dequoting_function.
2056 * resource.cc: const mismatch.
2057 * GetPass.cc, GetPass.h: use file descriptor instead of FILE;
2058 use xstring; return const char*.
2059 * ColumnOutput.cc, ColumnOutput.h: use StringSet, xstring.
2060 * xstring.cc, xstring.h: (chomp, rtrim) new methods.
2061
2062 2007-04-09 Alexander V. Lukyanov <[email protected]>
2063
2064 * xstring.h: (eq, ne, xstring0::length) new methods.
2065 * OutputJob.cc, OutputJob.h: use xstring.
2066
2067 2007-04-06 Alexander V. Lukyanov <[email protected]>
2068
2069 * xstring.cc, xstring.h: allow truncate on unset xstrings; change
2070 truncate_at so that it works on binary strings.
2071 * FileSetOutput.cc, FileSetOutput.h, commands.cc: use xstring;
2072 disable FileSetOutput cloning and assignment.
2073 * xstring.h: (xstring_ca) new class for allocated strings.
2074 * FileSetOutput.cc, SFtp.cc: use it.
2075 * CmdExec.cc, CmdExec.h: use xstring; make unquote return result length.
2076 * QueueFeeder.cc, QueueFeeder.h, StatusLine.cc: use xstring.
2077 * SleepJob.cc: use xstring_ca.
2078 * CmdExec.cc: don't add extra \001 for readline prompt.
2079
2080 2007-04-05 Alexander V. Lukyanov <[email protected]>
2081
2082 * xstring.h: disable cloning of xstring*.
2083 * FindJob.cc, Http.cc, keyvalue.cc: avoid unnecessary xstring cloning.
2084 * FileAccess.h, FileCopy.cc, FileCopy.h, FileSet.cc, FileSet.h,
2085 FileSetOutput.cc, Filter.cc, Filter.h, MirrorJob.cc, NetAccess.cc:
2086 (FileTimestamp) new struct; use it where needed; submit even
2087 imprecise timestamp from MirrorJob to CopyJob.
2088
2089 2007-04-04 Alexander V. Lukyanov <[email protected]>
2090
2091 * keyvalue.cc: truncate key and value before reading next record.
2092
2093 2007-04-02 Alexander V. Lukyanov <[email protected]>
2094
2095 * misc.cc: use xstring.
2096
2097 2007-03-30 Alexander V. Lukyanov <[email protected]>
2098
2099 * ChmodJob.cc, TreatFileJob.cc: FileInfo::name is now xstring -
2100 use get().
2101 * xstring.cc, xstring.h: move get_non_const to xstring0;
2102 get rid of AUTO len (unused); make get_space public and make it
2103 take granularity as argument; (set_length) new method.
2104 * Http.cc: (LogErrorText) get rid of unused code.
2105 * FileSet.h: use xstring_c for symlink.
2106 * xstring.cc: allow set_allocated(0); simplify truncate.
2107 * FileCopy.cc, FileCopy.h, FileCopyOutputJob.cc, buffer.cc,
2108 buffer.h, buffer_ssl.cc, Resolver.cc: use xstring as base for Buffer;
2109 in_buffer is gone; ZeroTerminate is too.
2110 * xstring.cc, xstring.h: append(char) new method; (borrow) new method.
2111 * keyvalue.cc, keyvalue.h: use xstring.
2112
2113 2007-03-29 Alexander V. Lukyanov <[email protected]>
2114
2115 * xstring.cc, xstring.h: (set_substr) new method.
2116 * FileGlob.cc, FileSet.cc, FileSet.h, MirrorJob.cc, NetAccess.cc,
2117 mgetJob.cc, mgetJob.h, rmJob.cc: use xstring in FileInfo.
2118 * xstring.cc: support overlapping set.
2119 * xstring.h: add compact variant of xstring (xstring_c).
2120 * Resolver.cc, Resolver.h: use xstring_c in cache.
2121 * xstring.h: add xstring_c::truncate.
2122 * xmalloc.cc: allow overlapped xstrset.
2123 * FileSetOutput.cc, FileSetOutput.h, ResMgr.cc, ResMgr.h, resource.cc:
2124 use xstring_c for resources.
2125
2126 2007-03-28 Alexander V. Lukyanov <[email protected]>
2127
2128 * SleepJob.cc, SleepJob.h: use xstring.
2129 * xstring.cc, xstring.h: add len member; support binary strings.
2130 * SFtp.cc, SFtp.h: use xstring.
2131 * Resolver.cc, Resolver.h: use xstring.
2132
2133 2007-03-26 Alexander V. Lukyanov <[email protected]>
2134
2135 * LocalAccess.cc: prevent double-delete of args in LocalDirList
2136 (reported by Liu Yubao <[email protected]>).
2137 * FileAccess.cc, commands.cc: cosmetics.
2138 * pgetJob.cc: fixed core dump when target directory is not writable
2139 (reported by Justin Piszcz <[email protected]>).
2140
2141 2007-03-26 Alexander V. Lukyanov <[email protected]>
2142
2143 * CmdExec.cc, Job.cc, Job.h, MirrorJob.cc, SleepJob.cc, commands.cc,
2144 mgetJob.cc, pgetJob.cc: use xstring for cmdline.
2145
2146 2007-03-23 Alexander V. Lukyanov <[email protected]>
2147
2148 * Fish.cc, Fish.h: use StringSet for path_queue.
2149 * StringSet.cc, StringSet.h: (LastString, Pop) new methods.
2150 * NetRC.cc, NetRC.h: use xstring.
2151 * commands.cc: fixes for xstring in NetRC.
2152 * pgetJob.cc, pgetJob.h: use xstring.
2153
2154 2007-03-13 Alexander V. Lukyanov <[email protected]>
2155
2156 * ftpclass.cc, ftpclass.h: change line to xstring; drop line_len;
2157 improve <NUL> handling; require <CR><NL> to end line.
2158
2159 2007-03-13 Alexander V. Lukyanov <[email protected]>
2160
2161 * xstring.cc, xstring.h, Makefile.am, xmalloc.h: split off xstring.
2162 * FileAccess.cc, FileAccess.h, Fish.cc, Fish.h, Http.cc, Http.h,
2163 LocalAccess.cc, NetAccess.cc, NetAccess.h, SFtp.cc, ftpclass.cc,
2164 ftpclass.h: use xstring.
2165
2166 2007-03-09 Alexander V. Lukyanov <[email protected]>
2167
2168 * misc.h: don't delete the object in ListDel.
2169
2170 2007-03-06 Alexander V. Lukyanov <[email protected]>
2171
2172 * FileCopy.cc: tell target to find file size before requesting
2173 source to get file information - this avoids HEAD when doing
2174 `get -c' to local destination.
2175 * Http.cc, Http.h: try to log error text if it is already available.
2176 * HttpDir.cc, misc.cc, misc.h: move remove_tags to misc.
2177 * buffer.cc, buffer.h: (ZeroTerminate) new method.
2178 * xmalloc.h: (xstring) new class.
2179
2180 2007-02-27 Damon Harper <[email protected]>
2181
2182 * MirrorJob.cc, MirrorJob.h: new option --only-existing.
2183
2184 2007-02-27 Alexander V. Lukyanov <[email protected]>
2185
2186 * CmdExec.cc, FileAccess.cc, FileCopy.cc, Filter.cc,
2187 FindJob.cc, Fish.cc, GetFileInfo.cc, GetPass.cc, Http.cc,
2188 LocalAccess.cc, MirrorJob.cc, NetAccess.cc, OutputJob.cc,
2189 PtyShell.cc, QueueFeeder.cc, ResMgr.cc, SFtp.cc, StringSet.cc,
2190 alias.cc, buffer.cc, commands.cc, lftp.cc, misc.cc: use xstrset
2191 to assign dynamic strings.
2192 * commands.cc: -p option has priority over the url.
2193
2194 2007-01-11 Alexander V. Lukyanov <[email protected]>
2195
2196 * ftpclass.cc: use default closure feature of ResClient;
2197 clear ls cache when ftp:list-options changes.
2198 * xmalloc.cc, xmalloc.h: (xstrset) new function.
2199 * ftpclass.cc: use xstrset.
2200
2201 2007-01-06 Alexander V. Lukyanov <[email protected]>
2202
2203 * misc.cc, misc.h, Fish.cc, Fish.h: move shell_encode to misc.cc.
2204 * MirrorJob.cc: use shell_encode to quote properly file names for shell;
2205 this fixes potential security vulnerability when one generates a
2206 script with mirror --script and then executes it.
2207
2208 2006-12-27 Alexander V. Lukyanov <[email protected]>
2209
2210 * Cache.h: (Cache::AddCacheEntry) new method.
2211 * Resolver.cc, Resolver.h, LsCache.cc, LsCache.h: use it.
2212 * ResMgr.cc, ResMgr.h: (ResClient) new base class for resource users.
2213 * FileAccess.cc, FileAccess.h, Resolver.h, Resolver.cc,
2214 Speedometer.cc, Speedometer.h: use it.
2215 * misc.h: add list macros.
2216
2217 2006-12-18 Alexander V. Lukyanov <[email protected]>
2218
2219 * Timer.cc, Timer.h: reset timer when creating it from TimeInterval,
2220 this fixes sleep command; (re_set) forced resetting; use it.
2221
2222 2006-12-14 Alexander V. Lukyanov <[email protected]>
2223
2224 * commands.cc: remove obsolete note about infinite cache size.
2225
2226 2006-12-10 Alexander V. Lukyanov <[email protected]>
2227
2228 * SMTask.cc, SMTask.h: eliminate sched_total and the need to merge
2229 multiple block vectors; tasks set the global SMTask::block directly.
2230 * Job.cc: (WaitDone) make it more robust - protect from deleting the
2231 jobs we wait for.
2232
2233 2006-12-06 Alexander V. Lukyanov <[email protected]>
2234
2235 * ftpclass.cc: reset timeout_timer when waiting for transfer
2236 confirmation; reset it when sending a command after some idle
2237 time; (Read) fixed check for null iobuf.
2238 * Timer.cc: (Reset) reset only to a later time.
2239
2240 2006-11-28 Alexander V. Lukyanov <[email protected]>
2241
2242 * MirrorJob.cc, MirrorJob.h: (--on-change) new option.
2243 * log.cc, log.h: optimize Log::Format for when the message is not
2244 going to be output.
2245 * buffer.cc, buffer.h, ftpclass.cc, ftpclass.h: (DataTranslator) new
2246 class; use it in DirectedBuffer; (DataRecoder) new class for charset
2247 conversion; use DataTranslator in IOBufferTelnet; skip 3-byte telnet
2248 commands; optimize buffer data movement.
2249
2250 2006-10-10 Alexander V. Lukyanov <[email protected]>
2251
2252 * CopyJob.cc: clear and reset cp when a sub-job finishes (fixes
2253 coredump in mget).
2254
2255 2006-09-27 Alexander V. Lukyanov <[email protected]>
2256
2257 * buffer.cc: use Delete on SMTask derivative Speedometer.
2258 * SMTask.cc: add debug print when deleting running task.
2259 * FileAccess.cc: fixed coredump when path.url is null after Change.
2260 * CopyJob.cc: Delete done CopyJob - fix a leak.
2261
2262 2006-08-29 Alexander V. Lukyanov <[email protected]>
2263
2264 * FileSet.cc, FileSet.h, MirrorJob.cc, MirrorJob.h, resource.cc:
2265 new mirror option --skip-noaccess and setting mirror:skip-noaccess.
2266 (FileSet::ExcludeUnaccessible) new method.
2267
2268 2006-08-22 Alexander V. Lukyanov <[email protected]>
2269
2270 * CmdExec.cc, CmdExec.h, QueueFeeder.h, commands.cc: add settings
2271 cmd:parallel and cmd:queue-parallel; backout QueueFeeder changes;
2272 drop queue --parallel option.
2273
2274 2006-08-22 Markus Schoder <[email protected]>
2275
2276 * CmdExec.cc, commands.cc, QueueFeeder.h: add queue --parallel option.
2277
2278 2006-08-22 Alexander V. Lukyanov <[email protected]>
2279
2280 * SMTask.h: drop MakeRef macro, it makes trouble with multiple arg evaluation.
2281
2282 2006-08-08 Alexander V. Lukyanov <[email protected]>
2283
2284 * MirrorJob.cc, resource.cc: add mirror:include-regex setting.
2285
2286 2006-08-07 Alexander V. Lukyanov <[email protected]>
2287
2288 * FileSetOutput.cc, FileSetOutput.h, commands.cc,
2289 FindJobDu.cc, FindJobDu.h: update for new human_readable; use enum
2290 for long options.
2291 * MirrorJob.cc: use enum for long options.
2292 * ftpclass.cc: load ssl keys for data connection.
2293 * resource.cc: new setting ftp:ssl-data-use-keys.
2294
2295 2006-08-04 Alexander V. Lukyanov <[email protected]>
2296
2297 * ftpclass.cc: disable ssl on errors if not forced.
2298 * Timer.cc: fix timer chain head corruption.
2299
2300 2006-08-02 Daniel Black <[email protected]>
2301
2302 * Makefile.am: fix linking with modules and socks.
2303 * CmdExec.cc, CmdExec.h, ConnectionSlot.cc, Job.cc: save url returned
2304 from GetConnectURL from overwriting by next GetConnectURL call.
2305 * lftp_ssl.cc: don't free cred if it was not allocated.
2306
2307 2006-08-01 Pascal Bleser <[email protected]>
2308
2309 * Makefile.am: fixed install with modules.
2310
2311 2006-07-28 Alexander V. Lukyanov <[email protected]>
2312
2313 * HttpDir.cc: fixed proto comparision when using hftp with ftp url scheme.
2314
2315 2006-07-27 Alexander V. Lukyanov <[email protected]>
2316
2317 * FileSet.cc, FileSet.h: optimize FileSet::Merge.
2318 * NetAccess.cc: make sure FileSet is properly sorted after tilde
2319 transformation.
2320
2321 2006-07-26 Alexander V. Lukyanov <[email protected]>
2322
2323 * Http.cc: change use_propfind_now in Reconfig.
2324 * FileAccess.cc: add references to classes which are used in modules,
2325 this fixes static compilation.
2326 * lftp.cc: remove DirColors reference (in FileAccess.cc now).
2327 * Makefile.am: better use of libtool capabilities.
2328
2329 2006-07-25 Alexander V. Lukyanov <[email protected]>
2330
2331 * MirrorJob.cc: use timestamp only if it's precise.
2332 * HttpDir.cc: fix month off-by-one.
2333 * FileCopy.cc: use SetSize so that seek_pos gets changed from FILE_END;
2334 debug state changes.
2335 * Makefile.am: use liblib.la; don't use lib for includes.
2336
2337 2006-07-22 Nix <[email protected]>
2338
2339 Adapt to synch with gnulib-20060722.
2340
2341 * ChmodJob.cc: filemode.h needs CDECL guards.
2342 * ChmodJob.cc (ChmodJob): mode_free() is gone, just free() now.
2343 * ChmodJob.cc (GetMode): Adjust mode_adjust() prototype, keeping
2344 current behaviour by deactivating umasking (which is meaningless
2345 on remote systems in any case).
2346 * ChmodJob.cc (CurrentFinished): mode_string() is now named strmode().
2347 * ChmodJob.cc (RelativeMode): mode_change is now an array, not a
2348 linked list.
2349 * ColumnOutput.cc (append): mbswidth()'s flags have flipped.
2350 * FindJobDu.cc (print_size): human_readable() and human_readable_inexact()
2351 have merged.
2352 * FileSetOutput.cc: filemode.h needs CDECL guards.
2353 * FileSetOutput.cc (print): human_readable(), mode_string() and mbswidth
2354 flag changes as above.
2355 * MirrorJob.cc (ShowRunStatus): mbswidth flag changes.
2356 * StatusLine.cc (update): Likewise.
2357 * commands.cc (CMD): Likewise.
2358 * misc.cc (squeeze_file_name): Likewise.
2359
2360 * filemode.c: Synched with gnulib; moved to lib/.
2361 * human.c: Likewise.
2362 * modechange.c: Likewise.
2363 * xstrtol.c: Likewise.
2364 * xstrtoul.c: Likewise.
2365
2366 * mbswidth.c: Synched with gnulib.
2367 * mbswidth.h: New, from gnulib.
2368 * wcwidth.h: Likewise.
2369
2370 * Makefile.am (liblftp_tasks_la_SOURCES): Remove stuff that's
2371 moved to lib/.
2372 * Makefile.am (liblftp_jobs_la_SOURCES): This depends on
2373 liblftp-tasks.la.
2374 * Makefile.am (INCLUDES): Include from lib/.
2375
2376 2006-07-18 Alexander V. Lukyanov <[email protected]>
2377
2378 * lftp.cc: add --user and --password options for open.
2379
2380 2006-07-10 Alexander V. Lukyanov <[email protected]>
2381
2382 * commands.cc: use ascii mode for ls, as before.
2383
2384 2006-07-07 Alexander V. Lukyanov <[email protected]>
2385
2386 * commands.cc: update help for pget.
2387
2388 2006-07-06 Alexander V. Lukyanov <[email protected]>
2389
2390 * lftp_ssl.cc, lftp_ssl.h, ftpclass.cc, Http.cc: don't load keys/certs
2391 for ftp data connection.
2392
2393 2006-07-05 Alexander V. Lukyanov <[email protected]>
2394
2395 * SleepJob.cc: disable option reordering in repeat; small cleanup.
2396 * pgetJob.cc: fix a coredump.
2397
2398 2006-07-04 Alexander V. Lukyanov <[email protected]>
2399
2400 * FileAccess.cc, FileAccess.h, Http.cc: (SetLimit) new method;
2401 (UNKNOWN_POS) new constant; move FILE_END here.
2402 * FileCopy.cc, FileCopy.h: use SetLimit; move FILE_END to FileAccess.h.
2403
2404 2006-07-03 Alexander V. Lukyanov <[email protected]>
2405
2406 * CopyJob.h: (SetRangeLimit) new method.
2407 * FileCopy.h: (SetRangeLimit) new method; make SetRange seek when needed.
2408 * pgetJob.cc, pgetJob.h: add explicit start0 and limit0 members for chunk 0;
2409 read position for chunk 0 before trying to fetch it (when pget_cont).
2410
2411 2006-06-30 Alexander V. Lukyanov <[email protected]>
2412
2413 * ResMgr.cc, ResMgr.h, resource.cc, Cache.h: rename ResDecl to ResType;
2414 make ResDecl a derived from ResType; make resources a static array
2415 of structures (to save on constructors); make ResDecls class to
2416 register bulk of ResType's.
2417 * GetJob.cc, GetJob.h: add truncate_target_first flag (for pget).
2418 * pgetJob.cc, pgetJob.h, MirrorJob.cc, commands.cc: support pget -c.
2419
2420 2006-06-28 Alexander V. Lukyanov <[email protected]>
2421
2422 * GetJob.cc, GetJob.h, pgetJob.cc, pgetJob.h: simplify copy peer
2423 creation; pass url from pget to CreateCopyPeer (this fixes
2424 pget http://...?args).
2425 * resource.cc, ftpclass.cc: add use-allo setting.
2426
2427 2006-06-26 Alexander V. Lukyanov <[email protected]>
2428
2429 * ftpclass.cc, FileCopy.cc, FileCopy.h: support for ALLO command; get file size
2430 for local sources in any case.
2431 * Fish.cc: use GNU head if available for upload; use a larger bs for dd in upload
2432 and count characters with wc -c (a great speed up for both cases). A fixed
2433 version of script by Dmitry Butskoj <[email protected]> was used (from mc).
2434
2435 2006-06-19 Alexander V. Lukyanov <[email protected]>
2436
2437 * StatusLine.cc: handle prev_line==0 case (fixes coredump).
2438
2439 2006-06-16 Alexander V. Lukyanov <[email protected]>
2440
2441 * SleepJob.cc, SleepJob.h: new options for repeat (--while-ok, --until-ok).
2442
2443 2006-06-15 Alexander V. Lukyanov <[email protected]>
2444
2445 * SleepJob.cc, SleepJob.h, commands.cc: new options for repeat (--count, --delay).
2446 * NetAccess.cc, NetAccess.h, Http.cc: drop two arg SetSocketBuffer and
2447 SetSocketMaxseg methods.
2448 * ftpclass.cc, ftpclass.h, resource.cc: move abor_close_timer to Ftp::Connection;
2449 init it from resource ftp:abor-max-wait; read and discard data from aborted
2450 data connection.
2451
2452 2006-06-14 Alexander V. Lukyanov <[email protected]>
2453
2454 * lftp.cc: use TimeInterval two arg ctor.
2455 * ftpclass.cc, ftpclass.h: use abor_close_timer instead of abor_time;
2456 use Time::Passed and TimeDiff vs int cmp.
2457 * Timer.cc, Timer.h: new method IsInfty; reset event when start==now.
2458 * TimeDate.cc, TimeDate.h: fix normalize for negative msec;
2459 inline lt; new method Time::Passed; comparision of TimeDiff with
2460 int seconds.
2461 * SleepJob.cc, SleepJob.h: use Timer.
2462 * commands.cc: don't use Ascii for quote, this fixes `quote POST'.
2463
2464 2006-06-13 Alexander V. Lukyanov <[email protected]>
2465
2466 * DummyProto.cc, DummyProto.h, : const everywhere.
2467 * FileAccess.cc, FileAccess.h: consts; drop url member; new cache; ClassCleanup.
2468 * FileCopy.cc, FileCopy.h, Fish.cc, Fish.h, FtpDirList.cc,
2469 FtpListInfo.cc, GetFileInfo.cc, Http.cc, Http.h, HttpDir.cc,
2470 Job.cc, LocalAccess.cc, LocalAccess.h, NetAccess.cc, NetAccess.h,
2471 SFtp.cc, SFtp.h, commands.cc, ftpclass.cc, ftpclass.h: const; new cache.
2472 * Cache.cc, Cache.h: new files; base Cache class.
2473 * LsCache.cc, LsCache.h, Resolver.cc, Resolver.h: use base Cache class.
2474 * Makefile.am: add Cache files.
2475 * ResMgr.cc, ResMgr.h: consts.
2476 * Timer.cc, Timer.h: add ctor from resource/closure; drop iterators.
2477 * lftp.cc: call FileAccess::ClassCleanup; ajust max tasks left.
2478
2479 2006-06-09 Alexander V. Lukyanov <[email protected]>
2480
2481 * Fish.cc, FtpDirList.cc, HttpDir.cc, SFtp.cc, NetAccess.cc: cache is now enabled per host.
2482 * LsCache.cc, LsCache.h: derive LsCache from Timer; drop expire_helper.
2483 * ResMgr.cc, ResMgr.h: add ResMgr::SimpleQuery(ResDecl); optimize queries.
2484 * SMTask.cc, SMTask.h: add PrintTasks debug method.
2485 * TimeDate.h: add TimeInterval comparisions.
2486 * Timer.cc, Timer.h: add Iterate* methods; add TimeLeft method.
2487 * commands.cc: call PrintTasks from .tasks command.
2488 * FileAccess.cc, FileAccess.h, NetAccess.cc, NetAccess.h: make Connect
2489 and ConnectVerify non-virtual; init timers in ResetLocationData.
2490 * Timer.cc, Timer.h: add ResetDelayed method; drop Reset(time_t).
2491 * buffer.h: make event_time of type Time.
2492 * ftpclass.cc, ftpclass.h: use Timer for STAT timing.
2493
2494 2006-05-26 Alexander V. Lukyanov <[email protected]>
2495
2496 * FileCopy.cc: use correct ctor of Timer.
2497 * IdNameCache.cc, IdNameCache.h: don't use Delete for Timer.
2498 * SMTask.cc: use Timer timeout and call Timer::ReconfigAll.
2499 * TimeDate.h: drop unneeded operators.
2500 * Timer.cc, Timer.h: don't inherit from SMTask for efficiency.
2501 * ftpclass.cc: don't call Timer::Reconfig - not needed now.
2502
2503 2006-05-26 Alexander V. Lukyanov <[email protected]>
2504
2505 * FileAccess.cc, FileAccess.h: move Poll and CheckHangup to NetAccess;
2506 drop event_time member and BumpEventTime method.
2507 * Fish.cc, Http.cc, SFtp.cc, ftpclass.cc, ftpclass.h: use
2508 timeout_timer.Reset instead of BumpEventTime.
2509 * NetAccess.cc, NetAccess.h: drop timeout member; add timeout_timer;
2510 drop duplicate member retries (fixes a bug).
2511 * TimeDate.h: make time_t operator const.
2512 * Timer.cc, Timer.h: allow Reset from Time or Timer; reset only to a
2513 later time.
2514
2515 2006-05-25 Alexander V. Lukyanov <[email protected]>
2516
2517 * Fish.cc, Http.cc, NetAccess.cc, NetAccess.h, Resolver.cc, Resolver.h,
2518 SFtp.cc, ftpclass.cc, ftpclass.h: use Timer for net:idle, dns:fatal-timeout.
2519 * ResMgr.h, TimeDate.h: add default TimeInterval{R,} ctors.
2520 * LsCache.cc: use TimeIntervalR to convert string to TimeInterval.
2521 * Timer.h, Timer.cc: add const; new methods GetLastSetting, TimePassed,
2522 TimeRemains.
2523 * misc.h: move MINUTE, HOUR, DAY to TimeDate.h.
2524 * resource.cc: change net:idle format to TimeInterval.
2525 * SleepJob.cc: use SMTask::now.
2526 * SMTask.cc, SMTask.h, lftp.cc: use TimeInterval and Timer in RollAll.
2527 * Timer.cc, Timer.h: use TimeInterval in Set.
2528
2529 2006-05-24 Alexander V. Lukyanov <[email protected]>
2530
2531 * CmdExec.cc, FileSetOutput.cc, Fish.cc, Http.cc, Resolver.cc,
2532 SFtp.cc, SMTask.cc, ftpclass.cc: explicitly request unix time.
2533 * LsCache.cc: use numeric TimeInterval ctor.
2534 * ResMgr.cc, ResMgr.h: split off TimeIntervalR from TimeInterval;
2535 move TimeInterval to TimeDate.{cc,h}.
2536 * Resolver.cc: use TimeInterval::Finished method.
2537 * SleepJob.cc, SleepJob.h: use Time; TimeInterval::GetTimeout.
2538 * Speedometer.cc: explicitly create TimeDiff.
2539 * TimeDate.cc, TimeDate.h: optimize time_tuple and Time methods;
2540 move TimeInterval here.
2541 * Timer.cc: use TimeIntervalR.
2542 * ftpclass.cc: close aborted data connection in few seconds after ABOR;
2543 don't use ABOR just after another command.
2544 * ftpclass.h: add abor_time and last_cmd_time members.
2545
2546 2006-05-19 Alexander V. Lukyanov <[email protected]>
2547
2548 * CmdExec.cc: fixed dyn_cmd_table initialization - last static command
2549 was overwritten due to off-by-one error.
2550
2551 2006-05-13 Alexander V. Lukyanov <[email protected]>
2552
2553 * Fish.cc, SFtp.cc, resource.cc: add support for recoding in fish
2554 and sftp (version<4); new settings fish:charset, sftp:charset.
2555
2556 2006-05-03 Alexander V. Lukyanov <[email protected]>
2557
2558 * ftpclass.cc: fixed compilation without ssl.
2559 * SMTask.cc, SMTask.h: fix compilation with some compilers (e.g. sun).
2560 * commands.cc: support auto-rename in get1.
2561 * FileCopy.h: add AutoRename method.
2562 * Http.cc: fixed extraction of suggested file name; fixed decoding
2563 of chunked transfers when content-length is explicitly known.
2564
2565 2006-04-25 Alexander V. Lukyanov <[email protected]>
2566
2567 * commands.cc: add zlib version; wrap library line nicely.
2568
2569 2006-04-24 Alexander V. Lukyanov <[email protected]>
2570
2571 * ftpclass.cc: init ssl layer after connection through http proxy is
2572 established.
2573 * commands.cc: pass port to FileAccess::New along with hostname, this
2574 fixes opening sites with explicit port (it could either use default
2575 port or spin).
2576
2577 2006-04-19 Alexander V. Lukyanov <[email protected]>
2578
2579 * ArgV.cc, ArgV.h: include getopt.h in the header.
2580 * CmdExec.cc: add defaults for session and cwd when creating CmdExec.
2581 * FileAccess.cc, FileAccess.h: make sure classes are inited; add port
2582 argument for New method; do Connect in New.
2583 * Job.cc, Job.h: add WaitDone method.
2584 * MirrorJob.cc: no need to include getopt.h.
2585 * ResMgr.h, resource.cc: add class_inited static member.
2586 * commands.cc: move history command to lftp.cc.
2587 * ftpclass.cc: handle PRET errors.
2588 * getdate.y: use plain free.
2589 * lftp.cc: move history here; ClassInit's are called automatically now;
2590 use Job::WaitDone.
2591 * log.h: add ShowNothing method.
2592 * example1.cc, example2.cc: fixed for new interfaces.
2593 * example1-cmd.cc: new example.
2594 * example-module1.cc: new example.
2595
2596 2006-04-07 Alexander V. Lukyanov <[email protected]>
2597
2598 * SFtp.cc, Fish.cc: send password twice if needed, it handles the case
2599 of a protected private key.
2600
2601 2006-04-05 Alexander V. Lukyanov <[email protected]>
2602
2603 * FileCopyOutputJob.cc: don't return MOVED if nothing changed, this
2604 fixes rare spinning.
2605 * CmdExec.cc, CmdExec.h, lftp.cc: rename top_exec to CmdExec::top;
2606 add CmdExec::Exit method.
2607 * Job.cc: don't show status of deleted jobs.
2608 * commands.cc: add exit options: top, kill; accept exit code along
2609 with options.
2610
2611 2006-03-31 Alexander V. Lukyanov <[email protected]>
2612
2613 * lftp.cc: get exit_code before AtExit, so it is not changed by
2614 cmd:at-exit commands.
2615 * Http.cc: workaround some servers' problem with size>2G.
2616
2617 2006-03-30 Alexander V. Lukyanov <[email protected]>
2618
2619 * lftp_ssl.cc: make scheduler run after ssl handshake - this fixes
2620 ftp upload hang when the file is empty.
2621
2622 2006-03-15 Alexander V. Lukyanov <[email protected]>
2623
2624 * MirrorJob.cc, resource.cc: add mirror:dereference setting,
2625 --no-dereference, --perms options.
2626
2627 2006-03-15 Alexander V. Lukyanov <[email protected]>
2628
2629 * FindJob.cc, FindJob.h: add PROCESSING state, so Chdir
2630 is not called continuously.
2631 * LsCache.cc: use Path::Change instead of Chdir.
2632
2633 2006-03-13 Alexander V. Lukyanov <[email protected]>
2634
2635 * FileCopy.cc: don't create target file if source does not exist.
2636 * Job.cc: don't delete killed job right not; CollectGarbage after
2637 KillAll or Cleanup, don't delete the jobs in loop.
2638 * Job.h: make Kill and KillAll static; add Cleanup method.
2639 * commands.cc: show done jobs before exit.
2640 * lftp.cc: do Job::Cleanup before termination.
2641 * resource.cc: change http:use-propfind default to no.
2642
2643 2006-02-16 Alexander V. Lukyanov <[email protected]>
2644
2645 * FileAccess.cc, FileAccess.h: Close session in Chdir, VerifyPath
2646 (fixed coredump).
2647 * LsCache.cc: avoid Chdir, as it Closes session.
2648 * FileCopy.cc: use SMTask ref count.
2649 * SMTask.cc, SMTask.h: (ref_count) new member.
2650 * ftpclass.cc: remove unneeded abort().
2651
2652 2006-02-14 Alexander V. Lukyanov <[email protected]>
2653
2654 * commands.cc: fixed condition when exact time is needed for cls.
2655
2656 2006-02-08 Alexander V. Lukyanov <[email protected]>
2657
2658 * commands.cc: fixed a stupid bug with cls (time-style).
2659 * resource.cc: assign env TIME_STYLE to cmd:time-style.
2660
2661 2006-02-06 Alexander V. Lukyanov <[email protected]>
2662
2663 * FileSetOutput.cc, commands.cc: add cmd:time-style setting.
2664
2665 2006-01-23 Alexander V. Lukyanov <[email protected]>
2666
2667 * Http.cc, Http.h: use PROPFIND for cd check before HEAD.
2668
2669 2006-01-15 Alexander V. Lukyanov <[email protected]>
2670
2671 * FileSetOutput.cc, FileSetOutput.h, commands.cc: add cls --time-style
2672 option.
2673
2674 2006-01-12 Alexander V. Lukyanov <[email protected]>
2675
2676 * complete.cc: fixed an abortion when cmd:remote-completion is false.
2677 * lftp_ssl.cc: don't do shutdown/bye, as it makes problems with CCC.
2678 * Makefile.am: use automake conditionals to select modules to build.
2679
2680 2005-12-28 Alexander V. Lukyanov <[email protected]>
2681
2682 * FileSet.cc, Filter.cc, Fish.cc, FtpListInfo.cc, Http.cc, HttpDir.cc,
2683 ftpclass.cc, keyvalue.cc: handle return values (fix warnings).
2684 * Makefile.am: install shared libs liblftp-tasks and liblftp-jobs;
2685 don't make static libs when not needed.
2686
2687 2005-12-27 Alexander V. Lukyanov <[email protected]>
2688
2689 * FileSet.cc, FtpListInfo.cc, bookmark.cc, ftpclass.cc, history.cc,
2690 misc.cc, netrc.cc, keyvalue.cc: handle return values (fix warnings).
2691 * ResMgr.cc, ResMgr.h: add TimeInterval::Set method.
2692 * Resolver.cc, resource.cc: add dns:max-retries setting; prefer
2693 getaddrinfo if available; change dns:fatal-timeout to TimeInterval type.
2694 * lftp_ssl.cc: treat GNUTLS_E_UNEXPECTED_PACKET_LENGTH as EOF indicator;
2695 output a warning when that error appears.
2696 * FileCopy.cc: try to put available data in case of `get' error;
2697 optimize line-buffering.
2698 * misc.cc, misc.h: (memrchr) new function.
2699 * ftpclass.cc, ftpclass.h: (Connection::CloseDataSocket) new method;
2700 close data socket in case of data connection error for the case
2701 when error handling is delayed.
2702
2703 2005-12-22 Alexander V. Lukyanov <[email protected]>
2704
2705 * commands.cc: add libiconv version to `version' output.
2706
2707 2005-12-15 Alexander V. Lukyanov <[email protected]>
2708
2709 * MirrorJob.cc, rmJob.h, commands.cc: don't remove directories
2710 recursively when NO_RECURSION flag is set; drop rmdirJob class;
2711 add rmJob::Rmdir method.
2712 * SMTask.h, LsCache.cc: (SMTask::DeleteLater) new method; use it.
2713
2714 2005-12-14 Alexander V. Lukyanov <[email protected]>
2715
2716 * commands.cc: fix netrc usage when no user name is given.
2717 * ftpclass.cc: flush cache when changing charset.
2718
2719 2005-12-08 Alexander V. Lukyanov <[email protected]>
2720
2721 * CmdExec.cc, commands.cc: show all queued commands on `queue' command;
2722 clear done jobs even if queue is stopped.
2723
2724 2005-12-04 Alexander V. Lukyanov <[email protected]>
2725
2726 * ResMgr.cc, ResMgr.h: support open ranges.
2727
2728 2005-12-02 Alexander V. Lukyanov <[email protected]>
2729
2730 * misc.cc: fix guess_year for month boundary.
2731 * ftpclass.cc: another fix for sun c++ compiler.
2732 * lftp_tinfo.cc: use termcap.h if available and no curses; fix usage of tgetstr.
2733
2734 2005-11-30 Alexander V. Lukyanov <[email protected]>
2735
2736 * MirrorJob.cc, MirrorJob.h: add --max-errors option.
2737 * SFtp.cc, SFtp.h: add support for sftp version 5 and 6.
2738
2739 2005-11-29 Alexander V. Lukyanov <[email protected]>
2740
2741 * CatJob.cc: use DEFAULT_PAGER.
2742 * FileCopy.cc, FileCopy.h: add suggested_filename member; copy it
2743 from get to put; add auto_rename member; prepare for automatic renaming.
2744 * ftpclass.cc: fix compilation with Sun comiler.
2745
2746 2005-11-22 Alexander V. Lukyanov <[email protected]>
2747
2748 * lftp_ssl.cc: set handshake_done for openssl - this fixes IOBufferSSL::Done().
2749
2750 2005-11-21 Alexander V. Lukyanov <[email protected]>
2751
2752 * FileSet.cc, FileSet.h: add new filtering modes - SubtractNewerThan,
2753 SubtractSizeOutside.
2754 * MirrorJob.cc, MirrorJob.h: add --size-range and --older-than options.
2755 * ResMgr.cc, ResMgr.h: change Range to use long long; fixed a bug with
2756 start/end reversed.
2757
2758 2005-11-18 Alexander V. Lukyanov <[email protected]>
2759
2760 * ftpclass.cc, ftpclass.h: allow PROT command to be used
2761 after CCC; issue PROT before CCC if all transfers has to be
2762 protected; open data ssl layer when PROT=P even after CCC.
2763
2764 2005-11-17 Alexander V. Lukyanov <[email protected]>
2765
2766 * ftpclass.cc, buffer.h: move doubling of IAC to proper level,
2767 that is do it in IOBufferTelnet.
2768
2769 2005-11-11 Alexander V. Lukyanov <[email protected]>
2770
2771 * ftpclass.cc: fixed handling of 334 reply to AUTH command.
2772
2773 2005-11-10 Alexander V. Lukyanov <[email protected]>
2774
2775 * ftpclass.cc: fix compilation without ssl.
2776 * lftp_rl.c: fix compilation with some compilers.
2777
2778 2005-11-08 Alexander V. Lukyanov <[email protected]>
2779
2780 * Resolver.cc: fix compilation when dn_expand is not declared (e.g. HP-UX).
2781 * commands.cc: fix `open -u user URL'.
2782 * ftpclass.cc, ftpclass.h, resource.cc: add ftp:ssl-use-ccc setting.
2783 * lftp_ssl.cc: shutdown ssl connection before destruction.
2784
2785 2005-10-25 Alexander V. Lukyanov <[email protected]>
2786
2787 * bookmarks.cc: (hide_password) move to url.
2788 * url.cc, url.h: (hide_password) move here; (remove_password) new
2789 function.
2790 * CmdExec.cc: use squeeze_file_name when showing cd status.
2791 * misc.cc: (squeeze_file_name) use url::remove_password.
2792 * buffer.cc, buffer_ssl.cc: don't return MOVED if we had eof already -
2793 this fixes a rare spinning.
2794
2795 2005-10-20 Alexander V. Lukyanov <[email protected]>
2796
2797 * ftpclass.cc: add workaround for proftpd resetting data connection
2798 when there is no files for NLST.
2799
2800 2005-10-19 Alexander V. Lukyanov <[email protected]>
2801
2802 * ftpclass.cc, Http.cc: check ReconnectAllowed() after host name
2803 resolving.
2804
2805 2005-10-18 Alexander V. Lukyanov <[email protected]>
2806
2807 * misc.cc: (get_lftp_home) return NULL if LFTP_HOME is empty.
2808 * history.cc, bookmark.cc, lftp_rl.c: don't read/write anything to
2809 user-specific files if get_lftp_home returns NULL.
2810 * FileAccess.cc: swap default SameSiteAs and SameLocationAs, this
2811 fixes loop in `open file:/path'.
2812 * SMTask.cc: (CollectGarbage) don't protect scan->next if it is NULL.
2813
2814 2005-10-18 Alexander V. Lukyanov <[email protected]>
2815
2816 * SMTask.cc, SMTask.h: do delete the task in Delete if not running;
2817 (CollectGarbage) protect next element in chain when deleting one task.
2818 * Job.cc: (BuryDoneJobs) avoid looping caused by Delete not
2819 always deleting the task.
2820 * misc.cc, misc.h: (get_lftp_home) new function.
2821 * bookmark.cc, commands.cc, history.cc, import-ncftp, import-netscape,
2822 lftp.cc, lftp_rl.c: use it (based on patch by Nikolai Weibull
2823 <[email protected]>).
2824
2825 2005-10-17 Alexander V. Lukyanov <[email protected]>
2826
2827 * SMTask.cc, SMTask.h: simplify Schedule; make garbage collection
2828 a separate function; don't delete the task in Delete, just mark
2829 it for GC.
2830 * ProcWait.cc: don't rely on Delete to delete the task, just mark
2831 it for deletion.
2832
2833 2005-10-17 Paul TBBle Hampson <[email protected]>
2834
2835 * lftp.cc: add missing initialization for add_newline.
2836
2837 2005-10-06 Alexander V. Lukyanov <[email protected]>
2838
2839 * commands.cc: use xfer:destination-directory only for get/mget,
2840 not for put/mput.
2841
2842 2005-10-06 Alexander V. Lukyanov <[email protected]>
2843
2844 * Job.cc: fixed another coredump with KillAll/Schedule.
2845
2846 2005-10-05 Alexander V. Lukyanov <[email protected]>
2847
2848 * Job.cc, Job.h: fixed core dump with KillAll.
2849 * HttpDir.cc: fixed prefix path removing.
2850
2851 2005-10-01 Alexander V. Lukyanov <[email protected]>
2852
2853 * ftpclass.cc: skip all spaces in FEAT reply to workaround some
2854 broken servers.
2855
2856 2005-09-30 Alexander V. Lukyanov <[email protected]>
2857
2858 * commands.cc, resource.cc: new setting xfer:destination-directory.
2859
2860 2005-09-27 Alexander V. Lukyanov <[email protected]>
2861
2862 * lftp_ssl.h: make handshake_done public.
2863 * lftp_ssl.cc: do_handshake even when writing no data.
2864 * buffer_ssl.cc, buffer_ssl.h: call ssl->write even with no data
2865 when handshake is not done yet; (Done) check handshake_done -
2866 this fixes a bug with uploading empty files.
2867 * ftpclass.cc: check buf->Done instead of Size.
2868
2869 2005-09-26 Alexander V. Lukyanov <[email protected]>
2870
2871 * Http.cc: simplify path combination; pre-encode %2F for hftp.
2872 * HttpDir.cc: ignore special and closing tags; move workaround for
2873 broken proxies to handle all links; specially handle empty paths.
2874 * FileAccess.cc: don't change url when going up .. - simply drop it.
2875
2876 2005-09-22 Alexander V. Lukyanov <[email protected]>
2877
2878 * commands.cc: fixed exit code of slot command.
2879
2880 2005-09-19 Alexander V. Lukyanov <[email protected]>
2881
2882 * MirrorJob.cc: don't add basename of source dir if target is slot:
2883 or bm: pseudo-url without trailing slash.
2884 * history.cc: decode only non-urls.
2885 * Http.cc: fix path combination (avoid double slash); use new_cwd->url
2886 when available.
2887
2888 2005-09-07 Alexander V. Lukyanov <[email protected]>
2889
2890 * lftp_ssl.cc: free ca_list and crl_list when an error happens while
2891 loading the certificates. This fixes a core dump.
2892
2893 2005-09-05 Alexander V. Lukyanov <[email protected]>
2894
2895 * commands.cc: fixed `open host.com/path'; fixed a coredump
2896 when a bookmark contained lots of quotable characters.
2897
2898 2005-08-12 Alexander V. Lukyanov <[email protected]>
2899
2900 * parsecmd.cc: return PARSE_AGAIN if the command ends with \0,
2901 which means it is incomplete.
2902 * CmdExec.cc: use now instead of time().
2903 * StatusLine.cc: use ShowN in Clear so that status line is not
2904 continuously cleared while executing scripts.
2905
2906 2005-08-09 Alexander V. Lukyanov <[email protected]>
2907
2908 * HttpDir.cc: don't try PROPFIND on a file to get file listing.
2909
2910 2005-08-05 Alexander V. Lukyanov <[email protected]>
2911
2912 * MirrorJob.cc, MirrorJob.h: fixed --loop without --delete (the loop
2913 was infinite if there were files to be deleted).
2914
2915 2005-08-04 Alexander V. Lukyanov <[email protected]>
2916
2917 * Http.cc, Fish.cc, SFtp.cc: fixed a hang-up in http (and possibly
2918 in other protocols).
2919 * FileAccess.cc, FileAccess.h: make Path::Change accept url-encoded
2920 path too.
2921 * CmdExec.cc: allow cd redirections to file.
2922
2923 2005-08-03 Alexander V. Lukyanov <[email protected]>
2924
2925 * CmdExec.cc, CmdExec.h: use FileAccess::Path for old_cwd.
2926 * ConnectionSlot.cc, ConnectionSlot.h, FindJob.cc, FindJob.h,
2927 GetFileInfo.cc, GetFileInfo.h, LsCache.cc: use FileAccess::Path.
2928 * FileAccess.cc, FileAccess.h: use cwd.url in GetFileURL; new method
2929 PathVerify; set new_cwd->url in SetFileURL; use Path for saved_cwd;
2930 modify url in Path::Change; unset is_file for some known directories;
2931 implement operator== for Path; new method ChdirAccept.
2932 * Http.cc: modify url generation using cwd.url and cwd.is_file.
2933 * commands.cc: modify cd and open to work with file URLs;
2934 fixed `source' command to return error code on bad files.
2935 * history.cc, history.h: save URL in cwd history if present;
2936 add single argument Set method.
2937 * url.cc, url.h: (dir_needs_trailing_slash) new function.
2938
2939 2005-07-18 Alexander V. Lukyanov <[email protected]>
2940
2941 * MirrorJob.cc: don't request date/size information when not needed.
2942
2943 2005-07-06 Alexander V. Lukyanov <[email protected]>
2944
2945 * SFtp.h: fixed a seg fault on empty directories.
2946 * LsCache.cc: use replace_value.
2947
2948 2005-07-04 Alexander V. Lukyanov <[email protected]>
2949
2950 * resource.cc: make inet6 the first af to lookup.
2951 * CmdExec.cc: add cmd:trace setting.
2952
2953 2005-06-29 Alexander V. Lukyanov <[email protected]>
2954
2955 * ftpclass.cc: accept AUTH and REST with no arguments in FEAT reply;
2956 use ftp:auto-passive-mode setting.
2957 * resource.cc: add ftp:auto-passive-mode setting.
2958 * MirrorJob.cc: workaround FreeBSD tcgetpgrp bug.
2959
2960 2005-06-28 Alexander V. Lukyanov <[email protected]>
2961
2962 * FileAccess.cc, FileAccess.h: (FileAccess::Path) new class.
2963 * Fish.cc, Http.cc, LocalAccess.cc, SFtp.cc, ftpclass.cc: use it properly.
2964 * FileAccess.cc: (Path::ExpandTilde) fix NULL dereference.
2965 * Fish.cc: use home_auto; call LsCache::SetDirectory.
2966
2967 2005-06-23 Alexander V. Lukyanov <[email protected]>
2968
2969 * bookmarks.cc, bookmarks.h, commands.cc: (bmk:auto-sync) new setting;
2970 (list-p, load, save) new bookmark subcommands.
2971
2972 2005-06-22 Alexander V. Lukyanov <[email protected]>
2973
2974 * FileCopy.cc, FileCopy.h: (GetURL) new method; don't delete peers too
2975 early, so info can be get from them after transfer.
2976 * CmdExec.cc, CopyJob.h, FileCopy.cc, FileCopy.h, FileSetOutput.cc,
2977 FileSetOutput.h, Fish.cc, Fish.h, FtpDirList.cc, FtpDirList.h,
2978 Http.cc, Http.h, HttpDir.cc, HttpDir.h, OutputJob.cc, OutputJob.h,
2979 SFtp.cc, SFtp.h, SMTask.cc, SMTask.h, buffer.cc, buffer.h,
2980 ftpclass.cc: (SuspendInternal, ResumeInternal, SuspendSlave,
2981 ResumeSlave) new methods to simplify suspend/resume with slave tasks;
2982 make suspend member private, use IsSuspended.
2983 * CopyJob.cc, CopyJob.h, Job.h, MirrorJob.cc: (GetBytesCount,
2984 GetTimeSpent) make them virtual; (FormatBytesTimeRate) new method;
2985 use it in mirror.
2986
2987 2005-06-21 Alexander V. Lukyanov <[email protected]>
2988
2989 * CmdExec.cc, CmdExec.h, FileFeeder.cc, FileFeeder.h: add Fg/Bg methods
2990 to CmdFeeder to allow passing terminal to subprocesses; allocate
2991 FgData for FileFeeder.
2992 * Filter.cc, Filter.h: move cwd to FDStream; add GetCwd, SetProcGroup
2993 methods.
2994 * PtyShell.h: make GetProcGroup const.
2995 * ProcWait.h: (GetState) return enum type.
2996 * ResMgr.cc, ResMgr.h: (FileExecutable) new method; optimize file checking.
2997 * commands.cc: use SetCwd instead of Chdir for setting cwd from history.
2998 * lftp_ssl.cc: add Fedora-4 ca-bundle location.
2999 * misc.cc: fix gcc4 warning.
3000 * FileCopy.cc, FileCopy.h, resource.cc: new settings xfer:verify,
3001 xfer:verify-command; verify completely received file.
3002 * FileCopy.cc, FileCopy.h: show verify status; fix problems with
3003 xfer:verify=no; show only last line of verify error.
3004 * Filter.cc, Filter.h: (StdoutToNull) new method.
3005 * verify-file: add rpm support.
3006
3007 2005-06-16 Alexander V. Lukyanov <[email protected]>
3008
3009 * CmdExec.cc: fix exit code for redirections.
3010
3011 2005-06-14 Alexander V. Lukyanov <[email protected]>
3012
3013 * ftpclass.cc, SFtp.cc, Fish.cc, Http.cc: use BumpEventTime
3014 instead of copying event_time in MoveConnectionHere, this fixes
3015 timeout error when net:idle > net:timeout.
3016 * Filter.cc, Filter.h: move full_name to base class FDStream.
3017 * LsCache.cc, Resolver.cc, Timer.cc: use new TimeInterval ctor.
3018 * NetAccess.cc, resource.cc: make net:timeout a TimeInterval.
3019 * ResMgr.cc, ResMgr.h: make TimeInterval ctor for ResValue.
3020
3021 2005-06-08 Alexander V. Lukyanov <[email protected]>
3022
3023 * MirrorJob.cc: improve status line.
3024
3025 2005-06-02 Alexander V. Lukyanov <[email protected]>
3026
3027 * FindJob.cc: don't add a slash for root directory.
3028
3029 2005-05-24 Alexander V. Lukyanov <[email protected]>
3030
3031 * lftp_ssl.cc, lftp_ssl.h: make it compatible with gnutls 1.0.x.
3032
3033 2005-05-20 Alexander V. Lukyanov <[email protected]>
3034
3035 * SFtp.cc: fix handling of file names starting with a tilde.
3036
3037 2005-05-19 Alexander V. Lukyanov <[email protected]>
3038
3039 * commands.cc: fix compilation on AIX 5.1
3040 * commands.cc: fixed minor problem with `lftp -u user --help'.
3041
3042 2005-05-18 Alexander V. Lukyanov <[email protected]>
3043
3044 * commands.cc: use dlsym to find library versions, this fixes
3045 compilation with modules.
3046 * lftp_ssl.cc, lftp_ssl.h: (LoadCA, LoadCRL) new methods.
3047 * lftp.cc: don't call lftp_ssl as it can be modular.
3048
3049 2005-05-17 Alexander V. Lukyanov <[email protected]>
3050
3051 * Http.cc, buffer_ssl.h, ftpclass.cc, ftpclass.h, module.cc,
3052 resource.cc: fixed compilation without ssl.
3053
3054 2005-05-13 Alexander V. Lukyanov <[email protected]>
3055
3056 * MirrorJob.cc: fix coredump when symlink target is unknown.
3057 * lftp_ssl.cc: set cert error if cert type is not supported.
3058
3059 2005-05-12 Alexander V. Lukyanov <[email protected]>
3060
3061 * FtpListInfo.cc: add AS/400 parser, handle trailing slash in NLST.
3062
3063 2005-05-11 Alexander V. Lukyanov <[email protected]>
3064
3065 * lftp_ssl.cc: allow V1 root crt.
3066
3067 2005-05-06 Alexander V. Lukyanov <[email protected]>
3068
3069 * lftp_ssl.cc, lftp_ssl.h: fixes compilation with openssl; add instance
3070 to openssl code; improve temp error handling for gnutls.
3071 * commands.cc: improve version info.
3072
3073 2005-05-05 Alexander V. Lukyanov <[email protected]>
3074
3075 * lftp_ssl.cc, lftp_ssl.h: verify peer certificate chain with gnutls;
3076 load CA and CRL globally; gnutls debugging support.
3077 * lftp.cc: deinit ssl.
3078 * resource.cc: ssl:*-path are only available with openssl.
3079
3080 2005-04-29 Alexander V. Lukyanov <[email protected]>
3081
3082 * HttpDir.cc, HttpDirXML.cc: replace atoll with sscanf.
3083 * GetJob.cc: do expand_home_relative on output file name.
3084 * Filter.cc, PtyShell.cc: fix gcc4 warning.
3085 * Makefile.am: add gnutls support.
3086 * buffer_ssl.cc: use ssl->error member.
3087 * lftp_ssl.cc, lftp_ssl.h: implement basic gnutls support.
3088
3089 2005-04-29 Alexander V. Lukyanov <[email protected]>
3090
3091 * Http.cc, buffer_ssl.cc, buffer_ssl.h, ftpclass.cc, ftpclass.h,
3092 lftp_ssl.cc, lftp_ssl.h, misc.cc, misc.h: prepare for gnutls
3093 usage - make lftp_ssl class.
3094
3095 2005-04-20 Alexander V. Lukyanov <[email protected]>
3096
3097 * ftpclass.cc: (data_address_ok) don't return false if no checking
3098 needed and getpeername fails; send CLNT before LANG and OPTS UTF8.
3099
3100 2005-04-11 Alexander V. Lukyanov <[email protected]>
3101
3102 * SFtp.cc: resume recv_buf in Close, this fixes a rare hang.
3103
3104 2005-04-07 Alexander V. Lukyanov <[email protected]>
3105
3106 * SFtp.cc: (SFtpListInfo::Do) check if done first, this fixes
3107 looping in SMTask::Roll.
3108
3109 2005-04-06 Alexander V. Lukyanov <[email protected]>
3110
3111 * NetAccess.cc: retry with LONG_LIST in case of any error with MP_LIST.
3112 * MirrorJob.cc: don't let parent mirror act in between our actions;
3113 let other tasks run when ListInfo are created, this fixes mirror
3114 multitasking when using listings from cache.
3115
3116 2005-04-05 Alexander V. Lukyanov <[email protected]>
3117
3118 * MirrorJob.cc, MirrorJob.h: add --loop option.
3119
3120 2005-04-04 Alexander V. Lukyanov <[email protected]>
3121
3122 * FileAccess.cc, FileAccess.h, buffer.cc, buffer.h: (SetErrorCached) new method.
3123 * commands.cc: don't quote lftp -c argument when it is single.
3124 * FileCopy.cc, Fish.cc, FtpDirList.cc, HttpDir.cc, LsCache.cc, LsCache.h,
3125 NetAccess.cc, SFtp.cc: add negative cache support.
3126 * Http.cc: set use-propfind and use-mkcol when those methods are unsupported.
3127
3128 2005-04-01 Alexander V. Lukyanov <[email protected]>
3129
3130 * SFtp.cc: re-request missed data (could happen when file is growing).
3131
3132 2005-03-29 Alexander V. Lukyanov <[email protected]>
3133
3134 * HttpDir.cc, HttpDir.h, HttpDirXML.cc: parse invalid XML as html,
3135 this works around some servers that return plain index for PROPFIND.
3136
3137 2005-03-28 Alexander V. Lukyanov <[email protected]>
3138
3139 * commands.cc: interpret the rest of line after lftp -c as command.
3140 * Http.cc, HttpDir.cc, HttpDir.h, HttpDirXML.cc: use USE_EXPAT define.
3141
3142 2005-03-24 Alexander V. Lukyanov <[email protected]>
3143
3144 * HttpDirXML.cc: fixed coredump when there is no files; added
3145 handler for creator-displayname; check parent node for href.
3146
3147 2005-03-13 Alexander V. Lukyanov <[email protected]>
3148
3149 * buffer.cc: prevent spinning when disk is full in IOBufferFDStream;
3150 better saving of errno.
3151 * Filter.cc, Filter.h: allow passing errno value to MakeErrorText.
3152
3153 2005-03-11 Alexander V. Lukyanov <[email protected]>
3154
3155 * HttpDir.cc: extract listing info for HttpListInfo.
3156
3157 2005-03-09 Alexander V. Lukyanov <[email protected]>
3158
3159 * FileCopyFtp.cc, ftpclass.h: handle timeout when waiting for ack.
3160 * misc.cc: (strip_trailing_slashes) don't strip last slash in root directory.
3161
3162 2005-03-05 Alexander V. Lukyanov <[email protected]>
3163
3164 * FileAccess.cc: don't strip trailing slash in OptimizePath.
3165 * Http.cc: send full URL in Destination header; fix Done for a number
3166 of methods.
3167 * misc.cc, misc.h: (strip_trailing_slashes) new function.
3168 * mvJob.cc: append basename of target ends with a slash.
3169 * ftpclass.cc, resource.cc: (ftp:ignore-pasv-address) new setting.
3170 * Http.cc, Http.h: add support for `quote MOVE/COPY'.
3171 * FileAccess.cc: set event_time in Open to prevent false timeout.
3172
3173 2005-03-01 Alexander V. Lukyanov <[email protected]>
3174
3175 * NetAccess.cc: make TOS changes compile on solaris.
3176
3177 2005-03-01 Mark Schreiber <[email protected]>
3178
3179 * ftpclass.cc, NetAccess.cc, NetAccess.h: use TOS on ftp connections.
3180
3181 2005-02-25 Alexander V. Lukyanov <[email protected]>
3182
3183 * Http.cc: set C locale before time conversion (fixes Last-Modified
3184 parsing).
3185 * FileSetOutput.cc: get time format at run time, not statically.
3186 * Http.cc, resource.cc: add use-propfind and use-mkcol settings, turn
3187 them off by default for hftp.
3188
3189 2005-02-23 Alexander V. Lukyanov <[email protected]>
3190
3191 * Http.cc, HttpDir.cc, HttpDir.h, HttpDirXML.cc: compile without
3192 expat.
3193 * SFtp.cc: fix Buffered so that it does not return more than possible.
3194 * misc.cc: fix guess_year for timezone mismatches.
3195
3196 2005-02-10 Alexander V. Lukyanov <[email protected]>
3197
3198 * FileAccess.cc: more verbose error for NOT_SUPP.
3199 * Http.cc: add NOT_SUPP error for MP_LIST mode.
3200 * HttpDir.cc, HttpDirXML.cc, HttpDir.h: add support for MP_LIST
3201 transformation into human readable listing.
3202 * ftpclass.cc: don't send further commands until data socket is
3203 connected (in sync mode).
3204
3205 2005-02-08 Alexander V. Lukyanov <[email protected]>
3206
3207 * FileCopy.cc: split off FileCopyPeerOutputJob.
3208 * FileSet.cc, FileSet.h, FileSetOutput.cc, FileSetOutput.h,
3209 commands.cc: add support for reverse sorting.
3210 * example2.cc: blocking fix.
3211 * FileCopyOutputJob.cc: new file (split from FileCopy.cc).
3212 * Makefile.am: move some modules to libtasks, where they belong.
3213
3214 2005-02-04 Alexander V. Lukyanov <[email protected]>
3215
3216 * FileAccess.cc, FileAccess.h: move entity_content_type here; add
3217 entity_charset.
3218 * FileSet.cc, FileSet.h: (allocated) new member; optimize memory
3219 allocation.
3220 * Http.cc, Http.h: make atotm a static method; implement MP_LIST
3221 as PROPFIND; extract entity charset.
3222 * HttpDir.cc, HttpDir.h: try MP_LIST; call ParseProps.
3223 * HttpDirXML.cc: new file; implement ParseProps.
3224
3225 2005-02-03 Alexander V. Lukyanov <[email protected]>
3226
3227 * SFtp.cc: don't set error when optional STAT or FSTAT return error.
3228 * FileGlob.cc: skip ./ in file names so that globbing works with tildes.
3229 * FileSet.cc: allow setting name to tail of itself.
3230
3231 2005-01-21 Alexander V. Lukyanov <[email protected]>
3232
3233 * Fish.cc, Http.cc, LsCache.cc, SFtp.cc, ftpclass.cc: cast `now' to
3234 time_t explicitly to please some compilers.
3235
3236 2005-01-21 Thomas Glanzmann <[email protected]>
3237
3238 * SFtp.cc, Fish.cc, resource.cc: change connect-program to work with
3239 Solaris 9 ssh.
3240
3241 2005-01-21 Alexander V. Lukyanov <[email protected]>
3242
3243 * Fish.cc: make reget more efficient by using larger block size and
3244 dd skip.
3245 * Resolver.cc: declare dn_expand and dn_skipname if needed.
3246
3247 2005-01-11 Alexander V. Lukyanov <[email protected]>
3248
3249 * ftpclass.cc, TimeDate.cc: fix buffer size handling for strftime.
3250
3251 2005-01-09 Alexander V. Lukyanov <[email protected]>
3252
3253 * ftpclass.cc: fixed SITE UTIME and overloaded MDTM - send proper
3254 modification time.
3255
3256 2005-01-04 Alexander V. Lukyanov <[email protected]>
3257
3258 * LocalAccess.cc: move Block'ing to Read and Write, this fixes spinning
3259 if disk is full.
3260 * SFtp.cc: fix timeout handling when idle time > timeout.
3261
3262 2004-12-28 Alexander V. Lukyanov <[email protected]>
3263
3264 * Http.cc, Http.h: (DirFile) new method; use MKCOL, MOVE, add Depth
3265 header for DELETE and support 102 reply (WebDAV preliminary support).
3266 * MirrorJob.cc, resource.cc: add mirror:set-permissions setting.
3267
3268 2004-12-17 Alexander V. Lukyanov <[email protected]>
3269
3270 * MirrorJob.cc: use get -O to reduce log size.
3271 * commands.cc: add -e for pget.
3272
3273 2004-12-16 Alexander V. Lukyanov <[email protected]>
3274
3275 * MirrorJob.cc: fixed mirror --no-symlinks.
3276 * ftpclass.cc: fixed a core dump.
3277
3278 2004-12-01 Alexander V. Lukyanov <[email protected]>
3279
3280 * ftpclass.cc: add debug message about EOF on data socket.
3281 * NetAccess.cc: initialize reconnect_interval_current properly.
3282
3283 2004-11-26 Alexander V. Lukyanov <[email protected]>
3284
3285 * SFtp.cc: suspend/resume pty buffers too.
3286
3287 2004-11-19 Alexander V. Lukyanov <[email protected]>
3288
3289 * NetAccess.cc: set TIOCOUTQ_tested so that it is not tested each time.
3290 * resource.cc: make ftps:initial-prot empty so that PROT would be always
3291 used for ftps connections.
3292
3293 2004-11-18 Alexander V. Lukyanov <[email protected]>
3294
3295 * Fish.cc: fix downloading of growing files.
3296 * SFtp.cc: fix excluding in SFtpListInfo (fixes e.g. mirror).
3297
3298 2004-11-16 Alexander V. Lukyanov <[email protected]>
3299
3300 * Http.cc, NetAccess.cc: don't call Do directly, use Roll.
3301 * SMTask.cc, SMTask.h: use separate task stack, drop prev_current member.
3302 * ftpclass.cc: fix Query for ftps:initial-prot; don't Close in ~Ftp.
3303
3304 2004-11-15 Alexander V. Lukyanov <[email protected]>
3305
3306 * ftpclass.cc, ftpclass.h, Http.cc, misc.cc, misc.h: send authorization
3307 to http proxy in CONNECT requests.
3308
3309 2004-11-13 Alexander V. Lukyanov <[email protected]>
3310
3311 * Http.cc: fixed mkdir.
3312 * FileSet.cc: fixed file mode comparision.
3313 * resource.cc, ftpclass.cc: new setting ftps:initial-prot.
3314
3315 2004-11-03 Alexander V. Lukyanov <[email protected]>
3316
3317 * Fish.cc: change command to RETRP to differentiate from plain RETR
3318 in transfer continuation; modify shell command to speed up partial
3319 transfers.
3320 * complete.cc, lftp_rl.c, lftp_rl.h: improve completion of aliases.
3321
3322 2004-11-03 Loic Le Loarer <[email protected]>
3323
3324 * Fish.cc: add support for continue mode in fish protocol.
3325
3326 2004-11-01 Alexander V. Lukyanov <[email protected]>
3327
3328 * ftpclass.cc: fix condition for unbound data socket (this fixes FXP).
3329
3330 2004-10-28 Alexander V. Lukyanov <[email protected]>
3331
3332 * MirrorJob.cc, MirrorJob.h: add --no-symlinks option.
3333 * Http.cc: fixed Cache-Control combination - use comma instead of space.
3334
3335 2004-10-21 Alexander V. Lukyanov <[email protected]>
3336
3337 * MirrorJob.cc: fixed file removing with --delete-first option;
3338 optimized done job deletion.
3339
3340 2004-10-20 Alexander V. Lukyanov <[email protected]>
3341
3342 * FileCopy.cc: remove bogus assert.
3343 * MirrorJob.cc: fix permissions comarision; don't Roll parent mirror
3344 if DONE (this fixes a mysterious corruption - looks like trouble
3345 when MirrorJob's are deleted in wrong order).
3346 * SMTask.cc: add assert; check deleting before Roll loop.
3347
3348 2004-10-18 Alexander V. Lukyanov <[email protected]>
3349
3350 * Fish.cc, Fish.h, SFtp.cc, SFtp.h: don't sent password several times,
3351 as it most probably is incorrect.
3352 * CmdExec.h, parsecmd.cc: (quotable, is_space, is_quote) add utility
3353 functions; use them.
3354 * complete.cc: (copy_word_skip, skip_word) new functions; use them for
3355 argument counting; better mirror -R completion.
3356
3357 2004-10-17 Alexander V. Lukyanov <[email protected]>
3358
3359 * MirrorJob.cc: fixed rare coredump when parent_mirror was referenced
3360 from dtor, and it was already deleted.
3361
3362 2004-10-15 Alexander V. Lukyanov <[email protected]>
3363
3364 * Fish.cc: prepend ./ to file names starting with - or ~
3365 * FileCopy.cc, FileCopy.h: fixed upload corruption bug.
3366
3367 2004-10-14 Alexander V. Lukyanov <[email protected]>
3368
3369 * MirrorJob.cc: don't chmod if not needed.
3370 * NetAccess.cc, NetAccess.cc: (TrySuccess) new method; optimize
3371 reconnect interval calculation, add reconnect_interval_curr member.
3372 * Http.cc, ftpclass.cc, SFtp.cc, Fish.cc: use TrySuccess.
3373
3374 2004-10-04 Alexander V. Lukyanov <[email protected]>
3375
3376 * complete.cc: rough mirror -R handling.
3377
3378 2004-09-27 Alexander V. Lukyanov <[email protected]>
3379
3380 * Http.cc: don't send empty Cache-Control.
3381
3382 2004-09-22 Alexander V. Lukyanov <[email protected]>
3383
3384 * CatJob.cc: use ascii mode only for tty output by default.
3385
3386 2004-09-16 Alexander V. Lukyanov <[email protected]>
3387
3388 * FileCopy.cc: fix endless loop in FileCopyPeerFDStream.
3389 * ftpclass.cc: don't apply ftp:port-ipv4 to FXP.
3390
3391 2004-09-13 Alexander V. Lukyanov <[email protected]>
3392
3393 * ftpclass.cc, ftpclass.h: fix a core dump in FXP mode.
3394
3395 2004-09-09 Alexander V. Lukyanov <[email protected]>
3396
3397 * Fish.cc, SFtp.cc: fix FreeBSD sshd interaction (different password
3398 prompt).
3399
3400 2004-09-06 Alexander V. Lukyanov <[email protected]>
3401
3402 * lftp.cc: reduce number of left over tasks after cleaning due to
3403 Luke Macken modifications.
3404
3405 2004-09-06 Luke Macken <[email protected]>
3406
3407 * SMTask.cc, SMTask.h, SignalHook.cc, SignalHook.h, log.cc, log.h:
3408 add Cleanup methods.
3409 * lftp.cc: use them.
3410
3411 2004-09-06 Alexander V. Lukyanov <[email protected]>
3412
3413 * Resolver.cc: use dn_expand if available.
3414
3415 2004-08-31 Alexander V. Lukyanov <[email protected]>
3416
3417 * FileCopy.cc: make sure the file is created in FileCopyPeerFDStream
3418 before setting done.
3419
3420 2004-08-30 Alexander V. Lukyanov <[email protected]>
3421
3422 * url.cc: make nice orig_url in case of bm: scheme, so that
3423 get `bm:<web-bookmark>/?arg=value' works well.
3424
3425 2004-08-23 Alexander V. Lukyanov <[email protected]>
3426
3427 * Http.cc: add closure to cache-control setting.
3428 * resource.cc: add hftp:cache-control.
3429 * Fish.cc, Http.cc: fail store if application tries to write more than
3430 requested originally.
3431
3432 2004-08-12 Alexander V. Lukyanov <[email protected]>
3433
3434 * Http.cc, Http.h, resource.cc: add http:authorization setting.
3435
3436 2004-08-03 Alexander V. Lukyanov <[email protected]>
3437
3438 * buffer_std.cc, buffer_std.h: new files.
3439 * Makefile.am: add buffer_std.* files.
3440 * FindJob.cc, FindJobDu.cc: use IOBuffer_STDOUT.
3441 * LocalAccess.cc: workaround solaris nfs bug in case of ENOSPC.
3442 * SMTask.cc: little optimization for timeout==0.
3443 * SysCmdJob.cc: return proper error code.
3444 * buffer.cc, buffer.h: add generic IOBuffer::Do, remove
3445 IOBufferFDStream::Do and IOBufferFileAccess::Do.
3446 * commands.cc: don't create FDStream for stdout in CMD(du).
3447 * ftpclass.cc: don't bind data socket according to net:socket-bind-*;
3448 move verbose debug for bind(); take control socket address if data
3449 socket is not bound to a particular address.
3450 * resource.cc: new setting http:cache-control.
3451 * Http.cc: use new setting http:cache-control; handle 503 Gateway
3452 timeout specially if only-if-cached is specified.
3453 * NetAccess.cc: clear files info before getting.
3454
3455 2004-07-26 Alexander V. Lukyanov <[email protected]>
3456
3457 * ftpclass.cc: handle network timeout after FEAT and in some other
3458 conditions.
3459
3460 2004-07-21 Alexander V. Lukyanov <[email protected]>
3461
3462 * ftpclass.cc: don't send FEAT to proxy before login.
3463
3464 2004-07-13 Alexander V. Lukyanov <[email protected]>
3465
3466 * SFtp.cc, SFtp.h: implemented slow start; handle passphrase prompt;
3467 print in debug wire path.
3468 * ftpclass.cc: proxy with combined auth supported.
3469 * resource.cc: new setting ftp:proxy-auth-joined; change
3470 sftp:max-packets-in-flight to 16.
3471
3472 2004-07-08 Alexander V. Lukyanov <[email protected]>
3473
3474 * commands.cc: remove redundant output default.
3475 * FindJobDu.cc: set show_sl properly.
3476
3477 2004-06-12 Alexander V. Lukyanov <[email protected]>
3478
3479 * StatusLine.cc: (ShowN) show status line immediately if update_timer
3480 stopped.
3481
3482 2004-06-10 Alexander V. Lukyanov <[email protected]>
3483
3484 * ArgV.h, CharReader.cc, echoJob.h: use trio.h
3485 * ftpclass.cc: apply ftp:port-range to passive connection too; increase
3486 minimum amount of data to upload before retry counter is reset.
3487
3488 2004-06-07 Alexander V. Lukyanov <[email protected]>
3489
3490 * complete.cc: complete `bm:' urls.
3491 * misc.cc: fix url_file with file[0]=='~'.
3492 * url.cc: unquote host name in valid_bm; don't re-check bm validity
3493 after lookup.
3494
3495 2004-06-02 Marc Bevand <[email protected]>
3496
3497 * FindJobDu.cc: use long long to hold file size.
3498
3499 2004-06-01 Alexander V. Lukyanov <[email protected]>
3500
3501 * commands.cc: save old directory when no cd verification is done.
3502
3503 2004-05-31 Alexander V. Lukyanov <[email protected]>
3504
3505 * ftpclass.cc: set copy_failed in NoFileCheck and TransferCheck on 4xx codes;
3506 do CPSV only when copy_tls_connect is set.
3507 * FileCopyFtp.cc: fix compilation without ssl.
3508
3509 2004-05-28 Alexander V. Lukyanov <[email protected]>
3510
3511 * ftpclass.cc: retry FEAT after login on 503 (invalid sequence of commands).
3512 * Resolver.cc: fill sa_len if present.
3513 * Http.cc, NetAccess.cc, ResMgr.cc, misc.cc: new DECL tests and defines.
3514 * bookmark.cc, bookmark.h, commands.cc, CmdExec.h: move lftp_bookmarks.
3515 * ftpclass.cc: accept CLNT with argument in FEAT reply.
3516 * url.cc: (bm:) new URL scheme to refer to bookmarked URLs.
3517
3518 2004-05-27 Alexander V. Lukyanov <[email protected]>
3519
3520 * ftpclass.cc: assume SSCN is supported without FEAT.
3521
3522 2004-05-26 Alexander V. Lukyanov <[email protected]>
3523
3524 * FileCopyFtp.cc, FileCopyFtp.h: vary passive_ssl_connect to find
3525 suitable combination of pasv/sscn.
3526 * ftpclass.cc, ftpclass.h: (copy_ssl_connect) new member; clean up
3527 prot and sscn modes choice; don't disconnect on pasv and port errors.
3528 * resource.cc: (ftp:fxp-passive-sscn) new setting to choose initial
3529 sscn mode of passive end of fxp.
3530
3531 2004-05-25 Alexander V. Lukyanov <[email protected]>
3532
3533 * ftpclass.cc: drop eof flag if transfer returns error code after
3534 data connection is closed.
3535
3536 2004-05-22 Alexander V. Lukyanov <[email protected]>
3537
3538 * resource.cc: increase sftp:max-packets-in-flight to 8.
3539
3540 2004-05-21 Alexander V. Lukyanov <[email protected]>
3541
3542 * SMTask.cc, SMTask.h: get rid of static sched_scan; don't Merge empty
3543 PollVec-s.
3544 * PollVec.h: (IsEmpty) new method.
3545 * SFtp.cc, Fish.cc: don't return MOVED if recv_buf contains data and
3546 was not suspended (reduces cpu usage).
3547 * Http.cc: check if buffer was suspended before Resume.
3548
3549 2004-05-20 Alexander V. Lukyanov <[email protected]>
3550
3551 * ftpclass.cc, ftpclass.h: SSCN support added.
3552 * getdate.y: remove ^L as it confuses some broken compilers.
3553 * Speedometer.cc: don't Add(0) more often than 10 times a second
3554 (reduces cpu usage).
3555
3556 2004-05-18 Alexander V. Lukyanov <[email protected]>
3557
3558 * FileCopyFtp.cc, FileCopyFtp.h: protect FXP if ssl-protect-fxp is
3559 true for any of the two servers; try to turn off protection
3560 if it fails.
3561 * ftpclass.cc, ftpclass.h: (copy_protect) new member.
3562 * resource.cc: ftp:ssl-protect-fxp can now have a closure.
3563
3564 2004-05-17 Alexander V. Lukyanov <[email protected]>
3565
3566 * ftpclass.cc: wait until LANG/OPTS UTF8 complete before sending
3567 more commands; activate specified charset if utf8 activation
3568 fail; actually send CLNT and HOST commands; activate charset
3569 from Reconfig only if no utf8 activation commands pending.
3570 * ftpclass.cc: use ssl-protect-fxp in FXP mode; send CPSV even
3571 if seems unsupported - no choice. (suggested by Tillmann Steinbrecher
3572 <[email protected]> w/patch).
3573 * resource.cc: (ftp:ssl-protect-fxp) new setting.
3574
3575 2004-05-11 Alexander V. Lukyanov <[email protected]>
3576
3577 * CmdExec.cc: call ShowRunStatus only if necessary.
3578 * PollVec.cc, PollVec.h: inline Empty method.
3579 * SMTask.cc, SMTask.h: inline Enter/Leave methods.
3580 * StatusLine.cc: (CanShowNow) new method.
3581 * ftpclass.cc, ftpclass.h: support CPSV; add utf8_activated flag;
3582 added workaround for servers which refuse to do OPTS before login.
3583
3584 2004-05-07 Alexander V. Lukyanov <[email protected]>
3585
3586 * ftpclass.cc: check use-mlsd and use-site-chmod before connecting.
3587
3588 2004-05-06 Alexander V. Lukyanov <[email protected]>
3589
3590 * ftpclass.cc: fixed core dump in case of extra server reply; don't
3591 unconditionally disconnect on 221 as some broken servers use it for
3592 FEAT reply. (reported by Wang WenRui <[email protected]>)
3593
3594 2004-05-04 SHIOTA Shoichi <[email protected]>
3595
3596 * StatusLine.cc: don't write zero bytes to terminal - it can produce
3597 unexpected results.
3598
3599 2004-04-29 Alexander V. Lukyanov <[email protected]>
3600
3601 * ftpclass.cc: store zero sized files properly.
3602
3603 2004-04-28 Alexander V. Lukyanov <[email protected]>
3604
3605 * ftpclass.cc: accept multiple AUTH lines in FEAT reply; check if
3606 ssl is activavted before trying to make protected data connection.
3607 * NetAccess.cc: retry after NOT_SUPP fast so that the status message
3608 won't appear on the screen.
3609
3610 2004-04-22 Alexander V. Lukyanov <[email protected]>
3611
3612 * FileSet.cc, FileSet.h: add UNKNOWN file type; handle Door type.
3613 * MirrorJob.cc: add UNKNOWN to switch.
3614 * FtpListInfo.cc: ignore special files, don't treat them as errors.
3615
3616 2004-04-21 Alexander V. Lukyanov <[email protected]>
3617
3618 * LsCache.cc: (IsDirectory) use dirname_modify; check for MP_LIST
3619 in cache; add assert.
3620 * misc.cc: fix comment; special case for tz=GMT for speed-up.
3621 * FileSet.cc: (FileInfo::parse_ls_line) new function, moved from
3622 FtpListInfo.cc with minor modifications; set longname in it.
3623 * FtpListInfo.cc, Fish.cc: use FileInfo::parse_ls_line.
3624 * SFtp.cc: try to extract owner/group/nlinks from longname, use
3625 parse_ls_line.
3626
3627 2004-04-19 Alexander V. Lukyanov <[email protected]>
3628
3629 * ftpclass.cc: fixed STAT command in FXP mode; fixed coredump when
3630 disconnecting in FXP mode (when DataAbort disconnects too).
3631 * SFtp.h: fix mem leaks in Packet_WRITE and Packet_RENAME.
3632 * ftpclass.cc: follow ftp:ssl-force even if ftp server does not
3633 advertise AUTH in FEAT reply (reported by Nikos Mavroyanopoulos <[email protected]>).
3634
3635 2004-04-16 Alexander V. Lukyanov <[email protected]>
3636
3637 * misc.h, misc.cc: (last_char) new utility function.
3638 * CmdExec.cc, FileAccess.cc, Http.cc, MirrorJob.cc, QueueFeeder.cc,
3639 commands.cc, lftp.cc: use last_char.
3640 * LsCache.cc: don't treat trailing slash as existing directory inidication.
3641 * GetFileInfo.cc: check for trailing slash here instead of LsCache.cc.
3642
3643 2004-04-14 Alexander V. Lukyanov <[email protected]>
3644
3645 * resource.cc: don't enable mlsd by default.
3646
3647 2004-04-13 Alexander V. Lukyanov <[email protected]>
3648
3649 * SFtp.cc: don't check timeout if there should be no activity.
3650 * Makefile.am: use install-data-hook to do cleaning after install.
3651
3652 2004-04-12 Alexander V. Lukyanov <[email protected]>
3653
3654 * FtpListInfo.cc: use sscanf instead of atoll.
3655
3656 2004-04-09 Alexander V. Lukyanov <[email protected]>
3657
3658 * ftpclass.cc, ftpclass.h: support CLNT, HOST commands; send OPTS MLST;
3659 translate data in MP_LIST mode.
3660 * resource.cc: ftp:client new resource.
3661 * FtpListInfo.cc: support MLSD attrs UNIX.{owner,group,uid,gid};
3662 workaround ncftpd bug - it does not append semicolon to last MLST fact.
3663
3664 2004-04-08 Alexander V. Lukyanov <[email protected]>
3665
3666 * ftpclass.cc: send ACCT before FEAT after login.
3667 * OutputJob.cc: don't disable writing when there are data pending,
3668 this fixes spinning in cls|less.
3669
3670 2004-04-07 Alexander V. Lukyanov <[email protected]>
3671
3672 * ftpclass.cc: fixed coredump when ftp:proxy does not have a protocol
3673 specified; fixed assertion failure when using ftp over http proxy
3674 with CONNECT method.
3675
3676 2004-04-06 Alexander V. Lukyanov <[email protected]>
3677
3678 * ftpclass.cc: add "closed by the remote host" string to the transient
3679 errors.
3680
3681 2004-04-05 Alexander V. Lukyanov <[email protected]>
3682
3683 * SFtp.cc: fix data packet debug message (s was not initialized);
3684 call CheckTimeout properly, so that net timeout will be handled.
3685 * ftpclass.cc, ftpclass.h: move expect_t to Expect; make ExpectQueue
3686 a friend so that it can access Expect; (Ftp::DisconnectNow) new method;
3687 (Connection::AbortDataConnection, CloseAbortedDataConnection) new methods;
3688 use DisconnectNow instead of setting quit_sent.
3689 * SFtp.h: make enums public so that it compiles with sun compiler.
3690 * SFtp.cc, SFtp.h: move stuff around, make some friends/publics to make
3691 it compile with sun compiler.
3692
3693 2004-04-04 Alexander V. Lukyanov <[email protected]>
3694
3695 * SFtp.cc, SFtp.h: outline HasID as it fails to inline on certain
3696 compilers (e.g. gcc-2.95.2).
3697
3698 2004-04-02 Alexander V. Lukyanov <[email protected]>
3699
3700 * ftpclass.cc, ftpclass.h: fix compilation without ssl; fixed coredump
3701 in case of some network errors; copy error message before Disconnect,
3702 so that it won't be lost and a freed memory won't be referenced.
3703 * Makefile.am: add SOCKSLIBS to lftp_LDADD.
3704
3705 2004-03-25 Alexander V. Lukyanov <[email protected]>
3706
3707 * FileAccess.h: (MP_LIST) new mode for MLSD - Machine Parseable List;
3708 (GetErrorCode) new method.
3709 * Fish.cc, Http.cc, LocalAccess.cc, SFtp.cc: handle MP_LIST.
3710 * ftpclass.cc: send MLSD for MP_LIST.
3711 * FtpListInfo.cc: use MP_LIST.
3712 * NetAccess.cc: use MP_LIST, fallback to LONG_LIST if not supported.
3713 * resource.cc: ftp:list-empty-ok - new setting.
3714
3715 2004-03-25 Alexander V. Lukyanov <[email protected]>
3716
3717 * FileSet.cc: init all fields in FileInfo.
3718 * FtpDirList.cc: support MLSD; use parsers from ListInfo.
3719 * FtpListInfo.cc: support MLSD.
3720 * SFtp.h: fix 2 mem leaks.
3721 * SFtp.cc: register protocol in module_init; add assert.
3722 * ftpclass.h, ftpclass.cc: support MLSD.
3723 * resource.cc: new setting ftp:use-mlsd.
3724
3725 2004-03-19 Alexander V. Lukyanov <[email protected]>
3726
3727 * FileCopy.cc: still wait for put confirmation to set file mtime
3728 even if target file is already complete - this fixes repeated
3729 transferring a file in mirror -c.
3730 * ftpclass.cc: handle storing 0 bytes by skipping data connection
3731 establishment and still set the file mtime.
3732
3733 2004-03-18 Alexander V. Lukyanov <[email protected]>
3734
3735 * ftpclass.cc: set proper timeout for retry_time; better error handling
3736 for port-range.
3737 * FileAccess.cc: (DebugPrint) check for \r\n in the string.
3738 * Makefile.am: use libtool for libtasks and libjobs; rename them.
3739
3740 2004-03-15 Alexander V. Lukyanov <[email protected]>
3741
3742 * ftpclass.cc: fix a number of null refs; set auth_sent properly.
3743 * log.cc: don't write trailing \0.
3744
3745 2004-03-13 Alexander V. Lukyanov <[email protected]>
3746
3747 * StatusLine.cc: don't redisplay status line if not needed.
3748 * ftpclass.cc: check loopback match in Handle_PASV; Connection
3749 and ExpectQueue subclasses.
3750 * commands.cc: rewind args before calling builtin_open from builtin_lftp.
3751
3752 2004-03-04 Alexander V. Lukyanov <[email protected]>
3753
3754 * misc.cc, misc.h: (dirname_modify) new function.
3755 * LsCache.cc: (Changed) use dirname_modify to fix bug with trailing
3756 slash.
3757
3758 2004-03-02 Alexander V. Lukyanov <[email protected]>
3759
3760 * ftpclass.cc: fix multiline error joining to eliminate all numeric
3761 status codes except the first one.
3762
3763 2004-03-01 Alexander V. Lukyanov <[email protected]>
3764
3765 * CmdExec.cc: rewind args before calling command-specific handler.
3766 * commands.cc: don't rewind args, it is not rewinded in CmdExec.
3767 * ftpclass.cc: use all_lines in error reporintg; join multiline error
3768 into single line.
3769
3770 2004-02-25 Alexander V. Lukyanov <[email protected]>
3771
3772 * pgetJob.cc: nice progress bar.
3773 * ArgV.cc: init ind in ctor.
3774 * StatusLine.h: new Show methods to show StringSet.
3775 * StringSet.cc, StringSet.h: (AppendFormat) new method.
3776 * ftpclass.cc, Http.cc, Fish.cc, SFtp.cc: take over suspended sessions.
3777
3778 2004-02-24 Alexander V. Lukyanov <[email protected]>
3779
3780 * ChmodJob.cc: fix recursing.
3781
3782 2004-02-19 Alexander V. Lukyanov <[email protected]>
3783
3784 * StatusLine.cc: don't write negative amount of chars.
3785
3786 2004-02-17 Alexander V. Lukyanov <[email protected]>
3787
3788 * StringSet.cc, StringSet.h: new files; implement string array for StatusLine.
3789 * ArgV.cc, ArgV.h: base on StringSet.
3790 * CmdExec.cc: modify CombineQuoted based on StringSet.
3791 * FileFeeder.cc: send CONT to feeder process.
3792 * FileSetOutput.cc, Filter.cc, FindJob.cc, FindJobDu.cc, PtyShell.cc,
3793 SleepJob.cc, TreatFileJob.cc, mgetJob.cc, mkdirJob.cc, mkdirJob.h:
3794 fix ArgV const-ness.
3795 * StatusLine.cc, StatusLine.h: base on StringSet.
3796 * commands.cc: fix ArgV const-ness; implement `source -e' - execute output
3797 of external command.
3798 * Makefile.am: add StringSet.
3799
3800 2004-02-13 Alexander V. Lukyanov <[email protected]>
3801
3802 * MirrorJob.cc: new option --use-pget-n; implement using pget for
3803 transfers; fixed bug which caused old files to be removed even
3804 if -e option was not specified.
3805 * ArgV.h: allow appending numbers.
3806 * GetJob.h: (RemoveSourceFiles) add method named as in CopyJob.
3807 * pgetJob.h: make NewChunk protected.
3808 * resource.cc: add mirror:use-pget-n resource.
3809
3810 2004-02-12 Alexander V. Lukyanov <[email protected]>
3811
3812 * StatusLine.cc, StatusLine.h: support multiline status.
3813 * ftpclass.cc: fix hang on data eof (introduced in last change set).
3814 * MirrorJob.cc: --ignore-size and --only-missing options added.
3815 * netrc.cc, netrc.h: allow user matching.
3816 * commands.cc: user netrc user matching; log netrc actions;
3817 set password immediately to skip looking up netrc second time.
3818
3819 2004-02-09 Alexander V. Lukyanov <[email protected]>
3820
3821 * MirrorJob.cc: (SetNewerThan) try get_date first.
3822 * SleepJob.cc: print get_date error.
3823 * commands.cc: fix mirror help; get1 --target-position instead of
3824 --target-region.
3825 * getdate.y, getdate.h: save error string instead of printing.
3826 * ftpclass.h, ftpclass.cc: drop log_resp and result; use data_iobuf
3827 for QUOTE_CMD and all_lines for OPIE/SKEY.
3828 * Makefile.am: move getdate.y and getdate.h to libtasks (it is used in
3829 two separate modules).
3830
3831 2004-02-04 Alexander V. Lukyanov <[email protected]>
3832
3833 * SFtp.cc: (SkipHome) fix it to skip / too; handle ~.
3834 * SMTask.h, SMTask.cc: (Enter, Leave) new methods; now a task can
3835 be run nested many times (int running); Schedule optimizations.
3836 * CmdExec.cc: use Enter/Leave.
3837 * log.cc, log.h: add support for pid, time and context log prefixes.
3838 * lftp.cc: enable pid, time and context on exit to bg.
3839 * ftpclass.cc: move DataClose from Read to Do; use Enter/Leave to
3840 show proper context.
3841 * FileAccess.cc: modify DebugPrint to use prefixes of Log class;
3842 use Enter/Leave in CleanupAll.
3843 * FileAccess.h: (GetLogContext) new method, use hostname as context.
3844 * commands.cc: add -t -c -p options for debug command; add range
3845 options for get1.
3846 * Resolver.h: add GetLogContext method.
3847
3848 2004-01-28 Alexander V. Lukyanov <[email protected]>
3849
3850 * NetAccess.cc, NetAccess.h: (proxy_proto) new member.
3851 * ftpclass.cc, ftpclass.h: close data socket on temp transfer errors;
3852 enum pasv_state instead of addr_received; http proxy support with
3853 CONNECT method.
3854 * resource.cc: new setting ftp:use-hftp to select between GET and
3855 CONNECT methods when ftp:proxy points to http:// url.
3856
3857 2004-01-24 Alexander V. Lukyanov <[email protected]>
3858
3859 * MirrorJob.cc, commands.cc: --delete-first, not --remove-first;
3860 update help text for mirror.
3861 * buffer.cc: accept '' charset as 'char' (they are equivalent in
3862 libiconv and '' seems to be supported by glibc).
3863
3864 2004-01-21 Alexander V. Lukyanov <[email protected]>
3865
3866 * FileSet.h, FileSet.cc: add SubtractNotDirs, SubtractSameType.
3867 * MirrorJob.cc, MirrorJob.h: remove directories to be replaced with
3868 plain files first (with --delete option); --remove-first option.
3869 * commands.cc: create bookmark file before calling editor.
3870
3871 2004-01-19 Alexander V. Lukyanov <[email protected]>
3872
3873 * Http.cc, Http.h: extract content-type (not used yet).
3874 * ftpclass.cc, ftpclass.h: add rest_supported flag.
3875
3876 2004-01-18 Alexander V. Lukyanov <[email protected]>
3877
3878 * ResMgr.cc: better charset test.
3879 * resource.cc: file:charset new setting; set it from nl_langinfo(CODESET).
3880 * SFtp.cc: move is_valid_reply to Packet class; drop unused is_valid_status.
3881 * buffer.cc: use file:charset instead of unportable "char".
3882
3883 2004-01-16 Alexander V. Lukyanov <[email protected]>
3884
3885 * PtyShell.cc: call TIOCSCTTY on FD 2 instead of FD 0, as it is a tty
3886 even if use_pipes==true.
3887 * ResMgr.cc, ResMgr.h: (CharsetValidate) new static method.
3888 * buffer_ssl.cc: allow translation.
3889 * ftpclass.cc, ftpclass.h: implement recoding from any server charset.
3890 * resource.cc: new setting ftp:charset.
3891
3892 2004-01-15 Alexander V. Lukyanov <[email protected]>
3893
3894 * buffer.h: use CDECL around iconv.h.
3895 * buffer.cc: use const_cast.
3896 * Makefile.am: add iconv library.
3897
3898 2004-01-15 Alexander V. Lukyanov <[email protected]>
3899
3900 * buffer.cc: use ICONV_CONST.
3901 * FileCopy.cc: workaround solaris nfs bug in case of ENOSPC.
3902
3903 2004-01-15 Glenn Maynard <[email protected]>
3904
3905 * buffer.cc: include errno.h early.
3906
3907 2004-01-14 Alexander V. Lukyanov <[email protected]>
3908
3909 * FileCopy.cc: set entity size at end of transfer too, in case it was
3910 not known at the beginning.
3911 * SFtp.cc: don't use non-portable S_IAMB macro.
3912 * buffer.cc, buffer.h: fixed translation by adding bool from_untranslated;
3913 new class IOBufferStacked.
3914 * ftpclass.cc: don't disconnect on some temporary errors, just re-send
3915 the command after delay; (IOBufferTelnet) new class; use it;
3916 (telnet_layer_send) new member; add site utime support; better status
3917 for FEAT negotiation; add overloaded MDTM support.
3918 * resource.cc: (ftp:use-site-utime, ftp:use-mdtm-overloaded) new settings.
3919
3920 2004-01-14 Alexander V. Lukyanov <[email protected]>
3921
3922 * ProcWait.cc: don't call NonFatalError, as it causes ProcWait to spin.
3923 * commands.cc: fix compilation with IRIX compiler.
3924
3925 2003-12-22 Alexander V. Lukyanov <[email protected]>
3926
3927 * Http.cc, Http.h: add Buffered method; allow storing in https mode;
3928 use NO_DATE and NO_SIZE constants.
3929 * NetAccess.cc, NetAccess.h: move SocketBuffered here from ftpclass.cc.
3930 * SFtp.cc: more precise Buffered method.
3931 * buffer.cc: add Buffered method.
3932 * buffer_ssl.cc: add ErrorFatal method.
3933 * ftpclass.cc, ftpclass.h: read/write through buffer;
3934 use NetAccess::SocketBuffered; follow RFC2640; FEAT, LANG, UTF8
3935 support;
3936 * resource.cc: new settings ftp:use-feat, ftp:use-lang.
3937
3938 2003-12-19 Alexander V. Lukyanov <[email protected]>
3939
3940 * LocalAccess.cc: (StoreStatus) return OK when not opened for storing.
3941 * FileCopy.cc: skip storing past eof only if there is such file already;
3942 do better line buffering at the cost of performance.
3943
3944 2003-12-17 Alexander V. Lukyanov <[email protected]>
3945
3946 * module.cc: rename module_into to lftp_module_info to avoid
3947 name conflict.
3948
3949 2003-12-17 albert chin <[email protected]>
3950
3951 * Makefile.am: remove LOCALE_DIR, use datadir/locale instead.
3952 * FileAccess.h, CharReader.h, IdNameCache.h, FileFeeder.h: use enum
3953 to declare integer constants.
3954 * FileSetOutput.cc: include filemode.h after config.h.
3955
3956 2003-12-16 Alexander V. Lukyanov <[email protected]>
3957
3958 * Http.cc: fix core dump where first reply line is empty (reported by
3959 Nalin Dahyabhai); remove incorrect parsing of status line in case
3960 of 0.9 protocol; shutdown socket if sent uncomplete entity and
3961 unset keep_alive; handle STORE in case of 0.9 protocol.
3962 * misc.cc: add CDECL around regex.h
3963
3964 2003-12-16 albert chin <[email protected]>
3965
3966 * Makefile.am: Because we use libtool to build lftp, use $(LTLIBINTL)
3967 for the gettext libraries.
3968
3969 2003-12-15 Mark Blackburn <[email protected]>
3970
3971 * parsecmd.cc: skip \r character for dos-like script files.
3972
3973 2003-12-15 Alexander V. Lukyanov <[email protected]>
3974
3975 * HttpDir.cc: fix a compilation error (reported by Albert Chin).
3976 * Http.cc: make base64 char table const.
3977
3978 2003-12-11 Alexander V. Lukyanov <[email protected]>
3979
3980 * FileCopy.cc: handle the case when put retry seeks to the eof.
3981 * Http.cc: don't try to send empty body to non-zero offset; don't
3982 shutdown socket when done sending data (PUT/POST) and data size
3983 was known beforehand.
3984 * Resolver.cc: fixed compilation on AIX, where h_errno is a macro.
3985
3986 2003-12-08 Alexander V. Lukyanov <[email protected]>
3987
3988 * buffer.cc, buffer.h, SFtp.cc, SFtp.h: (DirectedBuffer) new buffer
3989 layer; add iconv support in DirectedBuffer, almost transparent.
3990
3991 2003-12-08 Alexander V. Lukyanov <[email protected]>
3992
3993 * HttpDir.cc: (find_eol, try_csm_proxy) fix bugs found by
3994 Solar Designer <[email protected]> - increment *eol_size,
3995 not eol_size; use proper %lld format for size; use larger
3996 buffer for additional_file_info to store trailing \0; some
3997 style mods; use %32s instead of %32c.
3998
3999 2003-12-08 Harnhammar, Ulf <[email protected]>
4000
4001 * HttpDir.cc: (try_netscape_proxy, try_squid_eplf) fixed buffer overflows.
4002
4003 2003-12-01 Alexander V. Lukyanov <[email protected]>
4004
4005 * buffer.cc, buffer.h: move SMTask to IOBuffer.
4006 * FileAccess.cc, OutputJob.cc: Delete -> delete for Buffer.
4007 * FileCopy.cc, FileCopy.h: use IOBuffer as base class for FileCopyPeer.
4008 * FindJob.h, FindJobDu.h, Fish.cc, Fish.h, FtpDirList.cc, FtpDirList.h,
4009 HttpDir.h, LocalAccess.cc, LocalAccess.h, Resolver.cc, Resolver.h:
4010 use IOBuffer.
4011 * NetAccess.cc, NetAccess.h: use IOBuffer; FindHomeAuto in ctor.
4012 * SFtp.cc, SFtp.h: fixed FSTAT request (protocol_version was duplicated);
4013 fixed STAT/FSTAT for protocol v4 - add flags field.
4014
4015 2003-12-01 Alexander V. Lukyanov <[email protected]>
4016
4017 * ftpclass.cc: fix possible freed memory access.
4018 * MirrorJob.cc: don't append basename of source to / destination.
4019
4020 2003-11-26 Alexander V. Lukyanov <[email protected]>
4021
4022 * FileCopyFtp.cc: add ftps to acceptable fxp protocols.
4023 * Fish.cc, SFtp.cc: report status from PtyShell.
4024 * PtyShell.cc: close pipes correctly.
4025 * buffer.cc, buffer.h: add Status method.
4026
4027 2003-11-21 Alexander V. Lukyanov <[email protected]>
4028
4029 * Fish.cc, SFtp.cc, resource.cc: allow args in connect-program
4030 resource; move -a and -x options to connect-program.
4031 * Makefile.am: rename lftp libs.
4032
4033 2003-11-20 Alexander V. Lukyanov <[email protected]>
4034
4035 * FileAccess.h, HttpDir.h: move LsOptions to FileAccess.h.
4036 * FileSet.cc, FileSet.h: (EstimateMemory) new method.
4037 * LsCache.cc, LsCache.h: cache FileSet along with listing.
4038 * SFtp.cc, SFtp.h: more work. All is working now.
4039 * ConnectionSlot.cc, ConnectionSlot.h: outline ctor/dtor to avoid warning.
4040
4041 2003-11-20 Alexander V. Lukyanov <[email protected]>
4042
4043 * Fish.cc: add Reconfig to clone ctor.
4044 * ResMgr.cc: allow 0x numbers.
4045 * ResMgr.h: use strtol.
4046 * SFtp.cc, SFtp.h: use new resources.
4047 * resource.cc: new sftp resources.
4048
4049 2003-11-19 Alexander V. Lukyanov <[email protected]>
4050
4051 * PtyShell.cc, PtyShell.h: add pipe support, thus the ability to
4052 separate data and interaction with ssh (passwords etc).
4053 * buffer.cc, buffer.h: pack/unpack - signed int, 64 bit, debugging.
4054 * FileSet.cc, FileSet.h: add longname.
4055 * NetAccess.cc, NetAccess.h, ftpclass.cc, ftpclass.h: move home_auto
4056 to NetAccess.
4057 * SFtp.cc, SFtp.h: more work; ls works.
4058 * Makefile.am: libpty; add sftp.
4059
4060 2003-11-14 Alexander V. Lukyanov <[email protected]>
4061
4062 * FileCopy.cc: drop size/date if read pos>size.
4063 * FileCopy.h: (GetDescriptionForLog) new method.
4064 * commands.cc: add --sort=time for cls; add long options for open;
4065 optional verification of cached dirs.
4066 * CmdExec.cc, CmdExec.h: optional verification of cached dirs.
4067 * Resolver.cc: define C_IN if undefined.
4068 * buffer.cc, buffer.h: pack/unpack methods added.
4069
4070 2003-11-11 Alexander V. Lukyanov <[email protected]>
4071
4072 * ftpclass.cc, ftpclass.h, resource.cc: new setting ftp:ssl-protect-list
4073 to selectively protect listings; propagate pret_supported; set
4074 real_pos to 0 always if REST fails.
4075
4076 2003-10-21 Alexander V. Lukyanov <[email protected]>
4077
4078 * commands.cc: handle long options in open command.
4079
4080 2003-10-03 Alexander V. Lukyanov <[email protected]>
4081
4082 * SignalHook.cc: unblock signals upon restoring.
4083 * StatusLine.cc: (update) support multibyte characters.
4084 * Speedometer.cc: (GetETAStrFromTime) support multibyte characters.
4085 * misc.cc: (squeeze_file_name) support multibyte characters.
4086 * ftpclass.cc, ftpclass.h, resources.cc: add use_pret and
4087 pret_supported flags, ftp:use-pret setting.
4088 * pgetJob.cc: make more room for status, less for file name.
4089
4090 2003-10-02 Morgan Christiansson <[email protected]>
4091
4092 * ftpclass.cc: send PRET before PASV command for distributed ftp servers.
4093
4094 2003-08-21 Alexander V. Lukyanov <[email protected]>
4095
4096 * ftpclass.cc: (Disconnect) ignore replies when Disconnect is called,
4097 call CloseRespQueue for that.
4098 * FileCopyFtp.cc: fixed fxp for zero sized files.
4099
4100 2003-08-11 Johannes Zellner <[email protected]>
4101
4102 * HttpDir.cc:
4103 1) implemented the hftp protocol over a CSM proxy
4104 2) hftp listings are colored according to DIRECTORY / SYMLINK
4105 3) do NOT print hour:minute, if it wasn't specified in the
4106 http proxy output
4107
4108 2003-07-15 Alexander V. Lukyanov <[email protected]>
4109
4110 * ftpclass.cc, ftpclass.h, resource.cc: add ftp:use-telnet-iac setting.
4111
4112 2003-07-10 Alexander V. Lukyanov <[email protected]>
4113
4114 * CmdExec.cc: save cwd history before destroying last feeder (this
4115 fixes a bug with saving last working directory).
4116
4117 2003-06-26 Alexander V. Lukyanov <[email protected]>
4118
4119 * LsCache.cc: (SetDirectory) use SetCwd to restore cwd, this fixes
4120 a problem with home values without leading slash.
4121 * GetJob.cc, GetJob.h: re-do file: handling.
4122
4123 2003-06-21 Alexander V. Lukyanov <[email protected]>
4124
4125 * FileCopy.cc: optimize FileCopyPeerFDStream speed by writing out
4126 data by portions of >=PUT_LL_MIN or by timeout 0.1 second.
4127 * buffer.cc, buffer.h: add put_ll_timer in IOBufferFDStream too.
4128 * FileSet.cc: remove unneeded type casting.
4129 * GetJob.cc: create FileCopyPeerFDStream for file: url scheme.
4130 This fixes closing and re-opening output file when transfer
4131 breaks and restarts. Besides, it is slightly faster.
4132 * Http.cc: turn off sending plain password in URI along with
4133 Authorization in hftp.
4134 * Timer.h: add Stop method.
4135 * ftpclass.cc, ftpclass.h, resource.cc: new settings ftp:use-size
4136 and ftp:use-mdtm.
4137
4138 2003-06-16 Alexander V. Lukyanov <[email protected]>
4139
4140 * commands.cc: set exit_code in CMD(help) (reported
4141 by [email protected]).
4142
4143 2003-06-03 Alexander V. Lukyanov <[email protected]>
4144
4145 * ftpclass.cc: don't assign NO_SIZE when SIZE returned 0.
4146 * commands.cc: set exit_code=0 properly in builtin_lftp
4147 (reported by [email protected]).
4148
4149 2003-05-28 Alexander V. Lukyanov <[email protected]>
4150
4151 * Http.cc: send password always in hftp, even along with Authorization
4152 header. This is required for some proxies (reported by Onno Benschop).
4153 * ftpclass.cc: fixed catching of file size from 150 server message.
4154 * lftp.cc: load and save histories only when user interaction happens.
4155
4156 2003-05-23 Alexander V. Lukyanov <[email protected]>
4157
4158 * LocalAccess.cc: move Exclude to after file type setting. This
4159 fixes exclude/include of directories on local side.
4160 * commands.cc: new command `.tasks'.
4161 * complete.cc: don't show hidden commands in completion.
4162 * ftpclass.cc, ftpclass.h: fix borrowing not-logged-in connection.
4163
4164 2003-05-23 Diego Reyes <[email protected]>
4165
4166 * ResMgr.cc: (DirReadable, FileReadable) fix a bug.
4167
4168 2003-05-14 Geoffrey Lee <[email protected]>
4169
4170 * Http.cc: fix a problem with empty path; change it to "/".
4171
4172 2003-04-30 Alexander V. Lukyanov <[email protected]>
4173
4174 * MirrorJob.cc: default mode for directories is 0775; raise sane
4175 connection limit to insane 64.
4176
4177 2003-04-28 Alexander V. Lukyanov <[email protected]>
4178
4179 * Http.cc: fix hftp file information retrieval when use-head is off
4180 (bug reported by Robert A. Thompson <[email protected]>).
4181
4182 2003-04-15 AIDA Shinra <[email protected]>
4183
4184 * HttpDir.cc: fix bug with unterminated string; add wwwoffle support.
4185
4186 2003-04-08 Alexander V. Lukyanov <[email protected]>
4187
4188 * MirrorJob.cc: fixes for --script (bug reported by Olaf Kaehler
4189 <[email protected]>).
4190
4191 2003-03-14 Alexander V. Lukyanov <[email protected]>
4192
4193 * ftpclass.cc: use net:timeout when draining data socket on upload;
4194 ignore 0 size reported by SIZE (for sunsolve.sun.com).
4195
4196 2003-02-28 Alexander V. Lukyanov <[email protected]>
4197
4198 * ftpclass.cc: close data connection when sending ABOR over ssl.
4199 * MirrorJob.cc: add --just-print and --dry-run options.
4200 * CmdExec.cc, FileGlob.cc, FileGlob.h, commands.cc, complete.cc, mgetJob.cc:
4201 (GlobURL::NewGlob) new method; save some glob options and use this.
4202 * buffer.h: increase GET_BUFSIZE.
4203
4204 2003-02-26 Alexander V. Lukyanov <[email protected]>
4205
4206 * OutputJob.cc: fixed large file support (should have used off_t).
4207 * HttpDir.cc: handle \r just in case.
4208 * CmdExec.cc: set slot's cwd even if non-interactive.
4209
4210 2003-02-14 Alexander V. Lukyanov <[email protected]>
4211
4212 * FileCopy.cc, FileCopyFtp.cc: don't start "put" peer if target file
4213 is already complete; don't get size multiple times (occasionally).
4214 * MirrorJob.cc: new options --log and --script. Implement producing
4215 command log or script file with commands to do mirroring.
4216 * ftpclass.cc: fix dead-lock when resuming fxp with passive source.
4217
4218 2003-02-11 Alexander V. Lukyanov <[email protected]>
4219
4220 * ftpclass.cc: another workaround for proftpd.
4221 * FileCopy.cc: re-get file size/date after redirect.
4222
4223 2003-02-10 Alexander V. Lukyanov <[email protected]>
4224
4225 * ftpclass.cc: lower bind error message level; work around for proftpd;
4226 don't send ABOR if disconnecting immediately (quit_sent).
4227 * FileAccess.cc: handle EPIPE as temporary; properly initialize
4228 array_cnt and array_ptr.
4229
4230 2003-01-27 Oskar Liljeblad <[email protected]>
4231
4232 * FileSet.cc, FileSet.h, commands.cc: add cls sorting by date.
4233
4234 2003-01-19 Alexander V. Lukyanov <[email protected]>
4235
4236 * NetAccess.cc: include sys/types.h as suggested by Camille Huot
4237 <[email protected]> to make it compile on OpenBSD.
4238
4239 2003-01-16 Alexander V. Lukyanov <[email protected]>
4240
4241 * GetFileInfo.cc: don't check if `..', `.' and `/' are files.
4242 * NetAccess.cc: don't set filetype to NORMAL, unset it instead when
4243 following a link; fix compilation on solaris 2.6.
4244
4245 2003-01-10 Paul Lew <[email protected]>
4246
4247 * resource.cc: fix build on solaris 2.6.
4248
4249 2003-01-05 Alexander V. Lukyanov <[email protected]>
4250
4251 * Fish.cc: add -a option for ls.
4252 * commands.cc: add -d option for lftp -f and lftp -c.
4253
4254 2002-12-25 Alexander V. Lukyanov <[email protected]>
4255
4256 * resource.cc: new settings net:socket-bind-ipv4 and net:socket-bind-ipv6.
4257 * ResMgr.cc, ResMgr.h: new method IPv6AddrValidate.
4258 * NetAccess.cc, NetAccess.h: new methods SocketCreate and SocketCreateTCP.
4259 * ftpclass.cc, Http.cc: use SocketCreateTCP.
4260 * FileCopy.cc, FileCopy.h: get size before starting a continuation
4261 transfer and don't start the transfer if not needed.
4262
4263 2002-12-19 Alexander V. Lukyanov <[email protected]>
4264
4265 * NetAccess.cc: check set!=NULL.
4266
4267 2002-12-18 Alexander V. Lukyanov <[email protected]>
4268
4269 * NetAccess.cc: (GenericParseListInfo) handle ~ here.
4270 * LocalAccess.cc (LocalListInfo) handle ~.
4271 * FindJob.cc: revert ~ change.
4272 * MirrorJob.cc: handle ~.
4273 * misc.cc: handle /dir with ./file concatenation nicely.
4274 * lftp_tinfo.cc: compilation fix for certain versions of cygwin.
4275
4276 2002-12-10 Alexander V. Lukyanov <[email protected]>
4277
4278 * FindJob.cc: handle ~ directories properly.
4279 * Fish.cc: fix rename.
4280 * resource.cc: make verify-certificate off by default.
4281
4282 2002-10-23 Alexander V. Lukyanov <[email protected]>
4283
4284 * Speedometer.cc: fixed wrong eta calculation (reported by Haas
4285 Wernfried <[email protected]>).
4286
4287 2002-10-23 Glenn Maynard <[email protected]>
4288
4289 * OutputJob.cc: fix abort when output file is not writable.
4290
4291 2002-10-11 Alexander V. Lukyanov <[email protected]>
4292
4293 * ftpclass.cc: change state to WAITING_STATE from
4294 DATASOCKET_CONNECTING_STATE properly on DataClose().
4295 * Fish.cc: (StoreStatus) check state; send a different store
4296 command when entity_size==0 to avoid dd bug.
4297
4298 2002-09-30 Glenn Maynard <[email protected]>
4299
4300 * misc.cc: unset put_tz properly on set_tz(0).
4301
4302 2002-09-30 Alexander V. Lukyanov <[email protected]>
4303
4304 * misc.cc: call tzset for glibc.
4305
4306 2002-09-26 Albert Chin <[email protected]>
4307
4308 * FileAccess.cc: fix const mismatch (found with HP C++).
4309
4310 2002-09-23 Alexander V. Lukyanov <[email protected]>
4311
4312 * keyvalue.h: make Pair public.
4313 * FileCopy.cc: don't report percent if pos>size.
4314
4315 2002-09-09 Alexander V. Lukyanov <[email protected]>
4316
4317 * lftp.cc: save readline history conditionally.
4318
4319 2002-09-05 Alexander V. Lukyanov <[email protected]>
4320
4321 * Http.cc: allow single LF as EOL (suggested by Peter Vreman
4322 <[email protected]>). Also recommended by RFC2616.
4323
4324 2002-09-04 Alexander V. Lukyanov <[email protected]>
4325
4326 * IdNameCache.cc, IdNameCache.h: fixed a bug which caused a single
4327 object to be put on two lists (rare); fixed a memory leak.
4328 Reported by Tillmann Steinbrecher <[email protected]>.
4329
4330 2002-09-03 Alexander V. Lukyanov <[email protected]>
4331
4332 * Filter.cc: handle ENOSPC and EDQUOT specially when the file is
4333 removed (nlink==0).
4334 * lftp.cc, lftp_rl.c, lftp_rl.h: read/write readline history.
4335
4336 2002-09-02 Glenn Maynard <[email protected]>
4337
4338 * CopyJob.cc, CopyJob.h, pgetJob.cc: add and use dispname to hide
4339 passwords in urls.
4340 * commands.cc, MirrorJob.cc, MirrorJob.h: add --ignore-time option.
4341
4342 2002-08-29 Alexander V. Lukyanov <[email protected]>
4343
4344 * rmJob.cc: set recursive properly. This fixes bug with DELE instead
4345 of RMD.
4346 * OutputJob.cc: handle PutEOF when InitCopy temporarily failed.
4347 * Job.h: (ClearStatus) new method.
4348 * CopyJob.cc: use ClearStatus.
4349 * OutputJob.cc: handle temporary pipe() error.
4350 * resource.cc: add ifdef USE_SSL around AuthArgValidate.
4351
4352 2002-08-28 Alexander V. Lukyanov <[email protected]>
4353
4354 * OutputJob.cc: don't create LocalAccess directly (it breaks modularity).
4355 * OutputJob.cc: check if output_fd really has an error.
4356 * FileCopy.cc: allow FileCopyPeer to be broken, but not done.
4357 * OutputJob.cc: create a temporary buffer if InitCopy don't succeed
4358 at first (temporary error); prepare for pipe() tmp error handling.
4359
4360 2002-08-09 Alexander V. Lukyanov <[email protected]>
4361
4362 * Http.cc, FileAccess.cc: fixed core dump when Content-Disposition
4363 is handled (suggested_filename was not properly initialized).
4364 * Speedometer.cc: fix eta rounding (reported by Igor Zhbanov
4365 <[email protected]>).
4366
4367 2002-08-07 Glenn Maynard <[email protected]>
4368
4369 * lftp_tinfo.cc: use extern "C".
4370
4371 2002-08-06 Alexander V. Lukyanov <[email protected]>
4372
4373 * Job.cc: resume job in Fg.
4374
4375 2002-08-06 Glenn Maynard <[email protected]>
4376
4377 * commands.cc: disallow 0 as queue position.
4378
4379 2002-08-05 Alexander V. Lukyanov <[email protected]>
4380
4381 * misc.cc, misc.h: split off terminfo stuff.
4382 * lftp_tinfo.cc, lftp_tinfo.h: new files.
4383 * StatusLine.cc: use new header lftp_tinfo.h.
4384 * Makefile.am: add new files.
4385
4386 2002-08-02 Alexander V. Lukyanov <[email protected]>
4387
4388 * misc.cc: include termios.h for solaris 9.
4389
4390 2002-08-02 Alexander V. Lukyanov <[email protected]>
4391
4392 * MirrorJob.cc: append source basename to target if target ends with
4393 a slash.
4394
4395 2002-08-01 Alexander V. Lukyanov <[email protected]>
4396
4397 * url.cc: allow a path in slot pseudo-url.
4398
4399 2002-07-31 Alexander V. Lukyanov <[email protected]>
4400
4401 * MirrorJob.cc, MirrorJob.h: do cd on source session first to check
4402 if the directory exists. This fixes creation of directory if source
4403 dir does not exist.
4404
4405 2002-07-31 Ayamura KIKUCHI <[email protected]>
4406
4407 * misc.cc: <curses.h> should be included before <term.h> on IRIX.
4408
4409 2002-07-31 Alexander V. Lukyanov <[email protected]>
4410
4411 * CmdExec.cc, CmdExec.h, commands.cc: allow per-slot queues;
4412 support queue start/stop; rename has_queue to queue_feeder.
4413 * CopyJob.cc, CopyJob.h, FileSetOutput.cc, FileSetOutput.h, FindJob.cc,
4414 FindJob.h, Job.cc, Job.h, MirrorJob.cc, MirrorJob.h, QueueFeeder.cc,
4415 QueueFeeder.h, SleepJob.cc, SleepJob.h, TreatFileJob.cc,
4416 TreatFileJob.h, mgetJob.cc, mgetJob.h, mkdirJob.cc, mkdirJob.h,
4417 mvJob.cc, mvJob.h, pgetJob.cc, pgetJob.h: PrintStatus with explicit
4418 prefix.
4419 * MirrorJob.cc, FileSet.cc, FileSet.h: do SubtractDirs if not recursive.
4420 * CmdExec.cc, FileAccess.cc, FileAccess.h, misc.cc, resource.cc,
4421 url.cc, url.h: properly Clone session in ChangeSlot; add assert;
4422 better slot: url support; better url_file.
4423
4424
4425 2002-07-30 Alexander V. Lukyanov <[email protected]>
4426
4427 * FileCopy.cc: don't do SetTryTime(0).
4428 * ConnectionSlot.cc: fix SetCwd; Clone session properly.
4429 * commands.cc: call ConnectionSlot::SetCwd when not verifying in cd.
4430
4431 2002-07-25 Alexander V. Lukyanov <[email protected]>
4432
4433 * misc.cc: provide errret for setupterm, so that it does not exit
4434 on error, allowing lftp to work without valid TERM.
4435 * CmdExec.cc: set slot in ChangeSession, fixes scache+slot combo.
4436
4437 2002-07-24 Alexander V. Lukyanov <[email protected]>
4438
4439 * complete.cc: no need for multiple functions slot-N.
4440
4441 2002-07-23 Glenn Maynard <[email protected]>
4442
4443 * misc.cc, misc.h: Add get_string_term_cap; tries both terminfo and termcap.
4444 (We could probably get away with only termcap names, but it's nice to
4445 have them side-by-side, since the terminfo names are more useful.)
4446
4447 StatusLine.cc, StatusLine.h: Add tsl/dsl cap support. Used only if
4448 * cmd:term-status is blank. Clear title in dtor, so we don't leave
4449 it behind if the user's shell (or invoking program) doesn't know
4450 to clear it.
4451
4452 * CmdExec.cc: Delete the statusbar on exit, so it doesn't stick around
4453 if we move to background. This triggers the title clear. (It also
4454 ensures nothing gets written to the title--now the log--though I don't
4455 think that ever happens.)
4456
4457 2002-07-18 Alexander V. Lukyanov <[email protected]>
4458
4459 * CmdExec.cc: don't clear signals if not interactive (suggested by
4460 Glenn Maynard <[email protected]>)
4461 * Fish.cc, Http.cc, NetAccess.cc, NetAccess.h, ResMgr.cc, ResMgr.h,
4462 ftpclass.cc, resource.cc: separate rate limitations for download
4463 and upload.
4464
4465 2002-07-17 Alexander V. Lukyanov <[email protected]>
4466
4467 * commands.cc, CmdExec.cc, CmdExec.h: fix mem leak by eliminating
4468 var_ls member (it was not freed).
4469 * Speedometer.cc: count speed starting from first data byte.
4470 * ProcWait.cc: propagete SIGINT to main lftp process.
4471
4472 2002-07-17 Alexander V. Lukyanov <[email protected]>
4473
4474 * ResMgr.cc, resource.cc, FileAccess.cc, FileAccess.h: ftp:device-prefix
4475 setting (default off).
4476
4477 2002-07-12 Glenn Maynard <[email protected]>
4478
4479 * FindJob.cc, commands.cc: delete args properly. This fixes a coredump.
4480 * CopyJob.cc: fix format string error.
4481
4482 2002-07-12 Glenn Maynard <[email protected]>
4483
4484 * OutputJob.cc, OutputJob.h:
4485 Update comments.
4486
4487 Let the input copier own output_fd, so it'll delete it when it's done
4488 with it as intended (fixing the delete->close fd->output finished code path).
4489 This also means we don't have to deal with fg_data in OutputJob (since
4490 the copier owns the fd, CopyJob will do it for us.)
4491
4492 eof is gone.
4493
4494 Store width/tty status so we don't need output_fd after initialization.
4495 (needed in order to let the copier own it)
4496
4497 Reversed DontFailIfBroken parameter.
4498
4499 Disable fail_if_broken correctly; leave incorrect one in place for now
4500 (see comments.) Fixes broken pipe with zcat.
4501
4502 Use Timer; fixes scheduler problems with updating the statusline.
4503
4504 Clear the status line on init, since if we have a statusline and
4505 we start a filter we won't be able to clear it later (due to changed
4506 pgrp.)
4507
4508 * StatusLine.cc, StatusLine.h, OutputJob.cc, all ShowStatusLine users:
4509 When we've output to stdout recently, instead of refusing to print a
4510 statusline, instead tell the statusline to only send the next update to
4511 the title. This gives us a title status during "cat", etc.
4512
4513 * CmdExec.cc, StatusLine.cc, StatusLine.h: Don't clear the title when
4514 we're clearing the statusline due to stdout.
4515
4516 * CatJob.cc: Override ShowRunStatus to call output->ShowStatusLine. (Any
4517 job using an OutputJob should call ShowStatusLine() before it or a child
4518 displays a statusline; CopyJob, CatJob's child, was displaying a
4519 statusline without doing this.)
4520
4521 * OutputJob.cc, OutputJob.h, CatJob.cc: Don't reenable the statusbar for
4522 commands that stream data from the server, since that's annoying when
4523 the server is rate-limited per-second.
4524
4525 2002-07-10 Glenn Maynard <[email protected]>
4526
4527 * CmdExec.cc: fd leak fixed.
4528
4529 2002-07-10 Alexander V. Lukyanov <[email protected]>
4530
4531 * CharReader.cc, FileAccess.cc, Filter.cc, ftpclass.cc: F_GETFL returns
4532 flags as fcntl return value.
4533
4534 2002-07-10 Glenn Maynard <[email protected]>
4535
4536 * CatJob.cc, CatJob.h, ColumnOutput.cc, ColumnOutput.h, CopyJob.cc,
4537 CopyJob.h, FileCopy.cc, FileCopy.h, FileSetOutput.cc, FileSetOutput.h,
4538 Filter.cc, Filter.h, Job.h, Makefile.am, OutputJob.cc, OutputJob.h,
4539 commands.cc, complete.cc, echoJob.cc, echoJob.h: OuputJob support.
4540
4541 2002-07-10 Alexander V. Lukyanov <[email protected]>
4542
4543 * CmdExec.cc, CmdExec.h, ConnectionSlot.cc, ConnectionSlot.h,
4544 FileAccess.cc, commands.cc, complete.cc, keyvalue.cc, keyvalue.h,
4545 lftp.cc, lftp_rl.cc, lftp_rl.h, misc.cc, url.cc: connection slot
4546 support.
4547
4548 2002-07-07 Alexander V. Lukyanov <[email protected]>
4549
4550 * Http.cc, FileAccess.cc, FileAccess.h: (GetSuggestedFileName) new
4551 method; handle Content-Disposition filename= in Http.
4552
4553 2002-07-07 Glenn Maynard <[email protected]>
4554
4555 * MirrorJob.cc, MirrorJob.h: add FINISHING state; fix transfer_count
4556 bug which led to more parallel transfers than was requested.
4557
4558 2002-07-06 Albert Chin <[email protected]>
4559
4560 * ChmodJob.h: make HP-UX C++ happy.
4561
4562 2002-06-18 Alexander V. Lukyanov <[email protected]>
4563
4564 * Http.cc, ResMgr.cc, SMTask.cc, SMTask.h, buffer.cc, buffer.h,
4565 buffer_ssl.cc, buffer_ssl.h, ftpclass.cc, lftp_ssl.cc, lftp_ssl.h,
4566 resource.cc: ssl certificate support.
4567
4568 2002-06-17 Glenn Maynard <[email protected]>
4569
4570 * MirrorJob.cc: pass timestamp to copier even if it is inaccurate.
4571 This fixes mirror with servers not supporting MDTM.
4572
4573 2002-06-11 Alexander V. Lukyanov <[email protected]>
4574
4575 * FileAccess.cc: copy vproto in clone ctor.
4576 * parsecmd.cc, complete.cc: allow ! to be backslash-quoted (for csh-history).
4577 * ResMgr.cc, ResMgr.h: new verificators: FileReadable, DirReadable.
4578
4579 2002-06-05 Alexander V. Lukyanov <[email protected]>
4580
4581 * FileCopy.cc: set buf to 0 after xfree; this fixes double free.
4582
4583 2002-06-03 Glenn Maynard <[email protected]>
4584
4585 * Resolver.cc: free_ha is not actually needed.
4586
4587 2002-05-31 Alexander V. Lukyanov <[email protected]>
4588
4589 * FileCopy.cc: (GetStatus) don't use fixed buffer - it can be overflowed.
4590 (reported by Lethal Weapon <[email protected]>).
4591 * ftpclass.cc: move PROT and PBSZ commands to after USER/PASS.
4592 Requested by Nick Leuta <[email protected]>.
4593
4594 2002-05-29 Alexander V. Lukyanov <[email protected]>
4595
4596 * ftpclass.cc: fixed pasv address fixation.
4597 * Filter.cc: use xasprintf.
4598
4599 2002-05-20 Alexander V. Lukyanov <[email protected]>
4600
4601 * pgetJob.cc: let the copyer run before the session to avoid unneeded
4602 reconnect.
4603
4604 2002-05-16 Alexander V. Lukyanov <[email protected]>
4605
4606 * Http.cc: handle '100 Continue' independently of open mode.
4607 * Resolver.cc: free hostent structure from getipnodebyname;
4608 create ResolverCache only when needed.
4609
4610 2002-05-14 Alexander V. Lukyanov <[email protected]>
4611
4612 * StatusLine.cc: fix for terminals with am and with no xenl (a space
4613 could be written in last column).
4614 * Http.cc: limit non-absolute Location handling to POST method.
4615
4616 2002-05-13 Michail Litvak <[email protected]
4617
4618 * Resolver.cc: check that addresses have proper length.
4619
4620 2002-05-08 Alexander V. Lukyanov <[email protected]>
4621
4622 * Http.cc: more generic non-absolute Location: handling; use url::is_url.
4623
4624 2002-05-07 Alexander V. Lukyanov <[email protected]>
4625
4626 * ftpclass.cc: move to next peer if no greeting received.
4627 * Http.cc: handle redirection to non-absolute url specially.
4628 * FileCopy.cc: change FAmode to RETRIEVE when redirecting from QUOTE_CMD.
4629
4630 2002-05-05 Alexander V. Lukyanov <[email protected]>
4631
4632 * LsCache.cc, LsCache.h, commands.cc: add cache:enable, cache:expire
4633 and cache:size settings.
4634
4635 2002-04-30 Alexander V. Lukyanov <[email protected]>
4636
4637 * Http.cc: add missing port to hftp request.
4638 * ftpclass.cc: ignore any 550 error for NLST if no file name given.
4639
4640 2002-04-27 Glenn Maynard <[email protected]>
4641
4642 * LsCache.cc: add cache:cache-empty-listings.
4643 * buffer.h: add IsSaving().
4644 * FtpDirList.cc, Fish.cc: use alternative LsCache::Add.
4645
4646 2002-04-23 Alexander V. Lukyanov <[email protected]>
4647
4648 * FileCopyFtp.cc, resource.cc: add ftp:fxp-force setting.
4649 * ftpclass.cc: fix status in fxp mode.
4650
4651 2002-04-18 Glenn Maynard <[email protected]>
4652
4653 * Job.cc: Free waiting on dtor.
4654 * GetFileInfo.cc, GetFileInfo.h: fix comment.
4655
4656 2002-04-17 Alexander V. Lukyanov <[email protected]>
4657
4658 * MirrorJob.cc: create first target directory with all parent dirs.
4659
4660 2002-04-15 Glenn Maynard <[email protected]>
4661
4662 * TreatFileJob.cc: remove unneeded return.
4663
4664 2002-04-08 Alexander V. Lukyanov <[email protected]>
4665
4666 * Http.cc: accept file size in 416 reply.
4667
4668 2002-04-08 Glenn Maynard <[email protected]>
4669
4670 * FileSetOutput.cc: fix unneeded assert.
4671
4672 2002-03-26 Alexander V. Lukyanov <[email protected]>
4673
4674 * ftpclass.cc: don't send CWD ~ when PWD failed.
4675
4676 2002-03-18 Alexander V. Lukyanov <[email protected]>
4677
4678 * NetAccess.cc: explicit cast for Compaq C++.
4679
4680 2002-03-18 Alexander V. Lukyanov <[email protected]>
4681
4682 * ProcWait.cc: don't flood stdout with waitpid errors, it can be
4683 possible if lftp forks into background.
4684
4685 2002-03-15 Alexander V. Lukyanov <[email protected]>
4686
4687 * Job.cc: fix occasional spinning when mirror terminates.
4688
4689 2002-03-14 Alexander V. Lukyanov <[email protected]>
4690
4691 * SleepJob.cc: if the time is in the past, assume it is for tomorrow.
4692
4693 2002-03-13 Alexander V. Lukyanov <[email protected]>
4694
4695 * NetAccess.cc: don't clear hostname etc on lookup error.
4696 * FileAccess.cc: (Chdir) handle cwd==0 correctly (reported by Glenn
4697 Maynard <[email protected]>).
4698
4699 2002-03-10 Alexander V. Lukyanov <[email protected]>
4700
4701 * ftpclass.cc: add ifdef USE_SSL around data_ssl.
4702
4703 2002-02-27 Ayamura KIKUCHI <[email protected]>
4704
4705 * FileSetOutput.cc, lftp.cc: locale.h is now included from config.h.
4706
4707 2002-02-26 Alexander V. Lukyanov <[email protected]>
4708
4709 * ftpclass.cc: add TLS flag to status when data connection is secured.
4710
4711 2002-02-24 Alexander V. Lukyanov <[email protected]>
4712
4713 * ftpclass.cc: flip copy_passive on any 425 reply.
4714 * ftpget: fix ' quoting.
4715
4716 2002-02-15 Alexander V. Lukyanov <[email protected]>
4717
4718 * FtpListInfo.cc: restore line contents after each parser.
4719
4720 2002-02-12 Alexander V. Lukyanov <[email protected]>
4721
4722 * CharReader.cc, CharReader.h: handle EINTR properly; try reading in
4723 non-block mode instead of polling.
4724
4725 2002-02-11 Alexander V. Lukyanov <[email protected]>
4726
4727 * lftpget: more ' quoting. -v should work now.
4728
4729 2002-02-07 Alexander V. Lukyanov <[email protected]>
4730
4731 * ResMgr.cc, resource.cc: verify resource defaults in ResMgr::ClassInit.
4732 * MirrorJob.cc: modify transfer_count when MirrorJob becomes Done
4733 and not in dtor.
4734
4735 2002-01-31 Alexander V. Lukyanov <[email protected]>
4736
4737 * Job.cc: don't call Do in ShowRunStatus, it can do bad side effects.
4738 * SMTask.cc: remove invalid assert.
4739
4740 2002-01-30 Alexander V. Lukyanov <[email protected]>
4741
4742 * MirrorJob.cc: give direct parent a priority to continue transfers.
4743 * ftpclass.cc: better status for fxp transfers.
4744
4745 2002-01-29 Alexander V. Lukyanov <[email protected]>
4746
4747 * LocalDir.cc, LocalDir.h: add forgotten dtor.
4748
4749 2002-01-27 Glenn Maynard <[email protected]>
4750
4751 * commands.cc: implement du --block-size
4752
4753 2002-01-26 Alexander V. Lukyanov <[email protected]>
4754
4755 * commands.cc: add missing \n.
4756
4757 2002-01-24 Alexander V. Lukyanov <[email protected]>
4758
4759 * ftpclass.cc, lftp_ssl.h: workaround for improperly closed ssl
4760 data connection.
4761
4762 2002-01-22 Alexander V. Lukyanov <[email protected]>
4763
4764 * ftpclass.cc, lftp_ssl.cc: fix random SSL_write errors
4765 (bad write retry); fix ftp spinning in ssl mode.
4766 * ftpclass.cc: don't use AUTH TLS for ftp proxy.
4767
4768 2002-01-17 Glenn Maynard <[email protected]>
4769
4770 * ChmodJob.cc: add missing \n.
4771
4772 2002-01-14 Alexander V. Lukyanov <[email protected]>
4773
4774 * Resolver.cc: fixed coredump on unknown service.
4775
4776 2002-01-13 Alexander V. Lukyanov <[email protected]>
4777
4778 * StringPool.cc: handle null pointer.
4779
4780 2002-01-10 Alexander V. Lukyanov <[email protected]>
4781
4782 * CatJob.cc, CatJob.h: use DontFailIfBroken.
4783 * LocalAccess.cc: (CurrentStatus) implemented; use stream->status;
4784 use chdir to verify directories.
4785
4786 2002-01-10 Glenn Maynard <[email protected]>
4787
4788 * FileCopy.cc, FileCopy.h: (fail_if_broken) new member.
4789 * ftpclass.cc: comments added; cosmetic changes.
4790
4791 2002-01-09 Alexander V. Lukyanov <[email protected]>
4792
4793 * FileCopy.cc, FileCopy.h: (FileCopyPeer::done) new member; use it;
4794 (FileCopyPeerFDStream::Done) method removed.
4795
4796 2002-01-08 Alexander V. Lukyanov <[email protected]>
4797
4798 * Job.cc, Job.h: (CheckForWaitLoop) new method.
4799 * commands.cc: (wait) use it.
4800
4801 2002-01-04 Alexander V. Lukyanov <[email protected]>
4802
4803 * LocalDir.cc, LocalDir.h: new files.
4804 * CmdExec.cc, CmdExec.h: use new LocalDirectory class; specify local
4805 directory at CmdExec creation time.
4806 * LocalAccess.cc: use LocalDirectory.
4807 * SleepJob.cc, SleepJob.h: specify LocalDirectory at creation time;
4808 use it to create CmdExec.
4809 * commands.cc: handle new CmdExec and SleepJob creation; allow lpwd
4810 redirection.
4811 * lftp.cc: new CmdExec ctor.
4812
4813 2002-01-03 jfaith <[email protected]>
4814
4815 * resource.cc: (OrderValidate) fix off by one xmalloc bug.
4816
4817 2002-01-03 Alexander V. Lukyanov <[email protected]>
4818
4819 * Filter.cc: don't stop process if there is a process group already;
4820 don't call second->Done if !delete_second.
4821 * lftpget: quote single quote properly.
4822 * Fish.cc: use fish:connect-program setting.
4823 * resource.cc: new fish setting; don't send referer by default.
4824
4825 2002-01-01 Alexander V. Lukyanov <[email protected]>
4826
4827 * ftpclass.cc, ftpclass.h: fix SendCWD to set correct check case.
4828
4829 2001-12-26 Alexander V. Lukyanov <[email protected]>
4830
4831 * ArgV.h: new ctor.
4832 * CatJob.cc, CatJob.h: use ArgV to launch filters; always launch
4833 global command if there is for_each filter.
4834 * Filter.cc, Filter.h: DeleteSecondaryStream new method; improve
4835 OutputFilter::{usesfd,Done,Kill}.
4836
4837 2001-12-26 Glenn Maynard <[email protected]>
4838
4839 * ftpclass.cc: correct message.
4840
4841 2001-12-25 Alexander V. Lukyanov <[email protected]>
4842
4843 * Http.cc: assume keep-alive for http/1.1 by default (reported by
4844 Marc Lehmann).
4845
4846 2001-12-24 Alexander V. Lukyanov <[email protected]>
4847
4848 * ftpclass.cc: reset real_cwd when someone does quote CWD and the like;
4849 scan PWD reply for rightmost quote (suggested by Glenn Maynard);
4850 separate method SendCWD.
4851
4852 2001-12-24 Glenn Maynard <[email protected]>
4853
4854 * StatusLine.h: make GetWidthDelayed const.
4855
4856 2001-12-24 Alexander V. Lukyanov <[email protected]>
4857
4858 * LsCache.cc: ignore SetDirectory with NULL argument.
4859
4860 2001-12-21 Alexander V. Lukyanov <[email protected]>
4861
4862 * mkdirJob.cc, mkdirJob.h: use orig_session approach instead of
4863 url_session.
4864 * FindJob.cc, FindJob.h: Fg/Bg methods.
4865
4866 2001-12-20 Alexander V. Lukyanov <[email protected]>
4867
4868 * ArgV.cc, ArgV.h: (seek) new method.
4869 * MirrorJob.cc: seek args before TreatJob creation.
4870 * ftpclass.cc, ftpclass.h, NetAccess.cc, NetAccess.h, Http.cc, Http.h,
4871 Fish.cc, Fish.h: get rid of takeover_time; use last_priority and
4872 idle_start (idea of Glenn Maynard).
4873 * ftpclass.cc: call PopResp before actual checking, so that Disconnect
4874 can see empty RespQueue.
4875 * QueueFeeder.cc: don't print dots where there is only 5 jobs queued.
4876 * HttpDir.cc: more strict checking for squid ftp listings; handle TR
4877 similarly to /TR.
4878
4879 2001-12-20 Glenn Maynard <[email protected]>
4880
4881 * FileAccess.cc, FileAccess.h: add last_priority member.
4882 * ftpclass.cc, ftpclass.h: tune log levels.
4883
4884 2001-12-19 Alexander V. Lukyanov <[email protected]>
4885
4886 * QueueFeeder.cc: pass correct job count to plural().
4887
4888 2001-12-19 Glenn Maynard <[email protected]>
4889
4890 * GetFileInfo.cc, GetFileInfo.h: Use GetArrayInfo as a last-ditch effort
4891 to get information. Add most (hopefully all) branches of the basic
4892 logic. (It doesn't list cases where cache is wrong--that can happen
4893 just about anywhere.)
4894 * CmdExec.cc, CmdExec.h: unquote, static buffer.
4895 * commands.cc, QueueFeeder.cc, QueueFeeder.h: give queue feedback.
4896
4897 2001-12-18 Glenn Maynard <[email protected]>
4898
4899 * module.cc: change XXX to TODO.
4900 * buffer.cc buffer.h: add GetPos() and vFormat.
4901 * FileCopy.cc: FileCopyPeer can_seek and can_seek0 default to off;
4902 enable it in the derived classes.
4903 * FileCopy.h: Allow re-disabling AllowWrite and finding out if a
4904 FileCopy is line-buffered.
4905
4906 2001-12-18 Alexander V. Lukyanov <[email protected]>
4907
4908 * FileCopy.cc, FileCopy.h, Filter.cc, Filter.h: an attempt to
4909 show correct status on disk full condition.
4910
4911 2001-12-17 Alexander V. Lukyanov <[email protected]>
4912
4913 * GetFileInfo.cc: move SetCwd(origdir) to dtor; improve comment.
4914 * MirrorJob.cc: try to enable write access to file being appended.
4915
4916 2001-12-17 Glenn Maynard <[email protected]>
4917
4918 * commands.cc: queue --delete has no argument.
4919
4920 2001-12-17 Alexander V. Lukyanov <[email protected]>
4921
4922 * MirrorJob.cc, MirrorJob.h: clean up removing/chmod-ing; allow them
4923 to be excuted in parallel; start scripting support.
4924 * GetJob.cc, GetJob.h, commands.cc: get -e option to remove target
4925 file first.
4926
4927 2001-12-17 Alexander V. Lukyanov <[email protected]>
4928
4929 * commands.cc: encode ' in bookmarks.
4930 * CmdExec.cc: quote ' properly.
4931 * MirrorJob.cc: handle mirror:parallel-transfer-count.
4932 * bookmark.cc, bookmark.h, keyvalue.cc, keyvalue.h, commands.cc:
4933 don't show bookmarked passwords on `bookmark list', replace them
4934 with XXXX.
4935
4936 2001-12-15 Alexander V. Lukyanov <[email protected]>
4937
4938 * FindJob.cc: use default session's cwd as default url path.
4939 * Fish.cc, Fish.h, HttpDir.cc, Http.h: add ParseLongList method
4940 (for Http - by Glenn Maynard).
4941 * GetFileInfo.cc: call LsCache::SetDirectory.
4942 * MirrorJob.cc: don't delete exclude in non-root mirror; add -X/-I
4943 options; handle default exclude setting mirror:exclude-regex;
4944 don't exclude all directories if first pattern is include pattern.
4945 * PatternSet.cc, PatternSet.h: simplify matching; fix Glob matching.
4946 * resource.cc: remove mirror:include-regex.
4947
4948 2001-12-14 Alexander V. Lukyanov <[email protected]>
4949
4950 * FileSet.cc: Exclude appends / for directories before matching.
4951 * PatternSet.cc, PatternSet.h: match last directory components
4952 in Glob::Match, e.g. abc/def/ghi.zip matches def/*.zip.
4953
4954 2001-12-14 Alexander V. Lukyanov <[email protected]>
4955
4956 * FileAccess.cc, FileAccess.h, FileSet.cc, FileSet.h, FindJob.cc,
4957 FindJob.h, GetFileInfo.cc, LocalAccess.cc, Makefile.am, MirrorJob.cc,
4958 MirrorJob.h, NetAccess.cc, PatternSet.cc, PatternSet.h, commands.cc,
4959 ftpclass.cc: (PatternSet) new class. Use it for exclude/include.
4960 * MirrorJob.cc: fixed session leak in case of options error.
4961
4962 2001-12-14 Alexander V. Lukyanov <[email protected]>
4963
4964 * GetFileInfo.cc: add forgotten SetError.
4965 * TimeDate.h: don't use time_t as operator arg, it confuses compaq c++.
4966
4967 2001-12-14 Albert Chin-A-Young <[email protected]>
4968
4969 * lftp_pty.c: add missing brace.
4970 * misc.cc: define unsetenv prototype if needed.
4971
4972 2001-12-13 Alexander V. Lukyanov <[email protected]>
4973
4974 * FileAccess.cc, FileAccess.h: (OptimizePath) new method; optimize
4975 path to cd to in ExpandTildeInCWD.
4976 * GetFileInfo.cc: try the file as directory even if showdir, to
4977 return type info; use server returned error message; don't give up
4978 if the file is not in FileSet; try directory to get error message
4979 if we know from cache that there is no such file; try another
4980 method only if we get NO_FILE error; strip all trailing slashes;
4981 don't assume result!=0; don't descend to directory if showdir;
4982 don't check verify_fn if was_directory; some xfree's added.
4983 * FileSetOutput.cc: don't print anything if GetFileInfo returned no set.
4984 * commands.cc: remove double Usage from chmod help.
4985
4986 2001-12-13 Glenn Maynard <[email protected]>
4987
4988 * ChmodJob.cc: cosmetics.
4989 * FindJob.cc: fix mem leak; fix status.
4990 * GetFileInfo.cc: move the ~ and / special case check after the initial
4991 chdir.
4992 * NetAccess.cc: fix status message.
4993
4994 2001-12-13 Alexander V. Lukyanov <[email protected]>
4995
4996 * LsCache.h: rename Find to FindFileSet.
4997 * LsCache.cc: fixed test for fset reusability in FindFileSet;
4998 fixed FindFileSet calling in IsDirectory - restore cwd first and
4999 don't delete fset.
5000
5001 2001-12-11 Alexander V. Lukyanov <[email protected]>
5002
5003 * ChmodJob.cc: handle undefined mode correctly.
5004 * misc.cc: fix dirname_alloc to strip all trailing slashes and
5005 return / for /file.
5006 * FindJob.cc, FindJob.h, GetFileInfo.cc: support URLs and ~ in find;
5007 print URL if processing an URL.
5008
5009 2001-12-11 Glenn Maynard <[email protected]>
5010
5011 * ChmodJob.cc, ChmodJob.h: Add relative paths, -v, -c, -R. Maintain
5012 simple numeric mode interface.
5013 * FileSetOutput.cc: make sure "cls -ld ." shows the directory, even
5014 without "show_dots".
5015 * FindJob.cc, FindJob.h: Accept files as well as directories to NextDir().
5016 Pass top-level path to ProcessFile. Don't get listing if we don't need it.
5017 * FindJobDu.cc: print files with "du filename" even without -a.
5018 * GetFileInfo.cc, GetFileInfo.h: Make prefixing the path optional.
5019 Add member to find out whether the given path was a file or directory.
5020 Fix verification with ".." at the end of path.
5021 If ".." was requested (with show_dirs on), return "..", not the
5022 name of the directory, etc.
5023 * TreatFileJob.cc, TreatFileJob.h: Derive from FinderJob. AddFile() no
5024 longer needed.
5025 * commands.cc: chmod, rm, rmdir updated. Give find "." instead of "" by
5026 default.
5027 * misc.cc, misc.h: Add dirname_alloc(). (Semantics are not exactly the
5028 same as dirname.)
5029 * rmJob.cc, rmJob.h: Handle rm -r directly.
5030 * FileAccess.h: (GetPriority) new method.
5031
5032 2001-12-11 Alexander V. Lukyanov <[email protected]>
5033
5034 * mkdirJob.cc: set priority on newly created url_session.
5035
5036 2001-12-10 Alexander V. Lukyanov <[email protected]>
5037
5038 * LsCache.cc: don't assume the listing to be parseable; call free_fset
5039 when listing is replaced with new one.
5040 * mkdirJob.cc, mkdirJob.h, MirrorJob.cc, MirrorJob.h: add Fg/Bg.
5041 * MirrorJob.cc, MirrorJob.h, resource.cc: allow several directories
5042 to be processed in parallel; new resources.
5043 * FileSet.cc: match trailing slash on directories in SortByPatternList;
5044 make it case insensitive.
5045
5046 2001-12-10 Glenn Maynard <[email protected]>
5047
5048 * LsCache.cc, LsCache.h, ftpclass.cc: Add explicit filetype caching.
5049 * LsCache.cc, LsCache.cc: Cache a single fileset.
5050 * GetFileInfo.cc, GetFileInfo.h: Fix up cache lookups. Call Close().
5051
5052 2001-12-07 Alexander V. Lukyanov <[email protected]>
5053
5054 * FileCopy.cc, FileCopy.h: (RemoveTargetFirst) new method; do it.
5055 * MirrorJob.cc, MirrorJob.h: use RemoveTargetFirst; mirror -P
5056 works again; fix NULL dereference in PrintStatus; don't derive
5057 from SessionJob - use source_session member instead;
5058 do mkdir in child mirror; new Statistics struct; add statistics
5059 to parent mirror in child mirror's dtor.
5060 * TimeDate.h: rearrange inline functions to help compiler.
5061
5062 2001-12-05 Alexander V. Lukyanov <[email protected]>
5063
5064 * NetAccess.cc: improve GenericParseListInfo status.
5065 * buffer.cc, buffer.h: allow a Speedometer to be associated with
5066 Buffer class.
5067
5068 2001-12-05 Glenn Maynard <[email protected]>
5069
5070 * FileSetOutput.cc, FileSetOutput.h: Add Suspend(), Resume(), Fg(), Bg().
5071 * QueueFeeder.cc: remove _GNU_SOURCE.
5072
5073 2001-12-05 Alexander V. Lukyanov <[email protected]>
5074
5075 * LsCache.cc: use alloca in IsDirectory; style.
5076 * MirrorJob.cc: fix eprintf calls - double parent led to NULL.
5077
5078 2001-12-05 Glenn Maynard <[email protected]>
5079
5080 * GetFileInfo.cc: use LsCache::IsDirectory.
5081 * LsCache.cc, LsCache.h: implement LsCache::IsDirectory.
5082
5083 2001-12-05 Alexander V. Lukyanov <[email protected]>
5084
5085 * FileAccess.h: (ParseLongList) new virtual method.
5086 * NetAccess.h: call session->ParseLongList by default from
5087 GenericParseListInfo.
5088 * FtpListInfo.cc, FtpListInfo.h, ftpclass.h: move parser to Ftp class.
5089
5090 2001-12-05 Alexander V. Lukyanov <[email protected]>
5091
5092 * CmdExec.h: include Glob.h.
5093 * DummyProto.h, DummyProto.cc: little optimization; new MakeListInfo.
5094 * FileAccess.cc, FileAccess.h: ListInfo takes path; move Glob to
5095 separate file.
5096 * Glob.cc, Glob.h: new files; new GenericGlob class uses ListInfo.
5097 * FileSet.cc, FileSet.h: fix date copying; remove unused method.
5098 * mgetJob.cc, FileSetOutput.cc: include Glob.h.
5099 * Fish.cc, Fish.h: use GenericGlob; new ListInfo ctor.
5100 * FtpListInfo.h: new ListInfo ctor.
5101 * GetFileInfo.cc, GetFileInfo.h: new ListInfo ctor; path renamed.
5102 * Http.cc, Http.h: new ListInfo ctor.
5103 * HttpDir.cc, HttpDir.h: prepare for date filling; use GenericGlob.
5104 * LocalAccess.cc, LocalAccess.h: new ListInfo ctor.
5105 * Makefile.am: adjust for added/removed files.
5106 * NetAccess.cc, NetAccess.h: remove GenericParseGlob class; new ListInfo ctor.
5107 * ftpclass.cc, ftpclass.h: new ListInfo ctor.
5108 * FtpGlob.cc, FtpGlob.h: removed files.
5109
5110 2001-12-04 Alexander V. Lukyanov <[email protected]>
5111
5112 * NetAccess.cc, NetAccess.h: improve GenericParseListInfo so that
5113 multiple modes can be tried.
5114 * FtpListInfo.cc, FtpListInfo.h: make it subclass of GenericParseListInfo;
5115 try to guess listing type quickly.
5116 * FtpSplitList.cc, FtpSplitList.h: files removed.
5117
5118 2001-12-03 Glenn Maynard <[email protected]>
5119
5120 * FileSetOutput.cc: don't add type suffix if type is not defined.
5121 * ftpclass.cc: lower disconnection message debug level if session
5122 is closed.
5123 * FtpListInfo.cc: add forgotten new FileInfo.
5124 * GetFileInfo.cc: call UseCache; don't use type if it is not defined.
5125
5126 2001-11-30 Alexander V. Lukyanov <[email protected]>
5127
5128 * ftpclass.cc: ftp:use-site-chmod setting; don't simulate eof for
5129 anything but RETRIEVE; don't do MKD ..
5130 * resource.cc: ftp:use-site-chmod setting; mirror:order instead of
5131 two different settings.
5132 * MirrorJob.cc, MirrorJob.h: get rid of REVERSE; implement mirroring
5133 between two sessions; recognize URLs.
5134 * FtpGlob.cc: don't show . as directory.
5135 * FtpListInfo.cc: try MDTM if date_prec>0.
5136 * Http.cc: send content-length for mkdir.
5137 * LocalAccess.cc: suppress EEXIST error message; correctly handle mkdir -p.
5138
5139 2001-11-29 Glenn Maynard <[email protected]>
5140
5141 * CmdExec.cc, alias.cc, commands.cc, complete.cc: case insensitive
5142 commands and aliases.
5143
5144 2001-11-26 Alexander V. Lukyanov <[email protected]>
5145
5146 * FileCopy.cc, FileFeeder.cc, Filter.cc, Filter.h, Http.cc,
5147 LocalAccess.cc, ProcWait.cc, PtyShell.cc, Resolver.cc, SMTask.cc,
5148 SMTask.h, buffer.cc, ftpclass.cc, misc.cc, misc.h:
5149 (NonFatalError) new function; use it; new setting xfer:full-disk-fatal;
5150 use SMTask::now from guess_year.
5151
5152 2001-11-23 Glenn Maynard <[email protected]>
5153
5154 * ftpclass.cc: fix query for ftp:web-mode.
5155 * FileSetOutput.cc: Fixed wildcard silliness in CLS. First, I meant
5156 strpbrk, not strspn; second, it needs to handle escapes anyway, and
5157 you already have a function to do that.
5158 * GetFileInfo.cc: If a file "abc" exists, and we do "cls abc/def", fail.
5159 Improve ENOENT and EACCES error messages.
5160 * FtpGlob.cc: Add path to FtpGlob status.
5161 * FtpSplitList.cc, FtpListInfo.cc: Move some status stuff from
5162 FtpListInfo to FtpSplitList. (FtpSplitList was essentially doing
5163 this stuff anyway, just not as intelligently.)
5164 * commands.cc: improve error message of cls.
5165
5166 2001-11-22 Alexander V. Lukyanov <[email protected]>
5167
5168 * commands.cc: fix - rmdir/rm were interchanged.
5169
5170 2001-11-21 Alexander V. Lukyanov <[email protected]>
5171
5172 * ftpclass.cc, ftpclass.h: don't assume peer!=0, copy control socket
5173 name to member peer_sa.
5174 * NetAccess.cc: remove obsolete commented out asserts.
5175 * Fish.cc: set user, group, nlinks and mode in FileInfo class.
5176
5177 2001-11-20 Alexander V. Lukyanov <[email protected]>
5178
5179 * DirColors.cc, DirColors.h: move resource definition to make it
5180 compile on irix.
5181 * CmdExec.cc: remove unneeded if's.
5182 * FileSet.cc: use IdNameCache.
5183 * TimeDate.cc, TimeDate.h: init Time from SMTask::now, this saves
5184 a syscall.
5185 * Timer.cc, Timer.h: add ctor from TimeDiff.
5186 * lftp.cc: call IdNameCacheCleanup.
5187 * IdNameCache.cc, IdNameCache.h: new files.
5188
5189 2001-11-19 Alexander V. Lukyanov <[email protected]>
5190
5191 * lftp.cc: don't set LC_NUMERIC. It breaks default float settings
5192 on certain locales.
5193 * FileSetOutput.h: make it compile on irix.
5194 * FileSet.cc, FileSet.h: (SubtractCurr) new method; cosmetics.
5195 * FtpListInfo.cc: remove FileInfo copying.
5196 * LocalAccess.cc: remove files of unknown type from the set.
5197 * misc.cc: use va_copy, should help powerpc.
5198
5199 2001-11-15 Alexander V. Lukyanov <[email protected]>
5200
5201 * DirColors.cc, DirColors.h: several new methods.
5202 * FileAccess.h: add color member to DirList.
5203 * FileSetOutput.cc: don't print size when it is not defined.
5204 * FtpDirList.cc, FtpDirList.h, commands.cc: add color ls support.
5205
5206 2001-11-15 Glenn Maynard <[email protected]>
5207
5208 * FindJobDu.cc, FindJobDu.h, commands.cc: du --files implemented.
5209 * ftpclass.cc, resource.cc: ftp:ssl-allow-anonymous new setting;
5210 add host closure for ftp:ssl-* settings.
5211 * FtpListInfo.cc: optimize unix list parser by not copying FileInfo.
5212
5213 2001-11-15 Alexander V. Lukyanov <[email protected]>
5214
5215 * MirrorJob.cc, MirrorJob.h: --allow-chown and -a - new options.
5216 * FileSet.cc, FileSet.h: (LocalChown) new method.
5217 * commands.cc: add --allow-chown to mirror help.
5218 * ftpclass.cc, ftpclass.h: fix web-mode.
5219
5220 2001-11-14 Alexander V. Lukyanov <[email protected]>
5221
5222 * FileSet.cc, FileSet.h: add rank member; sorting by it;
5223 SortByPatternList new method of FileSet; get rid of DATE_UNPREC;
5224 add date_prec member.
5225 * FileSetOutput.cc, FtpListInfo.cc, Fish.cc: no more DATE_UNPREC.
5226 * LocalAccess.cc: fix uploading of empty files to file:.
5227 * MirrorJob.cc, MirrorJob.h: no DATE_UNPREC, no explicit date precision;
5228 sort to_transfer set by mirror:order-upload/order-download.
5229 * commands.cc: change mirror help.
5230 * resource.cc: define new mirror settings, remove precision ones.
5231
5232 2001-11-13 Alexander V. Lukyanov <[email protected]>
5233
5234 * StringPool.cc, StringPool.h: new files. String cache implemented.
5235 * FileSet.cc, FileSet.h: use them.
5236 * ColumnOutput.cc, DirColors.cc, DirColors.h, FileSetOutput.cc,
5237 FileSetOutput.h, Makefile.am, lftp.cc, resource.cc: move LS_COLORS
5238 parsing and storing into separate class DirColors; use it.
5239 * FtpListInfo.cc: support large file sizes.
5240 * HttpDir.cc: use some additional information from listing (size, perms,
5241 user, group, nlink).
5242
5243 2001-11-13 Glenn Maynard <[email protected]>
5244
5245 * FileSet.cc, FileSet.h, FileSetOutput.cc, FileSetOutput.h,
5246 FtpListInfo.cc, commands.cc:
5247
5248 *user and *group field to FileInfo, parser support in ParseFtpLongList_UNIX
5249 and LocalFile.
5250
5251 Added link count; cls -l output now has all expected fields (except for
5252 the ACL indicator.)
5253
5254 All cls -l fields can now be enabled individually, to let people disable
5255 them selectively.
5256
5257 Cleaned cls "tips" a little (not enough); added a forgotton \n.
5258
5259 cls will now remove entire fields if no files have it, instead of
5260 padding every file. (ColumnOutput only does this for the left side of
5261 an entire entry.)
5262
5263 2001-11-13 Glenn Maynard <[email protected]>
5264
5265 * FileSet.cc, FileSet.h: (PrependPath) new FileSet method.
5266
5267 * FileSetOutput.cc, FileSetOutput.h, FindJobDu.cc, GetFileInfo.cc,
5268 GetFileInfo.h, Makefile.am, commands.cc, ftpclass.cc:
5269
5270 Added -d, --block-size, -h, and -k to cls. Sizes now default to blocks
5271 of 1024 unless -l is given (full sizes in column-output display is too
5272 much; this also aligns with "ls -s".) cls no longer has the
5273 trailing-slash problem.
5274
5275 Parse cls-default before commandline arguments for cls, so they don't
5276 override explicit options.
5277
5278 Changed CHANGE_DIR 550 to pri 4.
5279
5280 Restore CWD in GetListInfo. (Removed restore directory for cls.)
5281
5282 Some du changes that aren't really needed; they're related to my
5283 attempts to make FinderJob work when given file arguments. They won't
5284 cause problems without the FinderJob changes.
5285
5286 * complete.cc: cosmetics.
5287
5288 * ColumnOutput.cc: (addf) fix memory leak.
5289
5290 2001-11-12 Alexander V. Lukyanov <[email protected]>
5291
5292 * resource.cc: remove NoClosure from net:connection-limit. Reported
5293 by Piotr Krukowiecki <[email protected]>.
5294
5295 2001-11-09 Alexander V. Lukyanov <[email protected]>
5296
5297 * ResMgr.cc, ResMgr.h, StatusLine.cc, TimeDate.cc, TimeDate.h,
5298 Timer.cc, Timer.h, complete.cc: make TimeInterval subclass of
5299 TimeDiff; add resource support in Timer; fix Timer to stop
5300 spinning once it is Stopped.
5301
5302 2001-11-09 Glenn Maynard <[email protected]>
5303
5304 * FileSet.cc FileSet.h FileSetOutput.cc FileSetOutput.h FindJob.cc
5305 FindJob.h FtpListInfo.cc Makefile.am TimeDate.h commands.cc
5306 complete.cc ftpclass.cc FindJobDu.cc FindJobDu.h:
5307
5308 Fixed "cls dir/ dir2/", etc (restore directory.)
5309
5310 Fixed (my) memleak in FileSet (clear sorted list in Empty(); not sure why
5311 this doesn't appear with FileSetOutput.)
5312
5313 Fixed cosmetic problem with FinderJob (status had [session status] twice.)
5314
5315 Fixed ParseFtpLongList_UNIX: guess_year needs -1900. Also, DST rolling
5316 around uncovered a bug; set the hour to something other than 0 if we
5317 don't know it, or DST -1 will end up changing the date.
5318
5319 Fixed Time::time_t operator-. Why -(int) and -(long)? Also, haing
5320 both Set() and set() is strange (and I don't see what the difference is.)
5321
5322 Added a bit to FinderJob:
5323
5324 Allow adding to ListInfo()'s Need.
5325
5326 FinderJob now expects a NextDir() by the child class's constructor.
5327 NextDir needs to call a virtual; we can't do that from the base
5328 constructor. (I think it's a little more straightforward, too: always
5329 start a find with NextDir, instead of the first path being an
5330 exception.)
5331
5332 Regular find command now accepts multiple arguments.
5333
5334 Call Enter(dir) when entering a dir and Exit() when leaving;
5335 Call ProcessList(fileset) when we have a new fileset, to give opportunity
5336 for ops on the whole list, including sorting.
5337
5338 Added find and du to remote completers.
5339
5340 2001-11-08 Alexander V. Lukyanov <[email protected]>
5341
5342 * ftpclass.cc: set debug level 4 for `550 No files found' reply;
5343 send QUIT from destructor.
5344 * buffer.cc: optimize Format method, vsnprintf directly to buffer.
5345 * Job.cc: let the job run once before showing status.
5346
5347 2001-11-08 Glenn Maynard <[email protected]>
5348
5349 * FileSet.cc, FileSet.h: Added a pattern-exclude() for FileSets.
5350 * Fish.h, Http.h, log.h: no need for StatusLine.
5351 * StatusLine.cc: StatusLine doesn't update for the first 20ms.
5352 * buffer.cc, buffer.h: Added Buffer::Format().
5353
5354 2001-11-06 Alexander V. Lukyanov <[email protected]>
5355
5356 * PtyShell.cc: include sys/types.h and sys/ioctl.h.
5357 * TimeDate.cc, TimeDate.h, Timer.cc, Timer.h: new files.
5358 * CopyJob.cc, CopyJob.h, FileCopy.cc, FileCopy.h, Fish.cc,
5359 FtpListInfo.cc, Http.cc, HttpDir.cc, NetAccess.cc,
5360 NetAccess.h, Resolver.cc, SMTask.cc, SMTask.h, SleepJob.cc,
5361 Speedometer.cc, Speedometer.h, StatusLine.cc, StatusLine.h,
5362 complete.cc, ftpclass.cc, misc.cc, misc.h: use new time classes.
5363 * commands.cc: (builtin_lcd) don't assume cwd!=0.
5364 * FtpDirList.cc: (EPLF) use TimeDate::IsoDateTime; add missing \n.
5365
5366 2001-11-05 Alexander V. Lukyanov <[email protected]>
5367
5368 * FileCopy.h: fix coredump on `mget -E'.
5369 * complete.cc, parsecmd.cc: accept single quote as well as double
5370 quote, no difference between the two yet.
5371
5372 2001-10-30 Alexander V. Lukyanov <[email protected]>
5373
5374 * FileCopy.cc: no need to convert cached data - it is done by other
5375 copy peer; don't translate really debugging messages.
5376 * misc.cc: no need for crlf_to_lf.
5377 * complete.cc: don't show completion status right after the tab since
5378 the listing can come from cache fast.
5379
5380 2001-10-29 Alexander V. Lukyanov <[email protected]>
5381
5382 * misc.cc: use dynamic allocation in set_tz; use unsetenv to unset TZ;
5383 implement unsetenv is not available using environ array.
5384 * ColumnOutput.cc: make it compile with irix compiler.
5385
5386 2001-10-27 Alexander V. Lukyanov <[email protected]>
5387
5388 * FtpDirList.cc: clean up; style.
5389 * FileCopy.cc: style; restore eof behaviour.
5390 * misc.cc: rewrite mem_crlf and crlf_to_lf to make them more clear.
5391
5392 2001-10-27 Glenn Maynard <[email protected]>
5393
5394 * FileCopy.cc, FtpDirList.cc, FtpDirList.h, misc.cc, misc.h:
5395 Speed up ascii mode transfer.
5396 * command.cc: cosmetics.
5397
5398 2001-10-25 Alexander V. Lukyanov <[email protected]>
5399
5400 * misc.cc, misc.h: (mktime_from_tz) new function.
5401 * FtpListInfo.cc, FtpListInfo.h: use it.
5402 * resource.cc: (ftp:timezone) new setting.
5403
5404 2001-10-25 Glenn Maynard <[email protected]>
5405
5406 * FileSetOutput.cc, FileSetOutput.h, commands.cc: -1 option for cls;
5407 readded -q to help cls; added missing \n.
5408 * misc.cc, misc.h: -rwxr-xr-t implies S_IXOTH; -rwxr-xr-T does not;
5409 mktime_from_utc has a problem when isdst is -1; the returned time is
5410 off by an hour if the local timezone is in DST.
5411 * FtpListInfo.cc: assume unix server's timezone to be GMT.
5412
5413 2001-10-25 Alexander V. Lukyanov <[email protected]>
5414
5415 * CmdExec.cc, FileAccess.h, FileCopyFtp.cc, FileSetOutput.cc, Fish.cc,
5416 GetJob.cc, Http.cc, NetAccess.cc, ResMgr.h, Resolver.cc,
5417 Speedometer.cc, StatusLine.cc, commands.cc, ftpclass.cc, ftpclass.h,
5418 lftp.cc: (QueryBool) new functions, now lftp should compile with
5419 a compiler without bool type.
5420 * Fish.cc: check line length before comparing with yes/no/password;
5421 remove extra xfree(home), fortunately home was null at that point.
5422
5423 2001-10-22 Alexander V. Lukyanov <[email protected]>
5424
5425 * complete.cc: fix local tilde completion.
5426 * Fish.cc, resource.cc: add fish:shell setting.
5427 * SMTask.cc, misc.cc: include time.h first.
5428 * Makefile.am: distribute convert-netscape-cookies.
5429
5430 2001-10-19 Alexander V. Lukyanov <[email protected]>
5431
5432 * commands.cc: fix typo in cls help. Reported by Nicolas Noble.
5433 * complete.cc: restore prompt and clear message on SIGINT.
5434
5435 2001-10-17 Alexander V. Lukyanov <[email protected]>
5436
5437 * ftpclass.cc, ftpclass.h: workaround for WarFTPD ABOR glitch.
5438 * CopyJob.cc, CopyJob.h, FileCopy.cc, FileCopy.h: NoStatusOnWrite added.
5439 * commands.cc: use it.
5440 * FileSetOutput.cc, FileSetOutput.h: fix recls.
5441 * misc.cc: (xasprinf) fix va_end argument.
5442 * complete.cc: make readline define correct rl_message prototype.
5443 * FileSetOutput.cc: make it output precise date too.
5444
5445 2001-10-16 Alexander V. Lukyanov <[email protected]>
5446
5447 * misc.cc: use int to avoid warning.
5448
5449 2001-10-15 Alexander V. Lukyanov <[email protected]>
5450
5451 * ColumnOutput.cc: use xfree.
5452 * FileAccess.h: add comment about ListInfo::GetResult.
5453 * FileSetOutput.cc: fix memory leaks; use xfree.
5454 * commands.cc: cosmetics.
5455
5456 2001-10-15 Alexander V. Lukyanov <[email protected]>
5457
5458 * misc.cc, misc.h: conding style; safety precautions (better checking
5459 on vsnprintf return value); just double buffer size; include stdarg.h
5460 in misc.h.
5461
5462 2001-10-15 Glenn F. Maynard <[email protected]>
5463
5464 * ColumnOutput.cc, ColumnOutput.h, FileSetOutput.cc, misc.h, misc.cc:
5465
5466 Column output now treats width properly (using mbswidth().)
5467
5468 Date output added to cls -l; uses locale-dependant date (like ls does.)
5469
5470 Added xasprintf and xvasprintf. (Trivial asprintf/vasprintf
5471 implementation so we don't need to deal with trio just for those.)
5472
5473 Added some ColumnOutput support for date output (addf()).
5474
5475 * PtyShell.cc: fix warnings.
5476 * Fish.cc: improve status.
5477
5478 2001-10-12 Alexander V. Lukyanov <[email protected]>
5479
5480 * url.cc: optimize user/password extraction using strrchr.
5481
5482 2001-10-12 Jonas Jensen <[email protected]>
5483
5484 * url.cc: allow @ in password.
5485
5486 2001-10-12 Alexander V. Lukyanov <[email protected]>
5487
5488 * Fish.cc, Fish.h: use PtyShell; answer ssh questions about (yes/no)
5489 and password.
5490 * StatusLine.cc: (Show) check timer even if newstr is equal to to_be_shown.
5491 * PtyShell.cc, PtyShell.h, lftp_pty.cc, lftp_pty.h: new files.
5492 * ArgV.h: (Add) alias to Append.
5493 * complete.cc: add > to remote completion status.
5494 * ftpclass.cc: don't add ./ to CWD in extreme case when PWD is not
5495 absolute.
5496 * misc.cc: (dir_file) don't return NULL if possible.
5497 * Time.cc, Time.h: (ms) fixed integer overflow.
5498
5499 2001-10-10 Glenn F. Maynard <[email protected]>
5500
5501 * StatusLine.cc, StatusLine.h, Time.cc, Time.h, complete.cc:
5502
5503 added ms constructor for time; this gives us a free cast from int to
5504 Time, which means all of the ms operations can away (they're implicit.)
5505
5506 Defined negative time values more clearly (in comments). This usually
5507 doesn't matter.
5508
5509 Fixed Time.h indentation.
5510
5511 2001-10-10 Alexander V. Lukyanov <[email protected]>
5512
5513 * FileSet.cc: (LocalFile) don't set name if already set. This fixes
5514 LocalAccess' ListInfo and mirror.
5515 * PollVec.cc: treat AddTimeout(negative) as AddTimeout(0).
5516
5517 2001-10-09 Alexander V. Lukyanov <[email protected]>
5518
5519 * ftpclass.cc, ftpclass.h, FileAccess.cc: more home_auto fixes;
5520 SameLocationAs returns true even if o->home is null.
5521
5522 2001-10-09 Glenn F. Maynard <[email protected]>
5523
5524 * Time.cc, Time.h, commands.cc, complete.cc, StatusLine.cc, StatusLine.h,
5525 misc.cc, misc.h:
5526
5527 Time and Timer classes in Time.{cc,h}. Implemented only a
5528 couple operators; add others as required. This can probably be fairly
5529 widely-used; I didn't implement it anywhere else, though. It doesn't
5530 cast to anything; that just causes problems.
5531
5532 Disabled short help for: rels renlist reget reput
5533
5534 added references: [re]ls, [re]nlist, [re]get, [re]cls, [re]put
5535 Help is down to 23 lines (from 25.) How about changing help to use
5536 ColumnOutput? That might cut it down further. (Due to the length of
5537 some short help, it might not, though--not on an 80x25, anyway.)
5538
5539 Updated [c]ls help; it was too long.
5540
5541 (xgettimeofday) new function. (cmd:status-interval) new setting.
5542
5543 2001-10-08 Alexander V. Lukyanov <[email protected]>
5544
5545 * commands.cc: fix site command broken by ls changes.
5546 * FileAccess.h, FileAccess.cc, Http.cc, Http.h, ftpclass.cc, ftpclass.h:
5547 NetAccess.cc, NetAccess.h: new method ResetLocationData; reset
5548 home_auto on Connect/Login/AnonymousLogin.
5549 * FileAccess.h, Fish.cc, ftpclass.cc, ftpclass.h: (FA::set_home) new
5550 method; use it; (Ftp::PropagateHomeAuto) new method; use it; fixed
5551 bug with unsynced home's.
5552
5553 2001-10-08 Glenn F. Maynard <[email protected]>
5554
5555 * ColumnOutput.cc, commands.cc, complete.cc, complete.h, lftp_rl.c:
5556
5557 Reupdated my address.
5558
5559 Add cls, recls and rels to list of remote-completers.
5560
5561 Make local completion mimic remote completion by forming a FileSet.
5562 This simplifies completion, gets rid of ignore_non_dirs (which was
5563 causing some really obscure problems with completion adding one too
5564 many slashes--didn't track this down since ignore_non_dirs isn't used
5565 anymore) and gives us color (etc) for local completion. I didn't
5566 actually delete ignore_non_dirs yet.
5567
5568 Add status feedback for remote completion, in the message area. If -q
5569 is given in cls_completion_default, this is disabled. (This is also
5570 undocumented and slightly different from the effect -q is intended to
5571 have--but doesn't, since it's currently disabled--but it seems the most
5572 appropriate place to put this, since cls_completion_default honors just
5573 about every cls option; and even if status displaying was currently
5574 working for cls, job status wouldn't be appropriate for completion
5575 since it'd mangle the line.) I'll hold off on documenting this until -q
5576 is fixed for cls (unless it turns out that it just can't reasonably be done,
5577 but I'm optimistic.)
5578
5579 Keep glob_res around after completion until the next completion or the
5580 next command; this lets us use it to do our own completion result
5581 display.
5582
5583 Handle our own completion results; this also gives us optimized column
5584 widths for all completions, not just filenames.
5585
5586 Fixed color reset bug.
5587
5588 Glitch: we don't honor the user's completion-ignore-case readline
5589 setting. We can't get access to it portably. It's not too big a deal;
5590 adding -i to cls-completion-default has the same effect, and honoring
5591 both of them would probably be a little confusing anyway.
5592
5593 2001-10-05 Alexander V. Lukyanov <[email protected]>
5594
5595 * ColumnOutput.cc: fix memory leak; change \e to \\e.
5596 * FileSetOutput.cc: fix coredump when LS_COLORS is unset.
5597 * misc.h: add comment on Subst.
5598 * lftp.cc: set top_exec to zero after deletion, this fixes a coredump
5599 at exit.
5600 * commands.cc: remove bzcat, bzmore and cls from command index,
5601 it has become too long for 25 linear display.
5602
5603 2001-10-05 Glenn F. Maynard <[email protected]>
5604
5605 * CmdExec.cc, ColumnOutput.cc, ColumnOutput.h, FileSet.cc, FileSet.h,
5606 FileSetOutput.cc, FileSetOutput.h, Filter.cc, Filter.h, Makefile.am,
5607 ResMgr.cc, ResMgr.h, commands.cc, misc.cc, misc.h:
5608
5609 ColumnOutput.{cc,h}: column display, originally from FileUtils. I've
5610 cleaned it up substantially, generalized color support, class-ized it
5611 and some other stuff.
5612
5613 Moved FDStream::width() to misc.cc; nuked isatty().
5614
5615 tokenize() bugfixes.
5616
5617 Added TriBoolValidate; Bool with a third ("Auto"). Feel free to think
5618 of a better name.
5619
5620 Don't give ls's job a blank name; results in unsightly empty `' in
5621 status.
5622
5623 Add sorting to FileSets. A second array of pointers (aliasing the main
5624 list) is created when the list is sorted; the list can't be modified if
5625 the list is sorted (so we don't have to keep track of how the list is
5626 sorted.) Multiple-level sorting is possible (sort by name then
5627 directories-first, for example.) This method doesn't have to touch much
5628 of FileSet and keeps the binary-search-insert intact. (If needed, it
5629 could be made to allow adds after sorting by simply dumping new entries
5630 on the end of the sorted list, so new entries aren't sorted.)
5631
5632 FileSet::operator[] uses the sorted list, if available.
5633
5634 FindByName uses FindGEIndByName, making that function O(log n) rather
5635 than O(n).
5636
5637 A bunch of static, very cut-and-paste code from FileUtils.cc for parsing
5638 LS_COLORS.
5639
5640 FileSetPrint class.
5641
5642 2001-10-03 Glenn F. Maynard <[email protected]>
5643
5644 * ArgV.cc, ArgV.h, CmdExec.cc, DummyProto.cc, DummyProto.h,
5645 FileAccess.cc, FileAccess.h, FileSet.cc, FileSet.h, Filter.cc,
5646 Filter.h, Http.cc, LocalAccess.cc, QueueFeeder.cc, StatusLine.cc,
5647 keyvalue.cc, keyvalue.h, misc.cc, misc.h:
5648
5649 New ArgV constructor, to take a string and tokenize it.
5650 misc.cc code to do the real work. (This could possibly be improved
5651 to make it usable for the main tokenizer.)
5652
5653 misc.cc code to do \x, etc. substitution, and code elsewhere to use
5654 this. (This would have been the third time this could would have been
5655 duplicated, so I merged it.)
5656
5657 DummyNoProto for MakeListInfo, same as MakeDirList.
5658
5659 Option for Glob to ignore case.
5660
5661 isatty() and width() for FDStream. (isatty() could be done away with,
5662 as it doesn't really save any code being a 1-liner; width() is more
5663 functional.)
5664
5665 Move make-FileInfo-from-local-file into FileInfo::LocalFile().
5666
5667 Dumb QueueFeeder bugfix (of my own bug, of course.)
5668
5669 Made a bunch of KeyValue functions const. (Not completely correctly:
5670 when returning a member value like those do, there really should be both
5671 a const and non-const version ...)
5672
5673 2001-10-02 Aaron Schrab <[email protected]>
5674
5675 * Fish.cc, Http.cc, log.cc: move va_end so that it is called always.
5676
5677 2001-10-01 Aaron Schrab <[email protected]>
5678
5679 * Fish.cc, Http.cc, log.cc: call va_start multiple
5680 times when needed, fixes powerpc coredumps.
5681
5682 2001-10-01 Alexander V. Lukyanov <[email protected]>
5683
5684 * commands.cc: remove unneeded _().
5685
5686 2001-09-12 Alexander V. Lukyanov <[email protected]>
5687
5688 * ftpclass.cc: sometimes CWD was not sent after reconnection
5689 because of missing set_real_cwd - fix it.
5690
5691 2001-09-10 Alexander V. Lukyanov <[email protected]>
5692
5693 * lftp_rl.c: print * for modified lines in history (like in bash).
5694 * resource.cc, ftpclass.cc: use retry-530-anonymous as an additional
5695 regexp for retry-530.
5696
5697 2001-09-10 Glenn F. Maynard <[email protected]>
5698
5699 * commands.cc, lftp_rl.c, lftp_rl.h: implement history command.
5700
5701 2001-08-28 Alexander V. Lukyanov <[email protected]>
5702
5703 * Resolver.cc: retry with use_fork=false; don't create pipe if
5704 use_fork==false.
5705
5706 2001-08-27 Alexander V. Lukyanov <[email protected]>
5707
5708 * ftpclass.cc: (MoveConnectionHere) set home if null.
5709
5710 2001-08-27 Glenn F. Maynard <[email protected]>
5711
5712 * FileSet.cc, FileSet.h, FileAccess.h, CmdExec.cc: remove the FileSet
5713 sort stuff. It's superfluous now.
5714 * commands.cc: fix a minor UI bug with queue -d.
5715
5716 2001-08-22 Alexander V. Lukyanov <[email protected]>
5717
5718 * FtpListInfo.cc: remove erroneous assert, handle error.
5719 * ftpclass.cc, ftpclass.h: (home_auto) new member; support ftp:home
5720 variable.
5721 * resource.cc: add ftp:home, update ftp:retry-530.
5722 * ResMgr.cc: verify default value with supplied validator.
5723
5724 2001-08-20 Alexander V. Lukyanov <[email protected]>
5725
5726 * resource.cc: fixed ftp:ssl-auth validation.
5727 * ftpclass.cc: improve abort for passive mode - connect data socket
5728 if it is not connected yet.
5729
5730 2001-08-16 Wolfram Gloger <[email protected]>
5731
5732 * FileSet.cc: include stdlib.h; use labs instead of abs.
5733
5734 2001-08-15 Alexander V. Lukyanov <[email protected]>
5735
5736 * ftpclass.cc, ResMgr.cc: declare inet_aton if needed.
5737
5738 2001-08-07 Alexander V. Lukyanov <[email protected]>
5739
5740 * ftpclass.cc: fix memory allocation error.
5741
5742 2001-07-30 Alexander V. Lukyanov <[email protected]>
5743
5744 * commands.cc: format queue help at 80 columns.
5745 * Resolver.cc: little correction for RAND_MAX.
5746 * Speedometer.cc: call Get once, maybe fix for math exception.
5747
5748 2001-07-26 Glenn F. Maynard <[email protected]>
5749
5750 * CmdExec.cc, CmdExec.h, Job.cc, Makefile.am, commands.cc: queue
5751 editing support (QueueFeeder class).
5752 * QueueFeeder.cc, QueueFeeder.h: new files.
5753
5754 2001-07-25 Alexander V. Lukyanov <[email protected]>
5755
5756 * FtpSplitList.cc: fix mem leak (reported by Glenn F. Maynard).
5757 * ftpclass.cc: break normal execution if Error().
5758 * Http.cc: workaround for range end ==-1.
5759
5760 2001-07-24 Glenn F. Maynard <[email protected]>
5761
5762 * FileAccess.cc: make url protocol case insensitive.
5763
5764 2001-07-24 Alexander V. Lukyanov <[email protected]>
5765
5766 * Http.cc: fix CONNECT_VERIFY in case of borrowed connection.
5767 * commands.cc: check find -d argument for being a number.
5768
5769 2001-07-19 Glenn F. Maynard <[email protected]>
5770
5771 * FindJob.cc, FindJob.h, commands.cc: add find --maxdepth option.
5772
5773 2001-07-19 Glenn F. Maynard <[email protected]>
5774
5775 * CmdExec.cc, CmdExec.h, commands.cc: implement queue editing -
5776 queue -s and queue -e commands.
5777
5778 2001-07-18 Alexander V. Lukyanov <[email protected]>
5779
5780 * ftpclass.cc, ftpclass.h, resource.cc: allow to choose AUTH argument;
5781 ftp:ssl-auth new variable.
5782
5783 2001-07-14 Alexander V. Lukyanov <[email protected]>
5784
5785 * ResMgr.cc: make it compile with irix compiler.
5786 * FtpListInfo.cc: add MacWebStar parser.
5787
5788 2001-07-09 Alexander V. Lukyanov <[email protected]>
5789
5790 * Http.cc: make it work without ssl.
5791
5792 2001-07-09 Glenn F. Maynard <[email protected]>
5793
5794 * FileSet.cc, FileSet.h: speed-optimization using binary search.
5795
5796 2001-07-06 Alexander V. Lukyanov <[email protected]>
5797
5798 * misc.cc: little speed-optimization in squeeze_file_name.
5799
5800 2001-07-03 Alexander V. Lukyanov <[email protected]>
5801
5802 * FileAccess.cc, FileAccess.h, ftpclass.cc, ftpclass.h:
5803 get rid of group/gpass.
5804 * Resolver.cc, netrc.cc, Fish.cc, Http.cc: use case-insensitive
5805 hostname comparision.
5806 * Http.cc, Http.h: support CONNECT method for https over http proxy.
5807
5808 2001-07-02 Alexander V. Lukyanov <[email protected]>
5809
5810 * Resolve.cc: update SRV support for RFC2782.
5811 * HttpDir.cc: add roxen listing support; reorganize.
5812
5813 2001-06-30 Alexander V. Lukyanov <[email protected]>
5814
5815 * url.cc: use host=localhost for urls like file:///path.
5816
5817 2001-06-26 Alexander V. Lukyanov <[email protected]>
5818
5819 * ftpclass.cc: fix closure generation for user==0.
5820 * CmdExec.cc: fix for cwd==0.
5821 * Http.cc: get rid of data_buf; handle identity encoding.
5822 * Fish.cc, Fish.h: more work.
5823
5824 2001-06-19 Alexander V. Lukyanov <[email protected]>
5825
5826 * resource.cc: new settings ftp:port-ipv4, ftp:acct, ftp:site-group.
5827 * ftpclass.cc, ftpclass.h: support for ACCT, SITE GROUP,
5828 and for ftp:port-ipv4.
5829 * ResMgr.cc, ResMgr.h: IPv4AddrValidate new validator.
5830
5831 2001-06-18 Alexander V. Lukyanov <[email protected]>
5832
5833 * Http.cc: handle 416 reply code.
5834 * ProcWait.cc, ProcWait.h, lftp.cc: (ProcWait::DeleteAll) new method;
5835 use it.
5836 * FileAccess.cc, modconfig.h, Makefile.am: include Fish.
5837
5838 2001-06-12 Alexander V. Lukyanov <[email protected]>
5839
5840 * FileCopyFtp.cc: fix restart in fxp mode.
5841 * HttpDir.cc, HttpDir.h, NetAccess.cc, NetAccess.h: (GenericParseGlob)
5842 new class; use it.
5843 * Fish.cc, Fish.h: implement Glob, ListInfo.
5844 * ftpclass.cc: better status for fxp.
5845
5846 2001-06-07 Alexander V. Lukyanov <[email protected]>
5847
5848 * FileAccess.cc, FileAccess.h: NO_USER new GetFileURL option.
5849 * Http.cc: don't put user name in Referer.
5850
5851 2001-06-04 Alexander V. Lukyanov <[email protected]>
5852
5853 * commands.cc: fix `debug 9 -o log'.
5854 * ftpclass.cc: handle Serv-U reply to STAT command.
5855 * Fish.cc: some more work.
5856
5857 2001-06-01 Alexander V. Lukyanov <[email protected]>
5858
5859 * Http.cc, Http.h: implement Cleanup and CleanupThis methods.
5860 * ftpclass.cc, ftpclass.h: get rid of ftp_chain and ftp_next.
5861
5862 2001-05-30 Alexander V. Lukyanov <[email protected]>
5863
5864 * Resolver.cc: fix a memory leak in use-fork=no mode.
5865
5866 2001-05-29 Alexander V. Lukyanov <[email protected]>
5867
5868 * lftp.cc, Job.cc, Job.h, SMTask.cc, SMTask.h, SleepJob.cc, SleepJob.h:
5869 add notification for moving to background; terminate some never-ending
5870 jobs before moving to bg.
5871 * resource.cc: change default for ftp:fix-pasv-address to true.
5872 * Http.cc, Http.h: support keep-alive for chunked transfer-encoding.
5873 * ftpclass.cc, ftpclass.h: fix reget for non-existent files.
5874 * Resolver.cc: report number of addresses.
5875 * SMTask.cc: tune Schedule for recursive calling by setting sched_scan
5876 to current.
5877
5878 2001-05-29 albert chin ([email protected])
5879
5880 * Fish.cc, Http.cc, StatusLine.cc, log.cc: use trio functions if needed.
5881
5882 2001-05-29 Alexander V. Lukyanov <[email protected]>
5883
5884 * complete.cc: (vars_generator) special generator for variable
5885 names to match variable name using ResMgr::VarNameCmp.
5886
5887 2001-05-29 Nicolas Noble <[email protected]>
5888
5889 * complete.cc, ResMgr.cc, ResMgr.h: add variable name completion
5890 support.
5891
5892 2001-05-24 Alexander V. Lukyanov <[email protected]>
5893
5894 * MirrorJob.cc, MirrorJob.h: support `mirror -R -c'.
5895 * resource.cc: some more patterns for retry-530.
5896
5897 2001-05-15 Alexander V. Lukyanov <[email protected]>
5898
5899 * resource.cc: new settings ftp:retry-530 and ftp:retry-530-anonymous.
5900 This settings should be useful to distinguish between overloaded
5901 server (temporary condition) and incorrect password (permanent
5902 condition).
5903 * ftpclass.cc: retry on server reply 530 for PASS command if text
5904 matches above regular expressions. Retry ftp login quickly on next
5905 address if the server has many (works well on ftp.redhat.com, for
5906 example).
5907 * ResMgr.cc, ResMgr.h: improved fuzzy variable name matching. Exact
5908 prefix and exact name after prefix are taken into account separately.
5909 E.g. http:pro is not ambigous now between http:proxy and https:proxy.
5910 * misc.cc, misc.h: move re_match here.
5911
5912 2001-05-10 Alexander V. Lukyanov <[email protected]>
5913
5914 * CmdExec.cc: delete status_line in dtor.
5915 * CmdExec.h: SetStatusLine new method.
5916 * FileAccess.cc, FileAccess.h: SessionPool:ClearAll new method.
5917 * Makefile.am: fix rpm build, add buffer_ssl.h to sources; strip modules.
5918 * ResMgr.cc: don't call ReconfigAll in ResDecl dtor.
5919 * SMTask.cc, SMTask.h: TaskCount new method.
5920 * lftp.cc: delete most tasks, print warning if some extra left.
5921
5922 2001-05-04 Alexander V. Lukyanov <[email protected]>
5923
5924 * NetAccess.cc, NetAccess.h: (HandleTimeout) new function.
5925 * ftpclass.cc, ftpclass.h: redefine HandleTimeout to set quit_sent
5926 (fixes non-fatal deadlock).
5927 * commands.cc: allow open "" and empty bookmarks.
5928 * resource.cc: don't use user name in anon-pass (suggested by
5929 Eduardo Perez Ureta <[email protected]>).
5930
5931 2001-04-17 Alexander V. Lukyanov <[email protected]>
5932
5933 * MirrorJob.cc, mkdirJob.cc, StatusLine.cc: fix overflows.
5934 * complete.cc, lftp_rl.c, lftp_rl.h, alias.h: make it compile with
5935 readline-4.2.
5936
5937 2001-04-04 Alexander V. Lukyanov <[email protected]>
5938
5939 * Fish.cc, SleepJob.cc, ftpclass.cc: move CDECL to modconfig.h.
5940 * FtpListInfo.cc: set tm_isdst to -1 (automatic DST).
5941 * Http.cc: don't add extra / to Referer.
5942 * Makefile.am: use libtool to build modules; libnetwork.so.
5943 * MirrorJob.cc: remove unneeded N_.
5944 * ResMgr.cc, ResMgr.h: add dtor for ResDecl.
5945 * Resolver.cc, Resolver.h: move resources to resource.cc;
5946 remove ClassInit.
5947 * SMTask.cc, SMTask.h: add DeleteAll method.
5948 * buffer.cc, buffer.h: move IOBufferSSL to separate files.
5949 * buffer_ssl.cc, buffer_ssl.h: new files.
5950 * lftp_ssl.h: add ifdef USE_SSL.
5951 * log.cc: automatically init Log::global.
5952 * modconfig.h: add MODULE_NETWORK; prototype for module_init.
5953 * resource.cc: move resources from Resolver.cc here.
5954
5955 2001-03-22 Alexander V. Lukyanov <[email protected]>
5956
5957 * Resolver.cc: set default for dns:cache-expire to 1h.
5958
5959 2001-03-20 Alexander V. Lukyanov <[email protected]>
5960
5961 * keyvalue.cc: ignore certain lock errors.
5962 * Makefile.am: install modules into pkglibdir/version dir.
5963 * resource.cc, Http.cc: http:referer, hftp:use-type new settings.
5964
5965 2001-03-13 Alexander V. Lukyanov <[email protected]>
5966
5967 * Http.cc: add \n to connect: message.
5968 * HttpDir.cc: do Exclude.
5969 * commands.cc: update help for `module'.
5970 * module.cc: search modules in module:path.
5971 * resource.cc: init module:path from env LFTP_MODULE_PATH.
5972
5973 2001-03-13 Arkadiusz Miskiewicz <[email protected]>
5974
5975 * Job.cc, Job.h: undef printf (for new glibc).
5976
5977 2001-03-13 Glenn F. Maynard <[email protected]>
5978
5979 * CmdExec.cc, CmdExec.h, StatusLine.cc, StatusLine.h: support for
5980 terminal titlebar.
5981
5982 2001-02-23 Alexander V. Lukyanov <[email protected]>
5983
5984 * CmdExec.cc: (MakePrompt) fix \NNN recognition (reported by
5985 Glenn F. Maynard)
5986
5987 2001-02-13 Alexander V. Lukyanov <[email protected]>
5988
5989 * HttpDir.cc: accept perms string 11 char long.
5990 * misc.cc: accept last + in perms string as ACL tag.
5991 * commands.cc: open command file in ascii mode.
5992 * Fish.cc, Http.cc, NetAccess.cc, NetAccess.h, ftpclass.cc:
5993 create RateLimit with closure.
5994
5995 2001-02-07 Alexander V. Lukyanov <[email protected]>
5996
5997 * Resolver.cc: fix rare spinning when parent process terminates.
5998 * ftpclass.cc: don't bind data socket to loopback address.
5999
6000 2001-02-04 Alexander V. Lukyanov <[email protected]>
6001
6002 * url.cc: fix Combine when proto==NULL.
6003
6004 2001-02-03 Alexander V. Lukyanov <[email protected]>
6005
6006 * FileCopy.cc, FileFeeder.cc, Filter.cc, Http.cc, LocalAccess.cc,
6007 ProcWait.cc, buffer.cc, ftpclass.cc, keyvalue.cc: use E_RETRY macro.
6008 * FileCopy.h: drop size information if pos>size.
6009
6010 2001-01-25 Alexander V. Lukyanov <[email protected]>
6011
6012 * Http.cc: print error to debug output from Http::Read.
6013 * Job.cc: add timeout when displaying status of several jobs in cycle.
6014 * pgetJob.cc: more space in status line for eta.
6015
6016 2001-01-12 Alexander V. Lukyanov <[email protected]>
6017
6018 * ftpclass.cc: fix opie/skey reply.
6019 * Http.cc: some fixes for PUT and `100 Continue'.
6020
6021 2000-12-20 Alexander V. Lukyanov <[email protected]>
6022
6023 * commands.cc: also use ':' as user/pass separator.
6024 * ftpclass.cc, resource.cc: ftp:fix-pasv-address setting.
6025
6026 2000-12-18 Alexander V. Lukyanov <[email protected]>
6027
6028 * Http.cc, misc.cc, misc.h, ftpclass.cc: move mktime_from_utc to
6029 misc.cc.
6030 * HttpDir.cc: correct array size.
6031 * lftp.cc: add cmd:save-cwd-history setting.
6032 * Speedometer.cc: show up to 99 seconds eta in seconds.
6033
6034 2000-12-08 Chmouel Boudjnah <[email protected]>
6035
6036 * CatJob.cc, commands.cc, complete.cc: add bzcat and bzmore support.
6037
6038 2000-12-01 Alexander V. Lukyanov <[email protected]>
6039
6040 * resource.cc: hftp:use-authorization.
6041 * Http.cc: send port in Host: header; hftp:use-authorization new
6042 setting.
6043
6044 2000-11-27 Alexander V. Lukyanov <[email protected]>
6045
6046 * FileAccess.cc, FileAccess.h, Http.cc, ftpclass.cc, ftpclass.h,
6047 NetAccess.cc, NetAccess.h: (ProtocolSubstitution) new virtual
6048 method; check net:no-proxy before changing ftp to hftp.
6049
6050 2000-11-20 Alexander V. Lukyanov <[email protected]>
6051
6052 * url.cc: implement [ipv6::address]:port as specified by rfc2732.
6053 * complete.cc: fix local tilde globbing.
6054
6055 2000-11-14 Alexander V. Lukyanov <[email protected]>
6056
6057 * bookmark.cc, bookmark.h, keyvalue.cc, history.cc: don't wait for
6058 lock forever; print warning if locking fails.
6059
6060 2000-11-05 Alexander V. Lukyanov <[email protected]>
6061
6062 * history.cc, history.h: add flag of modification.
6063
6064 2000-10-24 Alexander V. Lukyanov <[email protected]>
6065
6066 * commands.cc: set last_bg in queue.
6067 * lftpget: set max-redirections.
6068
6069 2000-10-23 Alexander V. Lukyanov <[email protected]>
6070
6071 * ftpclass.cc: set event_time in Read/Write.
6072 * FileAccess.cc: use `now' instead of time().
6073
6074 2000-10-19 Alexander V. Lukyanov <[email protected]>
6075
6076 * ftpclass.cc: don't call Poll on data socket (no real need).
6077 * FileSet.h, FileSet.cc: eliminate only_newer argument, use ignore mask.
6078 * MirrorJob.cc: use the new ignore mask values; don't assume only-newer
6079 for reverse mirror.
6080
6081 2000-10-16 Alexander V. Lukyanov <[email protected]>
6082
6083 * mgetJob.cc: fix mput for directory case (continue loop instead
6084 of returning).
6085
6086 2000-10-15 Alexander V. Lukyanov <[email protected]>
6087
6088 * ftpclass.cc: use service name `ftps' for ftps; don't queue up
6089 too much MDTM/SIZE commands in sync mode.
6090
6091 2000-10-12 Alexander V. Lukyanov <[email protected]>
6092
6093 * FileAccess.cc, FileAccess.h: fix globbing for tilde; optimize
6094 the case when pattern does not contain wildcards.
6095 * HttpDir.cc, FtpGlob.cc: some code moved to FileAccess.cc.
6096 * complete.cc: call NoInhibitTilde.
6097
6098 2000-10-12 Alexander V. Lukyanov <[email protected]>
6099
6100 * FileAccess.cc, FileAccess.h, FtpSplitList.cc, FtpSplitList.h,
6101 FtpGlob.cc, HttpDir.cc: Glob::add cleanup.
6102 * complete.cc: fix completion for filenames starting with tilde.
6103 * ftpclass.cc, ftpclass.h: fix for old gcc (ftps undefined).
6104
6105 2000-10-04 Alexander V. Lukyanov <[email protected]>
6106
6107 * Http.cc: handle CONNECT_VERIFY in CONNECTED state.
6108 * NetAccess.cc: Disconnect before Connect.
6109
6110 2000-10-03 Alexander V. Lukyanov <[email protected]>
6111
6112 * Makefile.am: use C compiler to compile modules, it should use c++
6113 for c++ files automatically.
6114 * ResMgr.cc: use extern "C" for regex.h, this fixes linking for some
6115 systems.
6116
6117 2000-09-29 Alexander V. Lukyanov <[email protected]>
6118
6119 * FileCopy.cc: fix for `ls|head'.
6120 * ftpclass.cc, resource.cc: ftp:bind-data-socket new setting;
6121 fix for assert(rate_limit!=0).
6122 * url.cc, url.h: provisions for not using rfc1738 for ftp urls.
6123
6124 2000-09-23 Alexander V. Lukyanov <[email protected]>
6125
6126 * commands.cc: fix lcd & in queue.
6127 * commands.cc: fix cmd:move-background handling when there is no jobs.
6128
6129 2000-09-22 Alexander V. Lukyanov <[email protected]>
6130
6131 * commands.cc: fix cd & in queue.
6132
6133 2000-09-21 Arkadiusz Miskiewicz <[email protected]>
6134
6135 * ftpclass.cc: fix addr_received initialization for ipv6.
6136
6137 2000-09-21 Alexander V. Lukyanov <[email protected]>
6138
6139 * module.cc: aliases for https and ftps.
6140
6141 2000-09-19 Alexander V. Lukyanov <[email protected]>
6142
6143 * CmdExec.cc: fix error on some compilers (e.g. irix).
6144
6145 2000-09-15 Alexander V. Lukyanov <[email protected]>
6146
6147 * pgetJob.cc: fix yet another hang bug (hopefully last).
6148
6149 2000-09-14 Alexander V. Lukyanov <[email protected]>
6150
6151 * ftpclass.cc: move out of CONNECTING_DATA_SOCKET after DataClose
6152 (fixes rare `bad file number' error).
6153 * MirrorJob.cc: propagate remove_source_files to submirrors.
6154
6155 2000-09-12 Alexander V. Lukyanov <[email protected]>
6156
6157 * FileAccess.cc: include modconfig.h. (fixes module compilation).
6158
6159 2000-09-11 Alexander V. Lukyanov <[email protected]>
6160
6161 * buffer.cc: handle eof on ssl connection properly.
6162
6163 2000-09-08 Alexander V. Lukyanov <[email protected]>
6164
6165 * Http.cc: don't remember path=/ in cookies; skip all spaces
6166 before a cookie.
6167
6168 2000-09-07 Alexander V. Lukyanov <[email protected]>
6169
6170 * MirrorJob.cc, MirrorJob.h: support for redirection.
6171 * CmdExec.cc: move `cd' out ot translated string.
6172 * Http.cc, LocalAccess.cc, Fish.cc, MirrorJob.cc, SleepJob.cc:
6173 don't rely on MODULE.
6174 * Makefile.am: don't define MODULE.
6175
6176 2000-09-05 Alexander V. Lukyanov <[email protected]>
6177
6178 * GetJob.cc, GetJob.h: restore mode on new file.
6179
6180 2000-09-05 Matthias Andree <[email protected]>
6181
6182 * FtpDirList.cc: reformat EPLF even if mtime if absent.
6183
6184 2000-08-30 Alexander V. Lukyanov <[email protected]>
6185
6186 * ftpclass.cc, ftpclass.h: try PORT if connect fails after fixing
6187 pasv address.
6188 * Http.cc: really skip rest of body from recv_buf; call recv_buf->Do.
6189
6190 2000-08-29 Alexander V. Lukyanov <[email protected]>
6191
6192 * ftpclass.cc: fix error handling for port-range; bind local address
6193 to data socket in passive mode (helps for rare case of routing change).
6194
6195 2000-08-26 Nicolas Noble <[email protected]>
6196
6197 * command.cc: fix N_ for queue help.
6198
6199 2000-08-26 Alexander V. Lukyanov <[email protected]>
6200
6201 * CmdExec.cc, CmdExec.h: follow redirections in `cd'.
6202 * mkdirJob.cc, rmJob.cc: add forgotten plural.
6203 * module.cc: define RTLD_GLOBAL to 0 if needed.
6204 * url.cc: set path=/ by default for http urls.
6205 * CopyJob.cc, pgetJob.cc: move string out of #define to help
6206 xgettext to extract it (reported by Nicolas Noble).
6207 * FileAccess.cc: allow //path (required by posix and needed for
6208 novell). Reported by Andreas Quitzow <[email protected]>.
6209 * ftpclass.cc, ftpclass.h: fix ssl support (tested on ftpd-tls).
6210
6211 2000-08-25 Alexander V. Lukyanov <[email protected]>
6212
6213 * ftpclass.cc: set *_ssl_connected after SSL_connect.
6214
6215 2000-08-24 Alexander V. Lukyanov <[email protected]>
6216
6217 * ftpclass.h, Fish.h: fix last comma in enum.
6218 * ResMgr.h: make ResMgr::Resource public.
6219
6220 2000-08-23 Alexander V. Lukyanov <[email protected]>
6221
6222 * FileCopy.cc: fix Seek of FileCopyPeerFDStream. This fixes
6223 problem with downloading from REST uncapable servers.
6224
6225 2000-08-21 Alexander V. Lukyanov <[email protected]>
6226
6227 * ftpclass.cc: if server returned address from private network
6228 and its own address is not in private network, don't beleave it
6229 and use original server address.
6230
6231 2000-08-20 Alexander V. Lukyanov <[email protected]>
6232
6233 * ftpclass.cc, ftpclass.h: check data port for ftps-data; all_lines
6234 new member; check all_lines for auto-sync-mode; fix ftps connection
6235 borrowing.
6236 * resource.cc: make use-site-idle off by default; validate https:proxy.
6237 * HttpDir.cc: fix unterminated comment handling; handle bsd-like
6238 ftp listings from apache proxy.
6239
6240 2000-08-13 Alexander V. Lukyanov <[email protected]>
6241
6242 * Http.cc: (MergeCookies) null-terminate cookie properly.
6243
6244 2000-08-06 Alexander V. Lukyanov <[email protected]>
6245
6246 * ftpclass.cc, ftpclass.h: support for ssl (AUTH TLS).
6247 * resource.cc: new settings ftp:ssl-allow, ssl-force, ssl-protect-data;
6248 allow https for http:proxy; set https:proxy by https_proxy.
6249 * Http.cc: move Https::New to ifdef; fix cookie closure match.
6250
6251 2000-08-04 Alexander V. Lukyanov <[email protected]>
6252
6253 * Http.cc, Http.h: init https properly; rework cookie sending/receiving,
6254 now cookies are joined from all matching closures, path is
6255 also checked; use lftp_ssl_new; don't disconnect in some cases.
6256 * ResMgr.cc, ResMgr.h: (QueryNext) new method for cookies merging.
6257 * buffer.cc: use service lftp_ssl* functions.
6258 * ftpclass.cc, ftpclass.h: send SITE IDLE.
6259 * resource.cc: new setting ftp:use-site-idle.
6260 * ResMgr.cc: quote ;& properly.
6261 * MirrorJob.cc: increment error_count when cd fails.
6262
6263 2000-07-31 Alexander V. Lukyanov <[email protected]>
6264
6265 * FileAccess.cc: add ] to list of wildcards.
6266 * FtpGlob.cc: fix coredump on empty directories.
6267 * complete.cc: fix filename quotation.
6268 * lftp_ssl.cc, lftp_ssl.h: new files.
6269
6270 2000-07-30 Alexander V. Lukyanov <[email protected]>
6271
6272 * FileAccess.cc, FileAccess.h: res_prefix new member.
6273 * FindJob.cc, Fish.cc, Fish.h, FtpDirList.cc, LocalAccess.cc,
6274 Resolver.cc: use new IOBuffer.
6275 * Http.cc, Http.h: implement https; use IOBuffer.
6276 * HttpDir.cc: skip comments in html; use IOBuffer.
6277 * buffer.cc, buffer.h: IOBuffer class; IOBufferSSL for ssl IO.
6278 * resource.cc: add https:proxy setting.
6279
6280 2000-07-29 Alexander V. Lukyanov <[email protected]>
6281
6282 * complete.cc: fix # quoting.
6283
6284 2000-07-28 Alexander V. Lukyanov <[email protected]>
6285
6286 * FileCopy.cc, FileCopy.h: don't create file in reget until data are
6287 available.
6288 * buffer.cc, buffer.h: get_size new method; getsize_and_seek_end removed.
6289
6290 2000-07-27 Alexander V. Lukyanov <[email protected]>
6291
6292 * ResMgr.cc, ResMgr.h: NoClosure validator.
6293 * CmdExec.cc, FileCopy.cc, GetJob.cc, Resolver.cc, Speedometer.cc,
6294 resource.cc: use NoClosure where needed.
6295 * commands.cc: add closure for cmd:default-protocol and
6296 bmk:save-passwords.
6297 * resource.cc: add http:post-content-type; validate http:put-method.
6298 * Http.cc: use http:post-content-type.
6299 * FileSet.cc: (FileSet::Merge) fix long standing bug, which caused
6300 rare coredumps on completion.
6301
6302 2000-07-26 Alexander V. Lukyanov <[email protected]>
6303
6304 * FileCopy.cc: apply non-absolute redirection to orig_url.
6305 * ResMgr.cc, ResMgr.h: regexp validator.
6306 * ftpclass.cc, resource.cc: ftp:auto-sync-mode setting.
6307
6308 2000-07-25 Alexander V. Lukyanov <[email protected]>
6309
6310 * MirrorJob.cc, MirrorJob.h: count errors; (ExitCode) implemented.
6311 * Resolver.cc: use getipnodebyname when available (for solaris8).
6312 * ftpclass.cc: handle "" in PWD reply; fix NextPeer selection.
6313 * NetAccess.cc: don't reset peer_curr on Resolve.
6314 * pgetJob.cc: fix eta.
6315
6316 2000-07-21 Alexander V. Lukyanov <[email protected]>
6317
6318 * CopyJob.cc: fix duplicate error messages.
6319 * commands.cc: help update: mirror -P, exit bg.
6320
6321 2000-07-20 Alexander V. Lukyanov <[email protected]>
6322
6323 * FileAccess.cc, FileAccess.h: (GetVisualProto, SetVisualProto)
6324 new methods; handle http proxy on creation of ftp session.
6325 * Http.cc: use ftp:proxy if session was created as ftp.
6326 * HttpDir.cc: check for ftp too.
6327 * commands.cc: create new session everytime.
6328 * resource.cc: check ftp:proxy for http://.
6329
6330 2000-07-19 Alexander V. Lukyanov <[email protected]>
6331
6332 * Job.cc, Job.h: support for several jobs being waited for
6333 (preparation for mirror --parallel).
6334 * CmdExec.cc, CmdExec.h, CopyJob.cc, FindJob.cc, MirrorJob.cc,
6335 SleepJob.cc, commands.cc, mgetJob.cc: according to Job.cc.
6336 * MirrorJob.cc, MirrorJob.h: --parallel option (finally!).
6337 * CatJob.cc, CatJob.h, commands.cc: auto ascii for cat; wait all
6338 for new waiting scheme.
6339 * CopyJob.cc, CopyJob.h: support several CopyJob's in CopyJobEnv.
6340 * Job.cc, Job.h: (WaitForAllChildren) new method for `wait all'.
6341
6342 2000-07-18 Alexander V. Lukyanov <[email protected]>
6343
6344 * FileAccess.h, FileAccess.cc: use FileSet in Glob.
6345 * CmdExec.cc, FileSet.h, FileSet.cc, FtpGlob.cc, FtpGlob.h,
6346 FtpListInfo.cc, FtpListInfo.h, FtpSplitList.cc, HttpDir.cc,
6347 HttpDir.h, LocalAccess.cc, mgetJob.cc: change for FileSet in Glob.
6348 * complete.cc: FileSet from Glob; append / for directories (finally!).
6349
6350 2000-07-17 Alexander V. Lukyanov <[email protected]>
6351
6352 * FileSet.cc: don't pass REG_NOSUB to regexec, this fixes
6353 coredump on BSD. Reported by Andriy I Pilipenko <[email protected]>
6354
6355 2000-07-16 Alexander V. Lukyanov <[email protected]>
6356
6357 * FileAccess.cc: invalidate dir listing cache on chmod.
6358 * Http.cc, Http.h: implement Suspend, Resume; resume and Roll
6359 recv_buf on Close.
6360 * SMTask.h: (IsSuspended) new method.
6361 * buffer.cc: resume in_FA before Close.
6362
6363 2000-07-14 Alexander V. Lukyanov <[email protected]>
6364
6365 * NetAccess.cc: (SocketNumericAddress) use SocketAddrLen, this fixes
6366 a problem with solaris8.
6367 * Http.cc: set real_pos=0 when no_ranges==true.
6368 * commands.cc: fix `open -u ... -p ... bookmark_name'.
6369
6370 2000-07-13 Alexander V. Lukyanov <[email protected]>
6371
6372 * ftpclass.cc, ftpclass.h: (SendArrayInfoRequests) new method;
6373 fix gcc-2.96 error; fix a coredump; add asserts.
6374 * LocalAccess.cc: fix rels.
6375
6376 2000-07-12 Alexander V. Lukyanov <[email protected]>
6377
6378 * Http.cc: don't query for accept* if hftp.
6379 * pgetJob.cc: fix deadlock.
6380
6381 2000-07-11 Alexander V. Lukyanov <[email protected]>
6382
6383 * ftpclass.cc: fix error with gcc-2.96.
6384
6385 2000-07-10 Alexander V. Lukyanov <[email protected]>
6386
6387 * ftpclass.cc: fix potential memory leak.
6388
6389 2000-07-07 Alexander V. Lukyanov <[email protected]>
6390
6391 * lftp.cc, resource.cc: ask for password for ftp:proxy.
6392 * Http.cc: workaround for redirections without "\n\n";
6393 check if all data arrived before disconnecting; set body_size=0
6394 on "204 No Content"; handle "100 Continue".
6395
6396 2000-07-04 Alexander V. Lukyanov <[email protected]>
6397
6398 * FileAccess.cc, FileAccess.h: (FileAccess::ClassInit) new function;
6399 move calls of Ftp::ClassInit there.
6400 * lftp.cc: call FileAccess::ClassInit.
6401 * Filter.cc, Filter.h: add stderr_to_stdout flag.
6402 * FtpDirList.cc, FtpListInfo.cc, FtpSplitList.cc, HttpDir.cc:
6403 fix printing for off_t.
6404
6405 2000-07-03 Alexander V. Lukyanov <[email protected]>
6406
6407 * Http.cc: fix compilation problem on IRIX.
6408
6409 2000-06-29 Alexander V. Lukyanov <[email protected]>
6410
6411 * FileCopy.cc: don't Open NULL file, use "".
6412
6413 2000-06-26 Alexander V. Lukyanov <[email protected]>
6414
6415 * MirrorJob.cc: use lstat instead of stat on local file before mkdir.
6416 * Job.cc, Job.h: (FindAnyChild) new method.
6417 * CmdExec.cc, CmdExec.h, commands.cc: support for `wait all'.
6418 * ftpclass.cc: fix RETR reply handling (was broken in A00625 snapshot).
6419 * Http.cc: don't use |= on bool.
6420
6421 2000-06-25 Alexander V. Lukyanov <[email protected]>
6422
6423 * resource.cc: limit max-retries by default.
6424 * ftpclass.cc: fix 4xx handling in file access (broken by recent changes).
6425
6426 2000-06-23 Alexander V. Lukyanov <[email protected]>
6427
6428 * FileAccess.cc: (StrError) optimize; add error text to "Login failed".
6429 * NetAccess.cc, NetAccess.h, resource.cc: net:persist-retries new setting.
6430 * ftpclass.cc, ftpclass.h: rework of reply handling; persist support.
6431
6432 2000-06-22 Alexander V. Lukyanov <[email protected]>
6433
6434 * FileCopy.cc, FileCopy.h: log redirections; fix init of redirections;
6435 (FileCopyPeerFA::Init) new method.
6436 * Http.cc, resource.cc: new settings http:accept, http:accept-charset,
6437 http:accept-language.
6438
6439 2000-06-21 Alexander V. Lukyanov <[email protected]>
6440
6441 * CmdExec.cc, CmdExec.h, commands.cc, lftp.cc: new setting
6442 cmd:move-background; (Feeder::RealEOF) new method.
6443 * FileAccess.cc, FileAccess.h, Http.h, Http.cc, FileCopy.cc,
6444 FileCopy.h: new setting xfer:max-redirections; redirection support;
6445 in http code - check for 20X code before using size/date.
6446
6447 2000-06-18 Alexander V. Lukyanov <[email protected]>
6448
6449 * Http.cc: use strncasecmp for special cookie checking; handle domain=.
6450
6451 2000-06-15 Alexander V. Lukyanov <[email protected]>
6452
6453 * FileCopyFtp.cc, Fish.cc, Fish.h, FtpDirList.cc, FtpListInfo.cc,
6454 HttpDir.cc, NetAccess.cc, ftpclass.h: use off_t in many places.
6455
6456 2000-06-10 Alexander V. Lukyanov <[email protected]>
6457
6458 * GetJob.cc: new setting xfer:make-backup.
6459
6460 2000-06-09 Alexander V. Lukyanov <[email protected]>
6461
6462 * NetAccess.cc: use 2*rate as default limit-max.
6463
6464 2000-06-08 Alexander V. Lukyanov <[email protected]>
6465
6466 * CopyJob.cc, CopyJob.h, FileAccess.cc, FileAccess.h, FileCopy.cc,
6467 FileCopy.h, FileSet.h, Filter.cc, Filter.h, Http.cc, Http.h,
6468 LocalAccess.cc, Makefile.in, Speedometer.cc, Speedometer.h,
6469 buffer.cc, buffer.h, ftpclass.cc, ftpclass.h, misc.cc, misc.h,
6470 pgetJob.cc, pgetJob.h, plural.c, plural.h: large file size support.
6471
6472 2000-06-07 Alexander V. Lukyanov <[email protected]>
6473
6474 * Http.cc: apply `;type=' to hftp urls too.
6475 * MirrorJob.cc: chmod files if needed before continuing download.
6476 * xmalloc.h: add alloca_strdup2 macro.
6477 * resource.cc: workaround IRIX CC and Unixware c++ bug by converting
6478 array to plain variables. (debugged and workaround proposed by
6479 Eugene Exarevsky <[email protected]>)
6480
6481 2000-06-01 Alexander V. Lukyanov <[email protected]>
6482
6483 * CmdExec.cc: better status line; quote more special symbols.
6484 * FileCopy.cc: fix positioning in FileCopyPeerFDStream.
6485 * FindJob.cc: change op in FinderJob_Cmd ctor.
6486 * Http.cc: don't pass user data as format, use %s.
6487 * Job.cc: fix kill all.
6488 * MirrorJob.cc: remove remote directories in reverse mode; fix chmod.
6489
6490 2000-05-25 Alexander V. Lukyanov <[email protected]>
6491
6492 * Http.cc: fix quote-post; fix spurious 'Op not supp' messages and
6493 looping.
6494 * HttpDir.cc: fix symlinks parsing in squid ftp listing.
6495
6496 2000-05-23 Alexander V. Lukyanov <[email protected]>
6497
6498 * Http.cc: implement `quote set-cookie'; don't retry POST op if
6499 some data were sent; implement `quote POST path data'.
6500 * Http.h: (post, post_data) new members.
6501
6502 2000-05-22 Alexander V. Lukyanov <[email protected]>
6503
6504 * Http.cc, Http.h, resourse.cc: add http:set-cookies var.
6505 * xmalloc.cc: (xstrdup) correct spare allocation when str==0.
6506
6507 2000-05-20 Alexander V. Lukyanov <[email protected]>
6508
6509 * resource.cc: remove `-' from default anon password.
6510
6511 2000-05-19 Alexander V. Lukyanov <[email protected]>
6512
6513 * Resolver.cc: use getaddrinfo only if gethostbyname2 is not available.
6514 * HttpDir.cc: (remove_tags) don't remove anchor tags; add debug.
6515 * Http.cc: fix few bugs concerned with keep-alive support.
6516
6517 2000-05-13 Alexander V. Lukyanov <[email protected]>
6518
6519 * ftpclass.cc: disconnect on 421/221 reply without sending QUIT.
6520 * Resolver.cc: use getaddrinfo if available. (original patch
6521 from Brandon Hume)
6522
6523 2000-05-11 Alexander V. Lukyanov <[email protected]>
6524
6525 * Http.cc: use vsnprintf only if available.
6526 * log.cc: move vsnprintf declaration to xstring.h.
6527 * ftpclass.cc, ftpclass.h, resource.cc: wait for QUIT reply before
6528 closing the socket; ftp:use-quit new setting.
6529
6530 2000-05-04 Alexander V. Lukyanov <[email protected]>
6531
6532 * xmalloc.cc, xmalloc.h: add spare parameter to xstrdup.
6533 * HttpDir.cc: workaround some bugs in apache proxy.
6534 * GetJob.cc, bookmark.cc, history.cc: use new xstrdup parameter.
6535 * Http.cc, Http.h, resource.cc: add http:put-content-type setting;
6536 fix Http::Send buffer allocation.
6537 * misc.cc, misc.h: optimize month_names.
6538 * CmdExec.cc: don't say Running when doing nothing.
6539 * FileAccess.cc, FileAccess.h: move retries here; don't reset try_time
6540 on open; GetTryTime, SetTryTime, GetRetries, SetRetries new/moved here.
6541 * NetAccess.cc, NetAccess.h: ...from here.
6542 * FileCopy.cc, FileCopy.h: get/set try_time and retries on store retry.
6543
6544 2000-05-02 Alexander V. Lukyanov <[email protected]>
6545
6546 * Http.cc: (Disconnect) don't set state before check.
6547 * CmdExec.cc, CmdExec.h: use TERM as closure for cmd:prompt.
6548
6549 2000-05-01 Alexander V. Lukyanov <[email protected]>
6550
6551 * Http.cc: support http:put-method; don't use locale for sending
6552 Last-Modified header line; add \n to Last-Modified line;
6553 don't use keep-alive for PUT; fix coredump on ^C on PUT.
6554 * resource.cc: add http:put-method.
6555 * misc.cc, misc.h: export month_names.
6556
6557 2000-04-30 Alexander V. Lukyanov <[email protected]>
6558
6559 * Http.cc, Http.h: finish keep-alive support.
6560 * ftpclass.cc: return from GetBetterConnection if a connection breaks.
6561
6562 2000-04-29 Alexander V. Lukyanov <[email protected]>
6563
6564 * Http.cc: add Cookie support; allow disabling user-agent.
6565 * resource.cc: new setting http:cookie.
6566 * CatJob.cc: simplify FileCopyPeerFA creation.
6567 * FileAccess.cc, FileAccess.h, url.cc, url.h, Http.cc,
6568 FileCopy.cc, FileCopy.h: use original URL when sending HTTP request,
6569 this allows requesting URLs containing e.g. '?'.
6570
6571 2000-04-26 Alexander V. Lukyanov <[email protected]>
6572
6573 * Http.cc: don't disable ranges always, check condition before
6574 disconnect.
6575
6576 2000-04-23 Alexander V. Lukyanov <[email protected]>
6577
6578 * Http.cc: handle old servers version 0.9 correctly.
6579 * CmdExec.cc: actually commit the change for ^Z handling in `cd' command.
6580
6581 2000-04-20 Alexander V. Lukyanov <[email protected]>
6582
6583 * Http.cc: query http:user-agent explicitly.
6584 * MirrorJob.cc: fix compilation problem.
6585 * CmdExec.cc: fix stall problem with glob.
6586 * DummyProto.h, complete.cc, pgetJob.h: fix warnings.
6587
6588 2000-04-19 Alexander V. Lukyanov <[email protected]>
6589
6590 * FileAccess.cc, Http.cc: fix SetError(SEE_ERRNO) usage.
6591 * MirrorJob.cc: add -T option.
6592 * commands.cc: update mirror help.
6593
6594 2000-04-15 Alexander V. Lukyanov <[email protected]>
6595
6596 * FileSet.cc, FileSet.h: use class TimeInterval; add loose_prec arg.
6597 * MirrorJob.cc, MirrorJob.h: add --loose-time-prec; handle new mirror:
6598 settings.
6599 * ResMgr.h: make some TimeInterval methods const.
6600 * ftpclass.cc: lower priority of messages for failed MDTM.
6601 * resource.cc: new settings mirror:time-prec and loose-time-prec.
6602
6603 2000-04-14 Alexander V. Lukyanov <[email protected]>
6604
6605 * Resolver.cc: workaround for `class' in nameser.h (freebsd3.2).
6606 * ftpclass.cc: (TransferCheck) fix wrong error handling in passive
6607 STORE mode, it lead to infinite loops.
6608
6609 2000-04-12 Alexander V. Lukyanov <[email protected]>
6610
6611 * CmdExec.cc, CmdExec.h, lftp.cc: add cmd:interactive setting.
6612 * commands.cc: encode special characters in bookmark target.
6613 * GetPass.cc: (readline_from_file) treat ^C as empty line, not eof.
6614
6615 2000-04-09 Alexander V. Lukyanov <[email protected]>
6616
6617 * FileAccess.cc: workaround gcc alloca misfeature.
6618
6619 2000-04-06 Alexander V. Lukyanov <[email protected]>
6620
6621 * MirrorJob.cc: better error messages.
6622
6623 2000-04-03 Alexander V. Lukyanov <[email protected]>
6624
6625 * FileCopy.cc: return m, not STALL.
6626 * Http.cc, Http.h, resource.cc: add http:user-agent setting.
6627 * MirrorJob.cc, MirrorJob.h: add --Remove-source-files option.
6628 * ResMgr.cc: fix small memory leak.
6629 * pgetJob.cc: resume CopyJob, maybe this fixes rare pget hang.
6630
6631 2000-03-29 Alexander V. Lukyanov <[email protected]>
6632
6633 * ftpclass.cc: disconnect even if control_sock==-1.
6634 * Filter.cc: add O_BINARY for windows.
6635
6636 2000-03-27 Alexander V. Lukyanov <[email protected]>
6637
6638 * MirrorJob.cc, MirrorJob.h: check --no-perms in reverse mirror;
6639 take umask into account in reverse mirror (unless --no-umask
6640 is specified).
6641 * Http.cc, Http.h: when there is "Accept-Ranges: none", don't send
6642 Ranges: again; catch size of the file when Ranges: did not work;
6643 workaround squid feature when server does not support Ranges:
6644 but squid emulates it and thus lftp gets timeout.
6645 * FileCopy.cc, FileCopy.h: emulate eof when regetting a file which
6646 is already complete and source does not support restarting.
6647
6648 2000-03-24 Alexander V. Lukyanov <[email protected]>
6649
6650 * Job.h: (SetParentFg) new method.
6651 * CmdExec.cc, CopyJob.cc, FindJob.cc, MirrorJob.cc, SleepJob.cc,
6652 commands.cc, mgetJob.cc, pgetJob.cc: use it.
6653 * lftpget: -u is obsolete.
6654 * MirrorJob.cc: set use_cache in child MirrorJob.
6655
6656 2000-03-23 Alexander V. Lukyanov <[email protected]>
6657
6658 * Speedometer.cc: cast to int to avoid ambiguity on HP/UX.
6659
6660 2000-03-22 Alexander V. Lukyanov <[email protected]>
6661
6662 * CmdExec.cc, LsCache.cc, commands.cc: don't call macro alloca_strdup
6663 on complex expressions.
6664 * FileCopy.cc: remove default value in function definition; count
6665 rate when draining `put' in CONFIRM_STORE.
6666 * ResMgr.cc: include math.h for irix.
6667 * GetJob.cc: apply cwd in reverse mode.
6668
6669 2000-03-21 Alexander V. Lukyanov <[email protected]>
6670
6671 * ftpclass.cc, ftpclass.h: allow \n in file names, substitute it
6672 with \0; clean up command sending.
6673
6674 2000-03-20 Alexander V. Lukyanov <[email protected]>
6675
6676 * FileCopy.cc: add debug messages.
6677 * Http.cc: initialize bytes_received; add debug messages;
6678 simulate eof if pos>=entity_size.
6679 * HttpDir.cc: fix bug in TR handling, introduced yesterday.
6680 * Http.cc: fix no-proxy handling, always use proxy for hftp.
6681 * ftpclass.cc: fix no-proxy handling.
6682
6683 2000-03-19 Alexander V. Lukyanov <[email protected]>
6684
6685 * HttpDir.cc: treat table row as a whole line; remove tags before
6686 parsing. (this helps to parse boa_indexer indices, e.g.
6687 http://download.sourceforge.net)
6688 * FtpDirList.cc, FtpListInfo.cc: recognize permissions in EPLF listing.
6689 * misc.cc, misc.h: (format_perms) new function.
6690 * ftpclass.cc: treat cat "" as raw LIST.
6691 * resource.cc: make passive mode the default.
6692
6693 2000-03-17 Alexander V. Lukyanov <[email protected]>
6694
6695 * FileAccess.cc: debug code added.
6696 * FindJob.cc, FindJob.h: (quiet) new member; use it; set child jobs fg
6697 if needed.
6698 * commands.cc: rm -f.
6699 * ftpclass.cc: don't delay session re-usage if connection limit is not
6700 reached.
6701
6702 2000-03-16 Alexander V. Lukyanov <[email protected]>
6703
6704 * ResMgr.cc: call srandom if range is full.
6705 * ftpclass.cc: don't fail if port not available, but rather wait
6706 and retry.
6707 * commands.cc: (command) handle args->count()==1.
6708
6709 2000-03-15 Alexander V. Lukyanov <[email protected]>
6710
6711 * ftpclass.cc, ftpclass.h: disallow filenames with NL;
6712 call ReuseAddress if could not get available port.
6713 * FileAccess.cc: (Rename) assign file1 before Open; (Open) don't Close
6714 if not needed.
6715 * buffer.cc: ignore EINTR from write.
6716 * NetAccess.cc, NetAccess.h: (ReuseAddress) new method.
6717
6718 2000-03-14 Alexander V. Lukyanov <[email protected]>
6719
6720 * ftpclass.cc, resource.cc: add ftp:web-mode.
6721
6722 2000-03-12 Alexander V. Lukyanov <[email protected]>
6723
6724 * ftpclass.cc: (DataAbort) disregard replies for commands sent
6725 before ABOR.
6726
6727 2000-03-10 Alexander V. Lukyanov <[email protected]>
6728
6729 * ftpclass.cc: disallow double ABOR, disconnect instead.
6730
6731 2000-03-09 Alexander V. Lukyanov <[email protected]>
6732
6733 * ftpclass.cc: (GetBetterConnection) don't touch CONNECTING_STATE.
6734 * CmdExec.cc: fix prompt space allocation.
6735 * ResMgr.cc: declare random if needed.
6736
6737 2000-03-07 Alexander V. Lukyanov <[email protected]>
6738
6739 * ResMgr.cc, ResMgr.h: add Range class.
6740 * resource.cc: add ftp:port-range.
6741 * ftpclass.cc: use port-range to bind data socket.
6742
6743 2000-03-06 Alexander V. Lukyanov <[email protected]>
6744
6745 * FileAccess.cc, FileAccess.h: make IsConnected int; simpler
6746 IsBetterThan implementation.
6747 * Http.h, ftpclass.h: better IsConnected - assign to conneting state
6748 connect level 1.
6749
6750 2000-03-05 Alexander V. Lukyanov <[email protected]>
6751
6752 * FileAccess.cc: use NO_SIZE and NO_DATE.
6753 * ftpclass.cc: save size in entity_size and simulate eof on pos>=size;
6754 send proper offset for REST.
6755 * NetAccess.cc, NetAccess.h: add takeover_time.
6756 * ftpclass.cc, ftpclass.h: don't use taken-over connection immediately
6757 if priority<1; pass connection count to GetBetterConnection.
6758
6759 2000-03-02 Alexander V. Lukyanov <[email protected]>
6760
6761 * ftpclass.cc: don't take over a connection if it has NOREST_MODE;
6762 check if connection_limit is reached before interrupting a transfer.
6763 * commands.cc: -E for get, put, mget, mput.
6764
6765 2000-03-01 Alexander V. Lukyanov <[email protected]>
6766
6767 * CmdExec.cc, CopyJob.h, FileAccess.cc, FileCopy.cc, FileCopy.h,
6768 Job.cc, Job.h, NetAccess.cc, commands.cc, ftpclass.cc, resource.cc:
6769 implement net:connection-limit and net:connection-takeover
6770 settings; add Fg/Bg where needed.
6771
6772 2000-02-29 Alexander V. Lukyanov <[email protected]>
6773
6774 * CmdExec.cc: explain termination when cwd is not accessible.
6775 * FileAccess.cc, FileAccess.h: (priority) new member; (SetPriority);
6776 (FirstSameSite, NextSameSite) new methods.
6777 * FileCopy.cc: (OpenSession) mark current task as moved.
6778 * Http.h: (IsConnected) implemented.
6779 * NetAccess.cc, NetAccess.h: (CountConnections) new method;
6780 (connection_limit, connection_takeover) new members.
6781 * SMTask.cc, SMTask.h: add a dummy init_task so that current!=0.
6782
6783 2000-02-28 Alexander V. Lukyanov <[email protected]>
6784
6785 * ftpclass.cc, ftpclass.h: remember last REST position and do `REST 0'
6786 if last REST was >0 (for broken? ftp servers that don't reset REST).
6787 * MirrorJob.cc: (PrintStatus) improved.
6788 * pgetJob.cc: get size and offset after calling super::Do, because
6789 the copier can be changed by it.
6790
6791 2000-02-27 Alexander V. Lukyanov <[email protected]>
6792
6793 * commands.cc: fix typo in mput help.
6794
6795 2000-02-24 Alexander V. Lukyanov <[email protected]>
6796
6797 * Job.cc, Job.h, CmdExec.cc: (Job::ListOneJob, Job::PrintJobTitle) new
6798 methods; use them.
6799
6800 2000-02-23 Alexander V. Lukyanov <[email protected]>
6801
6802 * ftpclass.cc, ftpclass.h: raise log level of CWD reply to 3.
6803 * MirrorJob.cc: log directory if verbose>=3; show directory in status.
6804 * misc.cc, misc.h: (squeeze_file_name) new function (from CopyJob).
6805 * CopyJob.cc: use it.
6806
6807 2000-02-22 Alexander V. Lukyanov <[email protected]>
6808
6809 * complete.cc: implement LOCAL_DIR mode; recognize -O;
6810 use LOCAL_DIR for lcd.
6811 * FtpListInfo.cc: add OS2 list parser.
6812
6813 2000-02-20 Alexander V. Lukyanov <[email protected]>
6814
6815 * CmdExec.cc, CmdExec.h, commands.cc: (saved_session) new member;
6816 save old session while new host name is verified and restore on error.
6817 * NetAccess.cc: nullify cwd too on bad host name error.
6818 * FileAccess.cc: (Rename) correct typo (which caused core dumps).
6819
6820 2000-02-19 Alexander V. Lukyanov <[email protected]>
6821
6822 * FileCopy.cc: count Buffered() change even when input buffer is empty.
6823 * Speedometer.cc: protect from rate<0.
6824
6825 2000-02-17 Alexander V. Lukyanov <[email protected]>
6826
6827 * ftpclass.cc: workaround server's y2k bug in MDTM.
6828 (reported by Robert de Bath <[email protected]>)
6829
6830 2000-02-15 Alexander V. Lukyanov <[email protected]>
6831
6832 * CmdExec.cc: (SuspendJob) print a better status for CopyJobEnv.
6833 * Speedometer.cc: reduce initial rate period to 2 seconds.
6834
6835 2000-02-14 Alexander V. Lukyanov <[email protected]>
6836
6837 * ftpclass.cc: close data socket when switching to no-rest mode.
6838 * HttpDir.cc: strip quotes from refresh URL.
6839
6840 2000-02-12 Alexander V. Lukyanov <[email protected]>
6841
6842 * CmdExec.cc, GetPass.cc, Job.cc, LsCache.cc, MirrorJob.cc, ResMgr.cc,
6843 alias.cc, commands.cc, complete.cc, lftp.cc, netrc.cc, parsecmd.cc,
6844 pgetJob.cc:
6845 call xfree everywhere.
6846 * Filter.cc: use xfree and xgetcwd.
6847 * Resolver.cc: don't dup2 to fd 1.
6848 * SMTask.cc: add task_count and debug.
6849 * SleepJob.cc: use TimeoutS.
6850 * ftpclass.cc, ftpclass.h: add FreeResult method.
6851 * misc.cc: (xgetcwd) call xmalloc_register_block.
6852 * xmalloc.cc, xmalloc.h: count memory blocks;
6853 add xmalloc_register_block.
6854 * NetAccess.cc: workaround gcc bug, this fixes mem leak.
6855 * buffer.cc: clean up gotos.
6856 * lftp.cc, lftp_rl.c, lftp_rl.h: readline result must be freed;
6857 register it with xmalloc_register_block.
6858
6859 2000-02-12 Alexander V. Lukyanov <[email protected]>
6860
6861 * FileCopy.cc: fix memory leaks.
6862 * LsCache.cc: use xfree.
6863 * commands.cc: help for repeat.
6864 * xmalloc.cc, xmalloc.h: outline xstrdup; MEM_DEBUG it.
6865 * ArgV.cc, ArgV.h: fix memory leak. Allocate memory in chunks.
6866 * FileAccess.cc, FileAccess.h, Filter.cc, Filter.h, LocalAccess.cc:
6867 don't include ArgV.h in header.
6868 * LsCache.h, LsCache.cc: don't dup memory in Find method.
6869 * FtpDirList.cc, FtpSplitList.cc, HttpDir.cc: use new LsCache::Find.
6870 * url.h: start implementing class url.
6871
6872 2000-02-11 Alexander V. Lukyanov <[email protected]>
6873
6874 * CopyJob.cc: print rate using Speedometer::GetStr.
6875
6876 2000-02-09 Alexander V. Lukyanov <[email protected]>
6877
6878 * CopyJob.cc, CopyJob.h: don't use putchar; print summary when Done().
6879 * pgetJob.cc: don't use putchar.
6880 * mgetJob.cc: don't print empty line.
6881
6882 2000-02-08 Alexander V. Lukyanov <[email protected]>
6883
6884 * FileCopy.cc: don't show rate when put==0.
6885 * Makefile.am: remove ftpget.o.
6886 * SMTask.cc, SMTask.h: (current) new static member; empty all block's
6887 before calling all Do's.
6888 * NetAccess.cc: (DelayingMessage) use current->Timeout.
6889 * PollVec.h: add GetTimeout for debugging.
6890 * Speedometer.cc: use current->Timeout.
6891 * StatusLine.cc: use TimeoutS.
6892
6893 2000-02-06 Alexander V. Lukyanov <[email protected]>
6894
6895 * CmdExec.cc: (PrintStatus) special case for CopyJobEnv in queue mode.
6896
6897 2000-02-04 Alexander V. Lukyanov <[email protected]>
6898
6899 * ProcWait.cc: if waitpid fails, check pid existence.
6900
6901 2000-02-02 Alexander V. Lukyanov <[email protected]>
6902
6903 * commands.cc: add -O option to help.
6904 * Http.cc: declare strptime if needed.
6905 * ftpclass.cc: handle "port theft" message in fxp mode.
6906 * FileCopyFtp.cc: check for reversing passive-source fixed; add
6907 messages.
6908 * FileCopy.cc: add missing \n.
6909
6910 2000-02-01 Alexander V. Lukyanov <[email protected]>
6911
6912 * CopyJob.h: add GetETAStrSFromTime.
6913 * FileCopy.cc, FileCopy.h: split off Speedometer;
6914 add GetETAStrSFromTime; pass reource name to Speedometer.
6915 * pgetJob.cc: call cp->GetETAStrSFromTime.
6916 * commands.cc: set old path before cd, so that after `open url'
6917 `cd -' works; add --use-cache to mirror help.
6918 * Speedometer.cc, Speedometer.h: new files; accept resource name
6919 instead of period.
6920 * ProcWait.cc: don't change state to ERROR at all (because process
6921 can still run after waitpid fails)
6922 * FtpListInfo.cc: more verbose status.
6923 * FtpSplitList.cc, FtpSplitList.h: measure rate.
6924 * MirrorJob.cc: show only li->Status(); add use_cache member;
6925
6926 2000-01-31 Alexander V. Lukyanov <[email protected]>
6927
6928 * FileAccess.h, FileAccess.cc: add NO_PASSWORD option for GetFileURL.
6929 * history.cc: use NO_PASSWORD; encode paths in cwd_history.
6930 * NetAccess.cc, NetAccess.h: (ReconnectInterval, DelayingMessage) new
6931 methods.
6932 * ftpclass.cc, Http.cc: use DelayingMessage.
6933 * CmdExec.cc: show job number for queue's current job.
6934 * complete.cc: improve completion for queue command.
6935 * commands.cc: improve help for queue.
6936
6937 2000-01-30 Alexander V. Lukyanov <[email protected]>
6938
6939 * Resolver.cc: flush buffer in case of error.
6940 * ProcWait.cc: don't spin on error or done.
6941 * SMTask.cc: add debug code.
6942 * ftpclass.cc: add assert; remove obsolete code.
6943 * ProcWait.cc: handle waitpid errors better.
6944
6945 2000-01-29 Alexander V. Lukyanov <[email protected]>
6946
6947 * ftpclass.cc: check for "timed out" in reply; check if data were
6948 sent or received before 5xx reply; don't spin on errors (not a bug).
6949 * PollVec.cc, PollVec.h: simplify.
6950 * CharReader.cc, FileCopy.cc, FileFeeder.cc, LocalAccess.cc,
6951 ProcWait.cc, Resolver.cc, StatusLine.cc, SysCmdJob.cc, buffer.cc,
6952 lftp.cc: don't use block directly.
6953 * GetJob.cc: check if output file is normal before renaming it.
6954 * Http.cc, Http.h: remove redundant CheckTimeout;
6955 don't use block directly.
6956 * NetAccess.cc, NetAccess.h: bool CheckTimeout; don't use block
6957 directly.
6958 * SMTask.cc, SMTask.h: use simplified PollVec.
6959
6960 2000-01-28 Alexander V. Lukyanov <[email protected]>
6961
6962 * url.cc: workaround for dos paths.
6963 * ftpclass.cc: unixware does not have IN6_ARE_ADDR_EQUAL - workaround.
6964
6965 2000-01-27 Alexander V. Lukyanov <[email protected]>
6966
6967 * CharReader.h, CmdExec.cc, CopyJob.cc, FileAccess.cc, FileAccess.h,
6968 FileCopy.cc, FileCopy.h, Filter.cc, FindJob.cc, FtpDirList.cc,
6969 FtpGlob.cc, FtpListInfo.cc, Http.cc, HttpDir.cc, Job.cc, Job.h,
6970 LocalAccess.cc, LsCache.cc, LsCache.h, MirrorJob.cc, NetAccess.cc,
6971 NetAccess.h, PollVec.h, ProcWait.cc, ProcWait.h, Resolver.cc,
6972 Resolver.h, SMTask.cc, SMTask.h, SleepJob.cc, StatusLine.h,
6973 buffer.h, commands.cc, ftpclass.cc, ftpclass.h, log.h, mgetJob.cc,
6974 pgetJob.cc: (SMTask::Delete, SMTask::Roll) new methods; use them
6975 everywhere; prohibit direct SMTask destruction by making destructors
6976 protected; (SMTask::deleting) new member; don't show rate if it is
6977 not valid; don't call SMTask::Do directly; (NetAccess::Close) new
6978 method.
6979 * ftpclass.cc: turn on sync mode when 331 precedes 220. (for vftpd)
6980
6981 2000-01-26 Alexander V. Lukyanov <[email protected]>
6982
6983 * md5.c: check for HAVE_ENDIAN_H
6984 * commands.cc: options for glob; add help for glob and find.
6985 * ftpclass.cc: compilation fix for solaris251.
6986
6987 2000-01-25 Alexander V. Lukyanov <[email protected]>
6988
6989 * ftpclass.cc: runtime test for TIOCOUTQ.
6990
6991 2000-01-22 Alexander V. Lukyanov <[email protected]>
6992
6993 * ChmodJob.cc, TreatFileJob.cc, TreatFileJob.h, mkdirJob.cc,
6994 mkdirJob.h, rmJob.cc: recognize urls.
6995 * CmdExec.cc: cmd:default-protocol new setting.
6996 * DummyProto.cc, DummyProto.h: add DummyNoProto class.
6997 * FileAccess.cc: use ParsedURL::Combine; get password from .netrc
6998 if not present; create DummyNoProto if protocol is not supported;
6999 (GlobURL) find url prefix and use it; make StrError virtual.
7000 * FileAccess.h: see above.
7001 * FileCopy.cc: now there is no need to handle unsupported protocol.
7002 * FileCopyFtp.cc, FileCopyFtp.h: save/restore try_time.
7003 * FileSet.cc: compare DATE_UNPREC too.
7004 * LocalAccess.cc, LocalAccess.h: ignore AnonymousLogin and Login;
7005 improve globbing.
7006 * MirrorJob.cc: revert the change from 1998-10-13 - don't ignore date.
7007 * NetAccess.h: add GetTryTime.
7008 * Resolver.cc, Resolver.h: add dns:use-fork setting; pass data over
7009 a Buffer.
7010 * commands.cc: add cmd:default-protocol; change protocol in open
7011 if current one is file; use .netrc not only for ftp; add option -O
7012 for get, put, mget, mput; use output_file_name.
7013 * complete.cc: in local completion check for URLs too.
7014 * ftpclass.cc: disallow empty home; (ReplyLogPriority) new method;
7015 handle 221 reply as 421.
7016 * ftpclass.h: set try_time in SetCopyMode.
7017 * mgetJob.cc, mgetJob.h: (make_directory) new method; use output_file_name;
7018 support for -O.
7019 * misc.cc, misc.h: (url_file) new function; (output_file_name) new
7020 function.
7021 * url.cc, url.h: (url::path_index) new function;
7022 (ParsedURL::Combine) new method.
7023
7024 2000-01-19 Alexander V. Lukyanov <[email protected]>
7025
7026 * FtpListInfo.cc: check file names for slashes.
7027 * FileCopy.cc: make percent using ranges.
7028
7029 2000-01-17 Alexander V. Lukyanov <[email protected]>
7030
7031 * commands.cc: don't use netrc if protocol is specified.
7032 * ftpclass.cc: don't use s6_addr32, use s6_addr instead (for
7033 freebsd-4.0).
7034 * CopyJob.cc: suppress status in Echo if output uses stdout.
7035 * FileCopy.cc, FileCopy.h: reconfig Speedometers.
7036
7037 2000-01-15 Alexander V. Lukyanov <[email protected]>
7038
7039 * FileAccess.h: move NO_DATE, NO_SIZE here.
7040 * FileCopy.h: from here.
7041 * FileCopy.cc: (FileCopyPeerFA::GetStatus) don't return status if
7042 session is not open.
7043 * FtpDirList.cc: parse EPLF listing and show it pretty.
7044 * FtpListInfo.cc: parse EPLF listing.
7045 * misc.h: move find_char here.
7046 * HttpDir.cc: from here; parse EPLF listings from squid.
7047 * ftpclass.cc: use NO_SIZE and NO_DATE macros.
7048 * md5.c: don't compile anything if HAVE_MD5.
7049
7050 2000-01-13 Alexander V. Lukyanov <[email protected]>
7051
7052 * FileCopy.cc: (OpenSession) set correct pos in PUT mode;
7053 don't call SaveRollback in PUT mode; handle eof in fxp PUT.
7054 * SMTask.h: ensure STALL|MOVED==MOVED.
7055 * ftpclass.cc, ftpclass.h: make FlushSendQueue and ReceiveResp
7056 return flag indicating progress; OR it with m in Ftp::Do;
7057 fix condition of Disconnect in copy mode; fix SwitchToState
7058 to not ignore severe errors in copy mode; outline New;
7059 (SendCmd2) new method; use it everywhere; new settings use-stat,
7060 stat-interval.
7061 * HttpDir.cc: fix spinning on & in file names when no &amp; etc match.
7062 * FileCopy.h: make bytes_count protected.
7063 * FileCopyFtp.cc: increment bytes_count.
7064 * Http.cc, Http.h, LocalAccess.cc, LocalAccess.h: outline (New).
7065 * commands.cc: optimize cmd_user; update description for user;
7066 update copyright string for year 2000.
7067 * resource.cc: new settings ftp:use-stat, ftp:stat-interval.
7068
7069 2000-01-12 Alexander V. Lukyanov <[email protected]>
7070
7071 * ftpclass.cc, ftpclass.h, FileCopyFtp.cc: fixes for FXP.
7072 * FileCopy.cc: don't set pos to FILE_END; don't try to figure out
7073 position in fxp mode; don't try to fake eof in PUT mode;
7074 (RateReset) new method.
7075 * FileCopy.h: (SetFXP) accept argument.
7076 * FileCopyFtp.cc, FileCopyFtp.h: allow switching passive_source;
7077 revert to plain copy if both cases fail; call RateReset; allow
7078 store when necessary.
7079 * ftpclass.cc, ftpclass.h: check PORT reply, switch copy_passive
7080 if it fails; add support for delayed STOR in copy mode; don't
7081 check data address in copy mode.
7082
7083 2000-01-11 Alexander V. Lukyanov <[email protected]>
7084
7085 * NetAccess.cc: cast off const for solaris 2.5.1.
7086 * Filter.cc, Filter.h: allow Input/OutputFilter from ArgV.
7087 * LocalAccess.cc, LocalAccess.h: accept current system cwd as default;
7088 log errors; implemented LocalDirList.
7089 * commands.cc: don't append var_ls if empty.
7090 * FileCopy.cc: set pos in FileCopyPeerFA::Seek.
7091
7092 2000-01-10 Alexander V. Lukyanov <[email protected]>
7093
7094 * FileCopyFtp.cc: check use-fxp for both sessions.
7095 * Makefile.am: remove FtpCopy.{cc,h}.
7096 * commands.cc: get rid of ftpcopy.
7097 * NetAccess.cc, NetAccess.h, ftpclass.cc, Http.cc, resource.cc:
7098 support no_proxy environment variable; net:no-proxy setting.
7099
7100 2000-01-09 Alexander V. Lukyanov <[email protected]>
7101
7102 * FileCopyFtp.cc, FileCopyFtp.h: new files
7103 (FXP implementation over FileCopy class).
7104 * CatJob.cc, CopyJob.cc, GetJob.cc, commands.cc, pgetJob.cc:
7105 use FileCopy::New; update year.
7106 * DummyProto.cc, DummyProto.h, FileAccess.cc, FileAccess.h, FindJob.cc,
7107 FtpDirList.cc, Http.cc, MirrorJob.cc, NetAccess.h, Resolver.cc,
7108 SMTask.h, bookmark.cc, history.cc, lftp.cc, misc.cc, misc.h,
7109 netrc.cc: update year.
7110 * FileCopy.cc, FileCopy.h: support for fxp; (New) new method;
7111 (RateAdd) new method; (..Peer::CannotSeek) new method; (GetSession)
7112 new method; (SetFXP) new method.
7113 * Makefile.am: add FileCopyFtp.{cc,h}.
7114 * buffer.h: (SetPos) new method.
7115 * ftpclass.cc: register FXP creator.
7116 * ftpclass.h: add FXP support methods.
7117 * resource.cc: new fxp resources (ftp:use-fxp, ftp:fxp-passive-source).
7118
7119 2000-01-08 Alexander V. Lukyanov <[email protected]>
7120
7121 * NetAccess.h, NetAccess.cc, ftpclass.cc, Http.cc: (SocketConnect,
7122 SocketAddrLen) new methods; use them. This fixes a problem on NetBSD.
7123
7124 2000-01-07 Alexander V. Lukyanov <[email protected]>
7125
7126 * FileCopy.cc, FileCopy.h: prepare for fxp; reuse session in New
7127 if told so; don't request date many times.
7128 * ftpclass.cc, ftpclass.h: support STAT while doing fxp.
7129 * SMTask.h: (TimeoutS) new method.
7130
7131 2000-01-06 Alexander V. Lukyanov <[email protected]>
7132
7133 * FileAccess.cc: include netinet/tcp.h conditionally.
7134 * FindJob.cc: #if 0 dead code.
7135 * Http.cc: send Last-Modified in STORE mode.
7136 * Resolver.cc: include arpa/nameser.h and resolv.h conditionally;
7137 conditionally compile functions depending on HAVE_RES_SEARCH.
7138 * bookmark.cc: use / if HOME is not set.
7139 * history.cc: same.
7140 * lftp.cc: don't create ./.lftp if HOME is not set.
7141 * netrc.cc: fail if HOME is not set.
7142
7143 2000-01-05 Alexander V. Lukyanov <[email protected]>
7144
7145 * FileAccess.cc, FileAccess.h: (pass_open) new member;
7146 (InsecurePassword) new method; (GetFileURL) include password if
7147 pass_open is true; (OpenMode) new method.
7148 * FileCopy.cc: don't check session pos if it is not properly opened;
7149 use OpenSession in Put_LL.
7150 * commands.cc: `pwd -p' to show password; call InsecurePassword
7151 when password is entered on command line; forbid recursive bookmarks;
7152 use ascii mode for ls.
7153 * ftpclass.cc: don't hide password if pass_open.
7154 * FtpDirList.cc: don't strip CRs.
7155 * Http.cc: better handle PUT errors.
7156
7157 2000-01-04 Alexander V. Lukyanov <[email protected]>
7158
7159 * FileAccess.cc, FileAccess.h: delete args in DirList; outline virtual
7160 functions; remove CopyOptions.
7161 * DummyProto.cc, DummyProto.h: implement DummyDirList.
7162 * FileCopy.cc, FileCopy.h: handle errors in DirList.
7163 * ftpclass.h: remove CopyOptions.
7164
7165 2000-01-03 Alexander V. Lukyanov <[email protected]>
7166
7167 * misc.cc, misc.h: (percent) new function.
7168 * pgetJob.cc: use it.
7169 * FileCopy.cc: use it - and thus avoid integer overflow.
7170 (reported by Slama YA).
7171
7172 2000-01-02 Alexander V. Lukyanov <[email protected]>
7173
7174 * FileCopy.cc: check if line_buffer!=0 (by Slama YA)
7175
7176 2000-01-01 Alexander V. Lukyanov <[email protected]>
7177
7178 * CopyJob.h: add GetETA(long remainder) method.
7179 * Job.cc, Job.h: (ListOneJobRecursively) new method; list waiting
7180 job before others.
7181 * LocalAccess.cc: expand tilde (finally).
7182 * pgetJob.cc, pgetJob.h: re-implement PrintStatus method.
7183 * FileCopy.cc: init need_seek.
7184 * commands.cc: add queue help.
7185
7186 1999-12-30 Alexander V. Lukyanov <[email protected]>
7187
7188 * FileAccess.cc: fix SetPasswordGlobal.
7189
7190 1999-12-28 Alexander V. Lukyanov <[email protected]>
7191
7192 * FileCopy.cc, FileCopy.h: implemet LineBuffered; handle EPIPE.
7193 * commands.cc, CatJob.cc: use LineBuffered.
7194 * CopyJob.cc: implement SqueezeName.
7195
7196 1999-12-28 Alexander V. Lukyanov <[email protected]>
7197
7198 * CopyJob.h: put back FDStream for stdout creation.
7199 * FileCopy.h: no cache does not mean `don't save to cache'.
7200 * commands.cc: redo quote and site commands.
7201 * ftpclass.cc: advance pos in QUOTE_CMD mode; append file name
7202 to error message if it is not mentioned already.
7203 * Makefile.am: remove QuoteJob.{cc,h}, XferJob.{cc,h}
7204 (XferJob is dead - long live FileCopy)
7205 * parsecmd.cc: handle ? specially.
7206 * FileAccess.cc, FileAccess.h: (SetPasswordGlobal) new method;
7207 make NoGlob to produce empty list if pattern contains wildcards.
7208 * commands.cc: use it.
7209 * complete.cc: few improvements.
7210
7211 1999-12-27 Alexander V. Lukyanov <[email protected]>
7212
7213 * CopyJob.cc, CopyJob.h: add op member for CopyJob.
7214 * FileCopy.cc: add ls caching support; (FileCopyPeerDirList) new class.
7215 * Makefile.am: remove LsJob.cc, LsJob.h, ftpget.
7216 * MirrorJob.cc: supply op for CopyJob.
7217 * buffer.cc, buffer.h: (SaveRollback) new method; define GET_BUFSIZE.
7218 * commands.cc: new ls, nlist; supply op for CopyJob.
7219 * pgetJob.cc: supply op for CopyJob.
7220
7221 1999-12-26 Alexander V. Lukyanov <[email protected]>
7222
7223 * CmdExec.cc, CmdExec.h: use GlobURL.
7224 * FileAccess.cc: (GetFileURL) handle file starting with '~';
7225 (GlobURL::GetResult) implemented.
7226 * FileAccess.h: few methods for GlobURL added.
7227 * FtpGlob.cc: handle updir errors; handle dir starting with '~'.
7228 * GetJob.cc, GetJob.h: (NoProtoSrc, NoProtoDst) new methods;
7229 handle reverse transfers (put).
7230 * LocalAccess.cc, LocalAccess.h: preserve home by ignoring Connect();
7231 support ascii transfers.
7232 * Makefile.am: remove mputJob.cc, mputJob.h, PutJob.cc, PutJob.h,
7233 FileXfer.cc, FileXfer.h.
7234 * MirrorJob.cc: don't include PutJob.h.
7235 * commands.cc: don't include PutJob.h, mputJob.h; move put, mput, mget
7236 functionality to cmd_get; update help; use GlobURL;
7237 support `login URL'.
7238 * mgetJob.cc, mgetJob.h: support mput.
7239 * url.h: (is_url) new method.
7240 * complete.cc: use GlobURL.
7241 * FileCopy.cc: don't open session if seek_pos>=size.
7242 * pgetJob.cc: correct accounting.
7243
7244 1999-12-26 Alexander V. Lukyanov <[email protected]>
7245
7246 * commands.cc: help update; support get -a for ascii mode;
7247 don't use ascii mode for zcat and zmore.
7248 * CopyJob.cc, CopyJob.h: ascii support in CopyJobEnv; add SetDate and
7249 SetSize methods.
7250 * FileCopy.cc, FileCopy.h: init can_seek0; add FileCopyPeerFA::NewGet,
7251 NewPut methods.
7252 * MirrorJob.cc: use CopyJob.
7253 * commands.cc: use NewPut.
7254 * url.cc: allocate enough memory for file: urls.
7255
7256 1999-12-25 Alexander V. Lukyanov <[email protected]>
7257
7258 * CatJob.cc, ChangeLog, CopyJob.cc, CopyJob.h, FileAccess.cc,
7259 FileAccess.h, FileCopy.cc, FileCopy.h, Filter.cc, Filter.h,
7260 GetJob.cc, GetJob.h, MirrorJob.cc, commands.cc, mgetJob.cc,
7261 mgetJob.h, pgetJob.cc, pgetJob.h: lots of changes - get, mget, pget
7262 now work with new FileCopyEnv class.
7263
7264 1999-12-24 Alexander V. Lukyanov <[email protected]>
7265
7266 * FileCopy.cc: support ascii conversion.
7267 * commands.cc: ignore -u for compatibility.
7268 * CmdExec.cc: beware of stale pointers, use job number instead.
7269
7270 1999-12-22 Alexander V. Lukyanov <[email protected]>
7271
7272 * commands.cc, CatJob.cc, CatJob.h: add ascii mode.
7273 * HttpDir.cc: handle ~ as absolute path in check for icon.
7274
7275 1999-12-22 Robert de Bath <[email protected]>
7276
7277 * FileAccess.cc, FileAccess.h, Http.cc, LocalAccess.cc, NetAccess.cc,
7278 ftpclass.cc: rehash debug levels.
7279
7280 1999-12-22 Alexander V. Lukyanov <[email protected]>
7281
7282 * Job.cc: don't show job info as ? if there is no info.
7283 * CatJob.cc, CatJob.h: use new architecture w/ CopyJobEnv.
7284 * CopyJob.cc, CopyJob.h: (CopyJobEnv) new class; misc tweaks.
7285 * FileCopy.cc, FileCopy.h: add features for cat command.
7286 * commands.cc: new cat command creation.
7287
7288 1999-12-21 Alexander V. Lukyanov <[email protected]>
7289
7290 * ftpclass.cc: (DataAbort) Disconnect in copy mode if ABOR is disabled.
7291
7292 1999-12-21 Robert de Bath <[email protected]>
7293
7294 * NetAccess.cc: correction for ReconnectAllowed
7295
7296 1999-12-20 Alexander V. Lukyanov <[email protected]>
7297
7298 * CopyJob.cc, CopyJob.h: add methods for creating different copiers:
7299 NewGet, NewPut, NewEcho.
7300 * commands.cc: use CopyJob::NewEcho.
7301 * FileCopy.cc, FileCopy.h: new methods in Speedometer: GetStr, GetStrS,
7302 GetETAStr, GetETAStrS; use them in FileCopy; add bytes_count,
7303 start_time, end_time for accounting; fix FileCopyPeerString; add
7304 Done to FileCopyPeerFDStream to wait for stream->Done.
7305 * NetAccess.cc: little fix in ReconnectAllowed.
7306
7307 1999-12-19 Alexander V. Lukyanov <[email protected]>
7308
7309 * HttpDir.cc: decode &amp; and similar; don't accept ~ for ListInfo.
7310 * FileCopy.h, FileCopy.cc, CopyJob.cc: (GetFgData) implemented;
7311 fill CopyJob::fg_data; handle NeedSizeDateBeforehand.
7312 * FileAccess.h, Http.h: add NeedSizeDateBeforehand.
7313
7314 1999-12-18 Alexander V. Lukyanov <[email protected]>
7315
7316 * commands.cc: get1 command.
7317 * XferJob.cc: move xfer:eta-terse to CopyJob.
7318 * FtpCopy.cc, FtpCopy.h: save retries count.
7319 * CopyJob.cc, CopyJob.h: first version.
7320 * FileCopy.cc, FileCopy.h: finished.
7321 * NetAccess.cc: correct calculations in extreme cases
7322 (reported by Robert de Bath)
7323 * FileAccess.cc, FileAccess.h: expand tilde in file and file1 too.
7324 (ExpandTildeStatic) new method; New from ParsedURL; propagate
7325 passwords.
7326 * ftpclass.cc: handle size==0 in Write; expand tilde for ARRAY_INFO;
7327 correct test for ftp:rest-stor.
7328 * Http.cc: handle size==0 in Write; send port to proxy;
7329 encode hostname; in error message append / conditionally.
7330 * url.h: add more URL_*_UNSAFE.
7331
7332 1999-12-14 Alexander V. Lukyanov <[email protected]>
7333
7334 * Filter.h, Filter.cc: add can_seek method.
7335 * buffer.cc, buffer.h: add UnSkip method.
7336
7337 1999-12-13 Alexander V. Lukyanov <[email protected]>
7338
7339 * LocalAccess.h: remove error_code (it is defined in super class) -
7340 this fixes error handling in file: urls.
7341 * LocalAccess.cc: set size and date to -1 in case of error;
7342 fill opt_size and opt_date.
7343 * FileAccess.h: IOReady checks IsOpen.
7344 * ftpclass.cc: IOReady checks IsOpen.
7345 * buffer.cc, buffer.h: add pos member; de-virtualize Skip.
7346 * Filter.cc: don't close -1; correct default file permissions.
7347
7348 1999-12-11 Alexander V. Lukyanov <[email protected]>
7349
7350 * ftpclass.cc: check use-abor before sending ABOR.
7351 * LsCache.cc: use SMTask::now.
7352 * misc.cc: include time.h
7353
7354 1999-12-10 Alexander V. Lukyanov <[email protected]>
7355
7356 * FileAccess.cc, Http.cc, url.cc: fix ftp url handling (%2F for root)
7357 (reported by Robert de Bath <[email protected]>)
7358 * url.h: no need to specify \033 in URL_UNSAFE; define URL_PATH_UNSAFE.
7359 * url.cc: avoid // for ftp urls.
7360 * FileAccess.cc: use URL_PATH_UNSAFE; specially hanle ~/ for ftp urls.
7361 * FtpListInfo.cc: move parse_perms and parse_month...
7362 * misc.cc, misc.h: ...here; implement parse_year_or_time, guess_year.
7363 * Http.cc: better handling for ftp urls; ascii support.
7364 * HttpDir.cc: handle apache proxy ftp listings.
7365 * resource.cc: add ftp:use-abor.
7366
7367 1999-12-09 Alexander V. Lukyanov <[email protected]>
7368
7369 * GetJob.cc: don't close session too early when deleting.
7370 * buffer.cc, buffer.h: add SetError method, use it.
7371
7372 1999-12-06 Alexander V. Lukyanov <[email protected]>
7373
7374 * check if GetBetterConnection(0) succeeded. (bug report from
7375 Robert de Bath <[email protected]>).
7376
7377 1999-12-04 Alexander V. Lukyanov <[email protected]>
7378
7379 * resource.cc: new resources reconnect-interval-multiplier/max;
7380 reconnect-interval renamed to reconnect-interval-base.
7381 * ResMgr.cc, ResMgr.h: (FloatValidate) new method.
7382 * NetAccess.cc, NetAccess.h: (ReconnectAllowed) (NextTry) new methods;
7383 implement reconnect-interval-multiplier/max.
7384 * Http.cc: use ReconnectAllowed and NextTry.
7385 * commands.cc: disallow spaces in bookmark names.
7386 * ftpclass.cc, ftpclass.h: (IOReady) implemented; check for space
7387 in last line of multiline response; use is_ascii_digit;
7388 use ReconnectAllowed and NextTry.
7389 * FileAccess.h: (IOReady) new method.
7390
7391 1999-11-26 Alexander V. Lukyanov <[email protected]>
7392
7393 * FileAccess.h, FileAccess.cc, complete.cc: add Glob::NoMatchPeriod
7394 method; use it for completion.
7395
7396 1999-11-22 Alexander V. Lukyanov <[email protected]>
7397
7398 * FileAccess.cc: try_time=0 is the same as DontSleep().
7399 * Http.cc: support ConnectVerify; remove some unneeded statements.
7400 * NetAccess.cc, NetAccess.h: move ConnectVerify here; remove
7401 relookup-always setting.
7402 * resource.cc, ftpclass.cc, ftpclass.h: remove relookup-always.
7403
7404 1999-11-19 Alexander V. Lukyanov <[email protected]>
7405
7406 * ftpclass.cc: move aborted_data_sock along with control_sock.
7407 * FtpGlob.cc: make sure to restore old cwd.
7408
7409 1999-11-16 Alexander V. Lukyanov <[email protected]>
7410
7411 * ftpclass.cc: don't decrease sync_wait on 1xx replies.
7412
7413 1999-11-15 Alexander V. Lukyanov <[email protected]>
7414
7415 * ftpclass.cc: (ExtractPWD) don't return alloca'ed space, strdup it.
7416
7417 1999-11-14 Alexander V. Lukyanov <[email protected]>
7418
7419 * CmdExec.cc, CmdExec.h: (SuspendJob) new method; (PrintStatus)
7420 don't print all queued commands if not verbose, print current
7421 queue command status if ^Z (v==0).
7422
7423 1999-11-11 Alexander V. Lukyanov <[email protected]>
7424
7425 * ftpclass.cc, ftpclass.h: add site_chmod_supported flag.
7426
7427 1999-11-09 Alexander V. Lukyanov <[email protected]>
7428
7429 * ftpclass.cc: properly set info.size and info.time if mdtm or size
7430 are not supported.
7431 * FtpListInfo.cc: fix infinite loop on bad symlinks.
7432
7433 1999-11-07 Alexander V. Lukyanov <[email protected]>
7434
7435 * ftpclass.cc, ftpclass.h: allow moving a connection with buffered
7436 data or expected responses; (sync_wait) new member for number of
7437 commands in flight.
7438
7439 1999-11-04 Alexander V. Lukyanov <[email protected]>
7440
7441 * FileAccess.cc, FileAccess.h: (RereadManual) new method to stop
7442 the driver wasting data when REST is not supported;
7443 (norest_manual) new member; (device_prefix_len) new protected method;
7444 use it in Chdir.
7445 * FtpGlob.cc: implement files_only.
7446 * FtpSplitList.cc, HttpDir.cc: use RereadManual.
7447 * Http.cc: support norest_manual.
7448 * ascii_ctype.h: add to_ascii_lower.
7449 * buffer.cc, buffer.h: (Empty) new method.
7450 * complete.cc: use DirectoriesOnly for `cd' command.
7451 * ftpclass.cc, ftpclass.h: better support for vms; remember that
7452 MDTM or SIZE is not supported; implement ftp:rest-stor setting;
7453 add closure to ftp:rest-list setting.
7454 * resource.cc: ftp:rest-stor setting.
7455
7456 1999-11-02 Alexander V. Lukyanov <[email protected]>
7457
7458 * FileAccess.cc, FileAccess.h, FtpGlob.cc, FtpGlob.h, FtpListInfo.cc,
7459 FtpListInfo.h, FtpSplitList.cc, FtpSplitList.h, Makefile.am:
7460 redesign FtpGlob class to use FtpListInfo class; FtpListInfo now
7461 uses more specialized FtpSplitList instead of FtpGlob;
7462 (Glob::dirs_only) new member, implemented simple type filter.
7463
7464 1999-10-22 Alexander V. Lukyanov <[email protected]>
7465
7466 * Http.h, Http.cc: (use_head) new member; hftp:use-head new setting;
7467 use GET instead of HEAD if !use_head.
7468 * resource.cc: (hftp:use-head) new setting.
7469
7470 1999-10-21 Alexander V. Lukyanov <[email protected]>
7471
7472 * HttpDir.cc: compare ftp:// with hftp:// properly.
7473
7474 1999-10-20 Alexander V. Lukyanov <[email protected]>
7475
7476 * FileAccess.cc: (AnonymousLogin) reset cwd and home.
7477 * Http.h, Http.cc: add HFtp::Login; don't send password in URI.
7478 * commands.cc: do Login after Connect, not reverse.
7479
7480 1999-10-19 Alexander V. Lukyanov <[email protected]>
7481
7482 * HttpDir.cc: set hour/minute to 0 if they are not available.
7483 * Http.cc: avoid memory leak in encode_string; add support for
7484 non-anonymous ftp over http.
7485 * url.cc: (url::encode_string) don't malloc buffer;
7486 quote all if quote==0.
7487
7488 1999-10-19 Alexander V. Lukyanov <[email protected]>
7489
7490 * Http.cc: don't send data in STORE mode until header is sent.
7491 (reported by Brian Ristuccia)
7492
7493 1999-10-13 Alexander V. Lukyanov <[email protected]>
7494
7495 * HttpDir.cc: don't skip line begin early; parse Mini-Proxy listings.
7496 * Filter.cc: try getfd() before utime(), it might create the file.
7497 (this is a workaround for getting empty files, a full solution
7498 would be to block on close of output file.)
7499 * complete.cc: (glob_quote) remove extra quoting. This fixes completion
7500 for files with spaces in name.
7501
7502 1999-10-13 Alexander V. Lukyanov <[email protected]>
7503
7504 * ResMgr.cc: pass canonic resource name to Reconfig.
7505
7506 1999-10-12 Alexander V. Lukyanov <[email protected]>
7507
7508 * commands.cc, CmdExec.cc: call Reconfig after session change;
7509 (do_cd) exit_code=0 if check is not needed.
7510
7511 1999-10-11 Alexander V. Lukyanov <[email protected]>
7512
7513 * HttpDir.cc: check file info for validity.
7514 * HttpDir.cc: don't dump core on eol==0.
7515
7516 1999-10-10 Alexander V. Lukyanov <[email protected]>
7517
7518 * GetJob.cc: don't open local file early if !cont.
7519
7520 1999-10-09 Alexander V. Lukyanov <[email protected]>
7521
7522 * misc.cc: call mkdir(...,0777) to let user choose umask.
7523 * ftpclass.cc: prepare for better handling of unsupported SIZE/MDTM.
7524
7525 1999-10-08 Alexander V. Lukyanov <[email protected]>
7526
7527 * FileAccess.cc, FileAccess.h, ftpclass.cc: low level ascii-mode
7528 support.
7529
7530 1999-10-07 Alexander V. Lukyanov <[email protected]>
7531
7532 * ftpclass.cc: don't free peer, it is freed in parent class, and so
7533 don't free proxy* (the later was harmless since proxy was set to 0).
7534 * Http.cc: use ClearPeer.
7535 * CmdExec.cc: actually assign c.
7536 * HttpDir.cc: better handle symlinks.
7537
7538 1999-10-05 Alexander V. Lukyanov <[email protected]>
7539
7540 * HttpDir.cc: handle Netscape-proxy listing; handle parse errors
7541 better.
7542 * lftp.cc: use SOCKS4 define.
7543 * CmdExec.cc: use URL closure on several settings.
7544
7545 1999-10-04 Alexander V. Lukyanov <[email protected]>
7546
7547 * ArgV.cc: (delarg) decrement ind if needed.
7548 * HttpDir.h, HttpDir.cc: (LsOptions) new class, use it, implement
7549 -F ls option, accept -alC but ignore them for now.
7550
7551 1999-10-02 Alexander V. Lukyanov <[email protected]>
7552
7553 * CmdExec.cc: fix type mismatch on 64-bit machines.
7554 * Makefile.am: don't depend on rlstdc.h
7555
7556 1999-10-01 Alexander V. Lukyanov <[email protected]>
7557
7558 * Resolver.cc: cast ResValue to (const char *) to avoid ambiguity.
7559
7560 1999-09-30 Alexander V. Lukyanov <[email protected]>
7561
7562 * commands.cc: remove _() from "%s: %s\n".
7563
7564 1999-09-30 Alexander V. Lukyanov <[email protected]>
7565
7566 * FileAccess.cc, FileAccess.h, ftpclass.cc, ftpclass.h, commands.cc:
7567 (CleanupAll, CleanupThis) new methods; use it in cmd_close.
7568
7569 1999-09-30 Alexander V. Lukyanov <[email protected]>
7570
7571 * FileAccess.cc, log.h: extra info in debug output when it goes
7572 to a file. (suggested by Caleb Epstein <[email protected]>)
7573
7574 1999-09-30 Albert Chin-A-Young <[email protected]>
7575
7576 * module.c: fix // comment
7577
7578 1999-09-29 Alexander V. Lukyanov <[email protected]>
7579
7580 * ResMgr.h: include time.h for time_t.
7581
7582 1999-09-27 Alexander V. Lukyanov <[email protected]>
7583
7584 * HttpDir.cc: strip leading slash in links to /~user.
7585
7586 1999-09-27 Alexander V. Lukyanov <[email protected]>
7587
7588 * Http.cc: create rate_limit for STORE mode.
7589 * lftp.cc: close fd 0; call setsid.
7590
7591 1999-09-20 Alexander V. Lukyanov <[email protected]>
7592
7593 * MirrorJob.cc, MirrorJob.h: use TimeInterval.
7594 * misc.cc, misc.h: drop decode_delay.
7595 * ResMgr.cc: (TimeInterval ctor) handle one more error case.
7596
7597 1999-09-20 Alexander V. Lukyanov <[email protected]>
7598
7599 * Http.cc: define _XOPEN_SOURCE 500 for linux.
7600
7601 1999-09-19 Alexander V. Lukyanov <[email protected]>
7602
7603 * MirrorJob.cc: don't print messages when lftp is not foreground
7604 process.
7605 * ResMgr.h: add TimeInterval(time_t) constructor.
7606 * SleepJob.cc, SleepJob.h: use TimeInterval; support `sleep forever'.
7607 * commands.cc, LsCache.cc, LsCache.h: use TimeInterval.
7608
7609 1999-09-19 Alexander V. Lukyanov <[email protected]>
7610
7611 * ResMgr.cc, ResMgr.h: new resource type TimeInterval.
7612 * Resolver.cc, Resolver.h: settings cache-{enable,expire,size}.
7613 * commands.cc: (set) print more meaningful message for invalid values.
7614
7615 1999-09-18 Alexander V. Lukyanov <[email protected]>
7616
7617 * SleepJob.cc, SleepJob.h: add repeat functionality;
7618 implement PrintStatus.
7619 * commands.cc: add repeat command.
7620 * module.c: another module alias.
7621 * XferJob.cc: remove unneeded poll call.
7622 * ftpclass.cc: remove unneeded error checks.
7623
7624 1999-09-15 Alexander V. Lukyanov <[email protected]>
7625
7626 * Job.cc: (SessionJob::PrintStatus) check if session!=0.
7627
7628 1999-09-14 Alexander V. Lukyanov <[email protected]>
7629
7630 * resource.cc: check if ipv6 is supported at runtime.
7631 * FileAccess.cc: better message for system errors, correctly adjust
7632 str_allocated.
7633 * NetAccess.cc: (NextPeer) fix off-by-one error; set try_time.
7634 * Http.cc, ftpclass.cc: move reconnect delay before Resolve, to avoid
7635 double lookup in case of relookup_always; handle error of socket
7636 creation better, skip address and report error verbosely.
7637
7638 1999-09-14 Alexander V. Lukyanov <[email protected]>
7639
7640 * PutJob.cc: unsuspend session; few corrections in size handling;
7641 don't try to use size of pipe.
7642
7643 1999-09-12 Alexander V. Lukyanov <[email protected]>
7644
7645 * NetAccess.cc: when adding first RateLimit, reset global pool.
7646
7647 1999-09-12 Alexander V. Lukyanov <[email protected]>
7648
7649 * NetAccess.cc, NetAccess.h: implement RateLimit class; use it.
7650 * ftpclass.cc, Http.cc: use RateLimit.
7651 * resource.cc: new resources net:limit-total-rate
7652 and net:limit-total-max.
7653 * ftpget.cc: create Log::global.
7654
7655 1999-09-10 Alexander V. Lukyanov <[email protected]>
7656
7657 * Resolver.cc: recognize host names in the form proto,hostname and
7658 lookup address in specified protocol family, e.g. inet6,hostname.com.
7659 (Note: this won't work over proxies)
7660 * GetJob.cc: add xfer:clobber setting; don't overwrite files if it is
7661 false.
7662
7663 1999-09-08 Alexander V. Lukyanov <[email protected]>
7664
7665 * NetAccess.cc, NetAccess.h: drop first_lookup.
7666 * MirrorJob.cc, MirrorJob.h: don't get just appeared files, check
7667 that size/date has not changed before overwrite/append;
7668 build local file set before remote one.
7669 * FileSet.cc, FileSet.h: (SubstractNotIn) new method; optimize
7670 other Substract* methods; make FindByName const.
7671
7672 1999-08-31 Alexander V. Lukyanov <[email protected]>
7673
7674 * Resolver.cc: add missing \n
7675 * ftpclass.cc: fix previous change not to close data_sock.
7676 * Http.cc: call SayConnectingTo.
7677 * complete.cc, complete.h: move remote_completion here.
7678 * CmdExec.cc, CmdExec.h, lftp.cc, log.cc, log.h: make debug output
7679 clear/redraw the prompt.
7680
7681 1999-08-26 Alexander V. Lukyanov <[email protected]>
7682
7683 * FileAccess.cc, FileAccess.h, Http.cc, Http.h, LocalAccess.cc,
7684 NetAccess.cc, ftpclass.cc, ftpclass.h: split off NetAccess class;
7685 use Resolver cache; add Resolve method; move rate limiter to
7686 NetAccess.
7687 * Resolver.cc, Resolver.h: implement cache.
7688 * LsCache.cc, LsCache.h: allow adding from Buffer class.
7689 * HttpDir.cc: use new LsCache::Add method varianth; handle symlinks.
7690 * commands.cc: remove debug level restriction.
7691 * buffer.cc, buffer.h: make GetSaved const.
7692 * Makefile.am: add NetAccess.
7693 * NetAccess.cc, NetAccess.h: new files.
7694 * SMTask.cc, SMTask.h, ResMgr.cc, CmdExec.cc, CmdExec.h:
7695 Reconfig now takes arg.
7696
7697 1999-08-26 Alexander V. Lukyanov <[email protected]>
7698
7699 * complete.cc: improve completion of file names with wildcards.
7700
7701 1999-08-25 Alexander V. Lukyanov <[email protected]>
7702
7703 * ftpclass.cc: handle 225 and 226 replies in TransferCheck.
7704 * Http.cc: use cwd in error message if file=="".
7705
7706 1999-08-24 Alexander V. Lukyanov <[email protected]>
7707
7708 * ftpclass.cc: reset try_time on certain failures: greeting, user,
7709 pass, to sleep proper time before reconnect.
7710
7711 1999-08-21 Alexander V. Lukyanov <[email protected]>
7712
7713 * HttpDir.cc: improve support for squid's ftp listings;
7714 support symlinks.
7715 * Makefile.am: cmd-sleep.so target; use -nostdlib to reduce size,
7716 this works unless there are static constructors.
7717 * SleepJob.cc, commands.cc: move at and sleep commands to SleepJob.cc
7718 to allow modularity.
7719 * modconfig.h: add MODULE_CMD_SLEEP.
7720
7721 1999-08-20 Alexander V. Lukyanov <[email protected]>
7722
7723 * module.c: provide module aliases.
7724 * FileAccess.cc: revert last change.
7725
7726 1999-08-20 Alexander V. Lukyanov <[email protected]>
7727
7728 * Http.cc, Http.h, HttpDir.cc: implement hftp protocol (ftp over http);
7729 parse squid's ftp listings.
7730 * FileAccess.cc: load proto-http when hftp is requested.
7731 * resource.cc: hftp resources added; set ftp:proxy if environment
7732 variable ftp_proxy points to ftp proxy.
7733
7734 1999-08-18 Alexander V. Lukyanov <[email protected]>
7735
7736 * buffer.h, buffer.cc: allow saving data; (Save, GetSaved) new methods.
7737 * HttpDir.cc, HttpDir.h, FtpDirList.cc, FtpDirList.h: save data in
7738 Buffer ubuf, members (upos, from_cache) become obsolete.
7739
7740 1999-08-18 Jim Pick <[email protected]>
7741
7742 * LsCache.h, FtpDirList.cc, FtpDirList.h: don't try to cache
7743 anything if cache is off; don't cache too large objects (by lav)
7744
7745 1999-08-18 Alexander V. Lukyanov <[email protected]>
7746
7747 * complete.cc: local completion after redirection.
7748
7749 1999-08-17 Alexander V. Lukyanov <[email protected]>
7750
7751 * Job.cc, Job.h: provide useful default ShowRunStatus method.
7752 (e.g. helps `at' command)
7753
7754 1999-08-16 Alexander V. Lukyanov <[email protected]>
7755
7756 * ArgV.cc, ArgV.h: make several methods const.
7757 * CmdExec.cc, CmdExec.h, commands.cc: chain all CmdExec's; allow
7758 several queues to exist; (FindQueue) new method; (FeedArgV) new
7759 method; synchronize cwd's of queue and main CmdExec.
7760
7761 1999-08-16 Alexander V. Lukyanov <[email protected]>
7762
7763 * commands.cc: (cmd_queue) print usage; set exit_code.
7764
7765 1999-08-12 Alexander V. Lukyanov <[email protected]>
7766
7767 * CmdExec.h, CmdExec.cc, commands.cc: implement simple command queue;
7768 (CmdExec::queue) new static member; (queue) new command.
7769
7770 1999-08-12 Alexander V. Lukyanov <[email protected]>
7771
7772 * ftpclass.cc: paranoia check.
7773
7774 1999-08-11 Alexander V. Lukyanov <[email protected]>
7775
7776 * ftpclass.cc: try to catch "Too many open files" server error;
7777 check for the substring in file name too; remove old code for
7778 switching to sync mode.
7779
7780 1999-08-11 Alexander V. Lukyanov <[email protected]>
7781
7782 * lftpget: options -c -v -d.
7783 * Http.cc: change level of Connecting message.
7784
7785 1999-08-10 Alexander V. Lukyanov <[email protected]>
7786
7787 * lftpget: turn off final rate printing.
7788 * MirrorJob.cc: don't reset time on unchanged files - it can be bad
7789 if time-prec>0 and files have really changed but have the same size.
7790 (reported by Oscar Y Takeshita)
7791
7792 1999-08-09 Alexander V. Lukyanov <[email protected]>
7793
7794 * HttpDir.cc: (HttpDirList::Do) use proper prefix for ls -f.
7795
7796 1999-08-08 Alexander V. Lukyanov <[email protected]>
7797
7798 * HttpDir.cc: only try to get info for href links.
7799
7800 1999-08-06 Alexander V. Lukyanov <[email protected]>
7801
7802 * commands.cc: (cmd_get) decode %xx in default output file name.
7803 * XferJob.h: disable non_strict_urls (too complex).
7804
7805 1999-08-06 Alexander V. Lukyanov <[email protected]>
7806
7807 * ftpclass.cc, ftpclass.h, resource.cc: add ftp:rest-list setting.
7808 * Job.h, Job.cc: more useful Job::AcceptSig.
7809 * CmdExec.cc: improve AcceptSig.
7810 * SleepJob.cc: assign jobno and cmdline to sub-CmdExec.
7811
7812 1999-08-05 Alexander V. Lukyanov <[email protected]>
7813
7814 * modconfig.h: enable proto-ftp module for real.
7815
7816 1999-08-05 Alexander V. Lukyanov <[email protected]>
7817
7818 * ArgV.h, CmdExec.cc: (ArgV::CombineQuoted) new method.
7819 * commands.cc: fix `at' command to quote the command to execute.
7820 * lftp.cc: use CombineQuoted.
7821
7822 1999-08-05 Alexander V. Lukyanov <[email protected]>
7823
7824 * FtpListInfo.cc: fix NT listing parser for the case of file name
7825 with spaces.
7826
7827 1999-08-04 Alexander V. Lukyanov <[email protected]>
7828
7829 * CmdExec.cc, FindJob.cc, FtpCopy.cc, LsJob.cc, MirrorJob.cc,
7830 StatusLine.cc, StatusLine.h, TreatFileJob.cc, XferJob.cc,
7831 log.cc, mkdirJob.cc, mvJob.cc: (StatusLine::Clear) new method;
7832 use it everywhere, this avoids warning in new gcc.
7833 Don't call Clear when Done(), it will be cleared anyway by upper
7834 level job (it was race anyway).
7835
7836 1999-08-04 Alexander V. Lukyanov <[email protected]>
7837
7838 * StatusLine.h, StatusLine.cc, XferJob.cc, pgetJob.cc:
7839 (StatusLine::GetWidthDelayed) new method; use it to reduce number
7840 of ioctl calls.
7841
7842 1999-08-04 Alexander V. Lukyanov <[email protected]>
7843
7844 * LsJob.cc: (NoCache) open with proper mode.
7845 * HttpDir.cc: handle another listing format.
7846
7847 1999-08-02 Alexander V. Lukyanov <[email protected]>
7848
7849 * Resolver.cc, log.cc: declare res_search, vsnprintf if prototypes
7850 are missing.
7851
7852 1999-07-29 Alexander V. Lukyanov <[email protected]>
7853
7854 * SignalHook.cc: ignore SIGXFSZ, want to get EFBIG.
7855
7856 1999-07-24 Alexander V. Lukyanov <[email protected]>
7857
7858 * Http.cc: send `Accept: */*', it is needed for some http servers.
7859
7860 1999-07-20 Alexander V. Lukyanov <[email protected]>
7861
7862 * Resolver.cc: make it compile on sunos551.
7863 * FindJob.cc, FindJob.h: fix core dump on output stall;
7864 add PrintStatus method.
7865 * lftpget: set verbose; unset at-exit; print usage.
7866
7867 1999-07-19 Alexander V. Lukyanov <[email protected]>
7868
7869 * lftpget: new file.
7870 * Makefile.am: install and distribute lftpget.
7871
7872 1999-07-16 Alexander V. Lukyanov <[email protected]>
7873
7874 * LsJob.cc: fixed bug caused by cut-n-paste. This fixes spinning
7875 when output stalls.
7876 * Resolver.cc: include netinet/in.h
7877
7878 1999-07-15 Alexander V. Lukyanov <[email protected]>
7879
7880 * HttpDir.cc: fix handling of HREF=/
7881
7882 1999-07-15 Alexander V. Lukyanov <[email protected]>
7883
7884 * commands.cc: (glob) rewind args before calling original command.
7885 (fixes coredump for mrm without args)
7886
7887 1999-07-12 Alexander V. Lukyanov <[email protected]>
7888
7889 * Resolver.cc: don't search for SRV RR if address is numeric.
7890
7891 1999-07-11 Alexander V. Lukyanov <[email protected]>
7892
7893 * lftp_rl.c: improve lftp_rl_clear.
7894
7895 1999-07-10 Alexander V. Lukyanov <[email protected]>
7896
7897 * CmdExec.h: (CmdFeeder::clear) new method; (CmdExec::feeder_called)
7898 new member.
7899 * CmdExec.cc: set feeder_called; call feeder->clear in top_vfprintf.
7900 * MirrorJob.cc: (va_Report) print even in background.
7901 * complete.cc: redisplay before waiting for key.
7902 * lftp.cc: (ReadlineFeeder::clear) implemented.
7903 * lftp_rl.c, lftp_rl.h: (lftp_rl_clear, lftp_rl_redisplay_maybe) new
7904 functions.
7905
7906 1999-07-10 Alexander V. Lukyanov <[email protected]>
7907
7908 * complete.cc: add nlist to list of commands taking remote file as
7909 an argument.
7910
7911 1999-07-10 Alexander V. Lukyanov <[email protected]>
7912
7913 * Job.cc, Job.h: (GetConnectURL) virtual new method. (ListDoneJobs)
7914 compare urls and print job url if different.
7915
7916 1999-07-10 Alexander V. Lukyanov <[email protected]>
7917
7918 * Job.cc, Job.h, CmdExec.cc, CmdExec.h: add top_vfprintf method;
7919 modify vfprintf method to call top_vfprintf; in (class CmdExec)
7920 redefine only top_vfprintf.
7921
7922 1999-07-06 Alexander V. Lukyanov <[email protected]>
7923
7924 * HttpDir.cc: support base href, refresh, take list of tags from wget;
7925 show relative icon links in ls.
7926 * HttpDir.h: (class HttpDirList) add base_href member.
7927 * Http.cc: set home to / properly.
7928
7929 1999-07-05 Alexander V. Lukyanov <[email protected]>
7930
7931 * commands.cc: cd and lcd without arguments go to home.
7932 * Resolver.cc: (LookupOne) fix to actually use argument.
7933
7934 1999-07-04 Alexander V. Lukyanov <[email protected]>
7935
7936 * ftpclass.cc: use new Resolver constructor; fix relookup
7937 in case of net:relookup-always=true to lookup only after
7938 trying last address.
7939 * Resolver.cc: finish SRV support; don't close stderr.
7940 * XferJob.cc: don't include netdb.h
7941
7942 1999-07-04 Alexander V. Lukyanov <[email protected]>
7943
7944 * Resolver.cc, Resolver.h: about to support SRV dns records.
7945 * Http.cc: use new Resolver constructor.
7946
7947 1999-07-04 Darren Stuart Embry <[email protected]>
7948
7949 * FileAccess.cc: (GetFileURL) prepend colon before port name.
7950
7951 1999-06-29 Artur Frysiak <[email protected]>
7952
7953 * Http.cc: send User-Agnet header.
7954
7955 1999-06-26 Alexander V. Lukyanov <[email protected]>
7956
7957 * Http.cc: organize a list of tag/link pairs; add AREA/HREF pair.
7958
7959 1999-06-26 Alexander V. Lukyanov <[email protected]>
7960
7961 * FileAccess.h, Http.h: (FA::UseCache) new method.
7962 * LsJob.cc, HttpDir.cc: use it in rels.
7963 * Http.cc: send Cache-Control too.
7964
7965 1999-06-25 Alexander V. Lukyanov <[email protected]>
7966
7967 * Http.cc, Http.h, resource.cc: implement http:cache (pragma:no-cache)
7968
7969 1999-06-25 Alexander V. Lukyanov <[email protected]>
7970
7971 * complete.cc: workaround for readline bug (reported by
7972 <[email protected]>); make few functions static.
7973 * Makefile.am: add READLINE_DEPEND to lftp_DEPENDENCIES.
7974
7975 1999-06-24 Alexander V. Lukyanov <[email protected]>
7976
7977 * XferJob.cc: translate time units in one place; add optional verbose
7978 eta reporting (from Ben Winslow <[email protected]>).
7979
7980 1999-06-23 Alexander V. Lukyanov <[email protected]>
7981
7982 * Http.cc: fix never-ending-transfer problem with servers
7983 not supporintg ranges.
7984
7985 1999-06-22 Alexander V. Lukyanov <[email protected]>
7986
7987 * HttpDir.cc, HttpDir.h: extract link target from <frame src=;
7988 support `ls -f file.html' to extract links from file.
7989
7990 1999-06-19 Alexander V. Lukyanov <[email protected]>
7991
7992 * XferJob.cc: more precise eta reporting.
7993 * HttpDir.cc: prevent coredump on url.path==0.
7994 * MirrorJob.cc: add missing eprintf argument.
7995
7996 1999-06-18 Alexander V. Lukyanov <[email protected]>
7997
7998 * commands.cc: add sleep help
7999
8000 1999-06-15 Alexander V. Lukyanov <[email protected]>
8001
8002 * resource.cc: set http:proxy to getenv(http_proxy) initially.
8003
8004 1999-06-15 Alexander V. Lukyanov <[email protected]>
8005
8006 * ftpclass.cc, ftpclass.h: remove prehistoric methods DataReady
8007 and Block.
8008
8009 1999-06-08 Alexander V. Lukyanov <[email protected]>
8010
8011 * ftpclass.cc: fix for ftpcopy in passive mode.
8012
8013 1999-06-04 Alexander V. Lukyanov <[email protected]>
8014
8015 * commands.cc: prevent coredump when short_desc!=0 && long_desc==0.
8016
8017 1999-06-02 Alexander V. Lukyanov <[email protected]>
8018
8019 * module.c: handle case with RTLD_NOW undefined (SunOS4)
8020 * FtpListInfo.cc, HttpDir.cc: correct format string.
8021
8022 1999-06-01 Alexander V. Lukyanov <[email protected]>
8023
8024 * Makefile.am: remove module before its re-creation.
8025 * ascii_ctype.h: add is_ascii_xdigit.
8026 * Http.cc, Http.h: support for keep-alive getting info; support
8027 for chunked transfer encoding.
8028 * url.cc: always encode control characters.
8029
8030 1999-05-31 Alexander V. Lukyanov <[email protected]>
8031
8032 * Http.cc, Http.h: hook up HttpListInfo
8033 * HttpDir.cc, HttpDir.h: HttpListInfo implemented
8034 * FtpListInfo.cc: fixed bug with setting precise file time.
8035 * FileAccess.cc: untranslate some messages which indicate bug in app.
8036 * complete.cc: completion for new commands; add cache completion;
8037 reset SIGINT count so that interrupted completion does not clear
8038 line; call Open from GetInfoArray, Rename to avoid code duplication.
8039 * PutJob.cc, PutJob.h: add entity_date member; set date after Open.
8040 * LocalAccess.cc: don't use Poll; set file time in StoreStatus.
8041 * CmdExec.h: extern bookmark_subcmd, cache_subcmd.
8042 * ftpclass.cc: don't save line for every 213 response - this fixes
8043 quote stat .
8044 * CatJob.cc, CatJob.h: removed globbing support,
8045 now glob cat can be used.
8046 * commands.cc: use string_alloca; add slash for new bookmarks.
8047 * FtpGlob.cc: fix workarounds to check original; move workaround
8048 for "no /" bug here from complete.cc.
8049
8050 1999-05-26 Alexander V. Lukyanov <[email protected]>
8051
8052 * MirrorJob.cc, MirrorJob.h: do chmod on remote files.
8053 * commands.cc: (glob, chmod) new commands.
8054 * rmJob.cc, rmJob.h: use TreatFileJob as base class.
8055 * TreatFileJob.cc, TreatFileJob.h, ChmodJob.cc, ChmodJob.h: new files.
8056 * ArgV.cc, ArgV.h: (insarg) new method.
8057 * LocalAccess.cc: support chmod.
8058 * ftpclass.cc: support chmod; tune overloaded server recognition.
8059 * FileAccess.h, FileAccess.cc: CHANGE_MODE new open mode;
8060 (Chmod) new method.
8061 * lftp.cc: quote cmd line before adding it to history.
8062 * CmdExec.cc, CmdExec.h: (BUILTIN_GLOB) new builtin;
8063 (needs_quotation) new method.
8064 * FtpDirList.cc: (Status) implemented.
8065 * LsJob.cc: (ShowRunStatus) implemented.
8066 * HttpDir.cc: implement FtpDirList::Status; check ubuf==0 before usage.
8067 * Http.cc: handle chmod.
8068 * keyvalue.h: make Pair protected
8069 * ResMgr.cc, ResMgr.h: outline ResDecl constructor.
8070 * misc.cc: clean const usage; optimize.
8071 * SMTask.cc: use true/false for bool.
8072
8073 1999-05-22 Alexander V. Lukyanov <[email protected]>
8074
8075 * complete.cc: make better function pointer casts.
8076 * ResMgr.cc, ResMgr.h, keyvalue.cc, keyvalue.h: few fixes for other
8077 compilers.
8078 * FileSet.cc, FileSet.h: initialize FileInfo::data; outline few funcs.
8079 * xmalloc.cc, xmalloc.h: outline xfree to simplify debugging.
8080 * misc.cc: (dir_file) handle file==0.
8081 * HttpDir.cc, HttpDir.h: remove prefix if present; workaround apache
8082 bug.
8083 * history.cc: use NO_PATH.
8084 * FileAccess.cc, FileAccess.h: (GetFileURL) new method; rename NO_CWD
8085 to NO_PATH.
8086 * url.cc, url.h: add proto_required option; don't assign const char *
8087 to char *.
8088
8089 1999-05-20 Alexander V. Lukyanov <[email protected]>
8090
8091 * HttpDir.cc, HttpDir.h: new files.
8092 * lftp.cc: use const; readline wrappers.
8093 * complete.cc: include complete.h, lftp_rl.h
8094 * complete.h: renamed from lftp.h
8095 * lftp_rl.c, lftp_rl.h: new files.
8096 * commands.cc: use const; use FinderJob.
8097 * FindJob.cc, FindJob.h: rename class FindJob to FinderJob, to avoid
8098 conflict with Job::FindJob method.
8099 * ArgV.cc, ArgV.h: don't call getopt, because its prototype is
8100 uncertain.
8101 * GetJob.cc: remove unused variable
8102 * MirrorJob.cc: use const; satisfy non-gcc compilers in case(file->...)
8103 * GetPass.cc: don't include readline.
8104 * buffer.cc: close session in ~FileInputBuffer.
8105 * Http.cc, Http.h: fix LONG_LIST mode to restart transfer;
8106 change SendRequest to accept file name; add Connect method;
8107 add MakeDirList, MakeGlob methods.
8108 * CmdExec.h, CmdExec.cc: use const char * where needed; remove
8109 CmdExec:: inside CmdExec definition.
8110 * ResMgr.cc, ResMgr.h: make ResMgr::Resource public; add
8111 ResourceCompare method.
8112 * keyvalue.cc, keyvalue.h: make KeyValueDB::Pair public; add
8113 KeyValueDB::KeyCompare method.
8114 * bookmark.cc, CatJob.cc, XferJob.cc, XferJob.h, pgetJob.cc,
8115 pgetJob.h, FileFeeder.cc, FileFeeder.h, xmalloc.cc, CatJob.h,
8116 history.cc, SysCmdJob.cc:
8117 use const char * where needed.
8118 * netrc.cc: avoid gcc'ism.
8119 * Filter.h: kill a warning
8120 * FileSet.cc, FileSet.h: (Add) merge info if already added.
8121 (SortByName) mew method; few consts; add associated data.
8122 * SignalHook.cc, SignalHook.h: declare signal_handler type.
8123 * LocalAccess.cc, StatusLine.cc: use alloca instead of variable size
8124 array.
8125 * ftpclass.cc, ftpclass.h: fix sscanf to work with int's instead of
8126 members of struct tm; add const to several pointers; declare
8127 friend struct expected_response properly for other compilers.
8128 Fix bug with wrong address family for data socket in rare cases.
8129 Add more error messages; assertions.
8130 * LsCache.h: declare friend class ExpireHelper properly for other
8131 compilers.
8132 * misc.cc, misc.h: add static for inline basename_ptr, use const as
8133 main version.
8134 * FtpCopy.cc: no need for ctype.h
8135 * ascii_ctype.h: new file
8136 * ftpget.cc: use ArgV for LsJob
8137 * LsJob.cc, LsJob.h: use ArgV
8138 * FtpDirList.cc, FtpDirList.h: use ArgV
8139 * FileAccess.h: pass ArgV to MakeDirList; add const; kill a warning.
8140
8141 1999-05-19 Albert Chin-A-Young <[email protected]>
8142
8143 * ftp-opie.c, module.c, getdate.y: include xalloca.h to allow
8144 compilation by Sun C compiler.
8145
8146 1999-05-17 Alexander V. Lukyanov <[email protected]>
8147
8148 * XferJob.cc, XferJob.h: (CanShowRate) new function; optimize timeout.
8149 * FileAccess.cc: encode some unsafe chars in url
8150 * url.cc, url.h: take extra argument for unsafe chars.
8151 * mgetJob.cc, CatJob.cc, mrmJob.cc: use the changed Glob::Status.
8152 * FtpGlob.cc: change Status to include session status.
8153 * Resolver.cc: change timeout to fatal-timeout
8154 * FtpDirList.cc, FtpDirList.h: new files
8155 * LsCache.cc, LsCache.h: add const
8156 * LsJob.cc, LsJob.h: support for DirList.
8157 * Http.cc: unset hostname if resolution cannot be done.
8158 * ftpclass.cc, ftpclass.h: add FtpDirList support, unset hostname
8159 if resolution cannot be done.
8160 * buffer.h, buffer.cc: allow for FileInputBuffer to read data from
8161 a session; support suspend/resume.
8162 * SignalHook.h: fix for some compilers/systems
8163 * resource.cc: add net: variables; removed duplicates in ftp: and http:;
8164 make ftp:anon-pass visible.
8165 * FileAccess.cc: check for socket errors every time;
8166 query net:variable too.
8167 * FileAccess.h: (DirList::DirList) create the buffer.
8168 * ResMgr.h: (ResValue::is_nil) new method.
8169
8170 1999-04-30 Alexander V. Lukyanov <[email protected]>
8171
8172 * Http.cc, Http.h: complete support for put (untested).
8173 * ftpclass.cc: move DefaultAnonPass to resource.cc
8174 * commands.cc: add set -a, set -d support; last_bg is default for wait.
8175 * lftp.cc: use ResMgr::ClassInit
8176 * ftpget.cc: support SOCKS, use ResMgr::ClassInit
8177 * resource.cc: initialize default for ftp:anon-user;
8178 add ResMgr::ClassInit.
8179 * pgetJob.cc: use total_xferred in CurrETA.
8180 * XferJob.cc, XferJob.h: add offset argument for CurrETA
8181 * CmdExec.cc: add last_bg member
8182 * FtpListInfo.cc: create empty FileSet to avoid NULL access; handle L
8183 in file permissions.
8184 * MirrorJob.cc: run session after Chdir to avoid 'idle' status
8185 * FileAccess.h: add virtual class DirList
8186 * ResMgr.cc, ResMgr.h: support for printing with defaults/only defaults
8187 * ArgV.h: add getindex method
8188
8189 1999-04-22 Alexander V. Lukyanov <[email protected]>
8190
8191 * FindJob.cc: don't go uplevel if there are cd/list errors.
8192 * FtpListInfo.cc, FtpListInfo.h: change format-specific
8193 parsers to process single line at a time; copy line
8194 before processing.
8195 * PutJob.cc: remove poll on input file.
8196 * XferJob.cc, XferJob.h, pgetJob.cc: remove obsolete slow status
8197 line update.
8198 * CmdExec.cc, CmdExec.h: remove obsolete ls-in-completion
8199 * StatusLine.cc, StatusLine.h: implement delayed update.
8200 * commands.cc: move res_save_passwords to top level.
8201
8202 1999-04-15 Alexander V. Lukyanov <[email protected]>
8203
8204 * ftpclass.cc: use INET6 instead of AF_INET6
8205 * MirrorJob.cc: check if LocalAccess has been created
8206 * CmdExec.cc: add missing \n at end of input file
8207 * complete.cc: add mv to list of remote commands
8208 * commands.cc: add lpwd command
8209 * mgetJob.cc: more verbose status
8210 * CatJob.cc: more verbose status; remove unused has_wildcards
8211 * mrmJob.cc: more verbose status
8212 * FileAccess.h: (ArrayInfoPercentDone) new method
8213 * FtpGlob.cc: more verbose status
8214 * FtpListInfo.cc: more verbose status
8215
8216 1999-03-29 Alexander V. Lukyanov <[email protected]>
8217
8218 * FtpGlob.cc: fix handling of long lists
8219 * FileAccess.cc, FileAccess.h: add Glob::add_force
8220 * Http.cc: handle cd errors, deal with documents with no length
8221 * CatJob.cc: (Do) fix stupid bug introduced by Glob change
8222
8223 1999-03-27 Alexander V. Lukyanov <[email protected]>
8224
8225 * Http.cc, Http.h: add Location handling, get whole header on errors,
8226 misc improvements.
8227 * Resolver.cc, Resolver.h: use FileInputBuffer to be reliable.
8228 * mrmJob.cc, mgetJob.cc: use NoGlob as last resort.
8229 * CatJob.cc: do glob always (because FtpGlob is now smart)
8230 * complete.cc: support MakeGlob==0
8231 * FileAccess.h, FileAccess.cc: implemented Glob::HasWildcards,
8232 Glob::UnquoteWildcards, new class NoGlob.
8233 * pgetJob.cc: correct status lines and rate calculations.
8234 * FtpGlob.cc, FtpGlob.h: fnmatch inside of add(), don't access ftp
8235 server if there are no wildcards.
8236 * FtpListInfo.cc: list parsing restructured; added NT list parser
8237 * LocalAccess.cc: (Glob) do chdir to cwd before glob.
8238
8239 1999-03-17 Alexander V. Lukyanov <[email protected]>
8240
8241 * ftpget.cc: support modules
8242 * Http.cc, Http.h: many changes, still unfinished.
8243 * FtpGlob.cc, FtpGlob.h: new files
8244 * LocalAccess.cc, LocalAccess.h: implement LocalGlob; more verbose
8245 error messages.
8246 * lftp.cc: don't call obsolete ListInfo::ClassInit
8247 * ftpclass.cc, ftpclass.h: always copy resolved address
8248 to connected session along with socket; implement SameSiteAs,
8249 MakeGlob.
8250 * LsCache.cc, LsCache.h: implemented partial cache flush.
8251 * FileAccess.cc, FileAccess.h: add class FileAccessOperation;
8252 move ListInfo here; add class Glob; move class Protocol here;
8253 call LsCache flushing routines on certain operations;
8254 add SameSiteAs method (almost th same sa SameLocationAs,
8255 but don't check cwd).
8256 * complete.cc: use Glob
8257 * XferJob.cc: use FileAccess::New, don't include obsolete headers
8258 * mputJob.cc, mputJob.cc: don't include rglob.h, localize
8259 * FtpListInfo.cc, FtpListInfo.h: use FtpGlob
8260 * CatJob.cc, CatJob.h, mgetJob.cc, mgetJob.h, mrmJob.cc, mrmJob.h:
8261 use new class Glob.
8262 * MirrorJob.h, MirrorJob.cc: don't include ListInfo.h;
8263 use FileAccess::New; explicitly use UseCache(false).
8264 * FindJob.h: don't include ListInfo.h
8265 * ListInfo.h, ListInfo.cc, ProtoList.cc, ProtoList.h: removed; contents
8266 moved to FileAccess
8267 * pgetJob.cc: use only 40 chars for file name; print eta in jobs output
8268 * commands.cc: use FileAccess::New; add list address to version output;
8269 add --help and --version to `help lftp' output.
8270 * SignalHook.cc, SignalHook.h: don't use static arrays; add ClassInit
8271 * FtpCopy.cc: use FileAccess::New
8272
8273 1999-02-23 Alexander V. Lukyanov <[email protected]>
8274
8275 * Http.cc: Basic auth, new resource usage
8276 * lftp.cc: modular proto-ftp support
8277 * LocalAccess.cc: use Protocol::Register
8278 * ftpclass.cc: module support, new resource usage
8279 * commands.cc: module command, --no-umask in help for mirror,
8280 use single quotes in 'bookmark edit' shell command.
8281 * DummyProto.h: add Reconfig
8282 * ResMgr.cc, ResMgr.h: renamed Query to SimpleQuery, add complex
8283 Query method.
8284 * Resolver.cc, Resolver.h: add ClassInit
8285 * resource.cc, resource.h: new files
8286 * FileAccess.cc, FileAccess.h: move traffic shaper here, add Query and
8287 Reconfig methods; add closure member.
8288 * ProtoList.h: add static Register member
8289 * ListInfo.cc, ListInfo.h: add ClassInit
8290 * FtpCopy.cc: don't use StateToError
8291 * MirrorJob.cc, MirrorJob.h: implement --no-umask, apply umask
8292 by default.
8293 * CmdExec.cc: use op instead of args->a0().
8294
8295 1999-02-04 Alexander V. Lukyanov <[email protected]>
8296
8297 * commands.cc, CmdExec.cc, CmdExec.h: module support
8298 * lftp.cc: module support
8299 * complete.cc: don't use cmd_table directly
8300 * misc.cc, misc.h: (decode_delay) moved here
8301 * MirrorJob.cc: don't create LocalListInfo directly, module support
8302 * LocalAccess.cc: module support
8303 * ProtoList.cc: module support
8304 * PutJob.cc: call SetTime and SetDate
8305 * module.cc, module.h, modconfig.h: new files
8306 * Http.cc, Http.h: new files
8307 * buffer.cc, buffer.h: (FileInputBuffer) new class; (Errno) new method;
8308 (EventTime) new method.
8309 * FileAccess.cc, FileAccess.h: (default_cwd) new member; stuff from
8310 ftpclass; (SetTime, SetDate) new methods.
8311 * ftpclass.h, ftpclass.cc: move traffic shaper and other common with
8312 Http things to FileAccess.
8313 * SMTask.h: add Timeout and Block methods for convenience
8314 * SMTask.cc: don't run suspended tasks.
8315
8316 1999-01-23 Alexander V. Lukyanov <[email protected]>
8317
8318 * MirrorJob.cc: fix Report condition
8319 * ftpclass.cc: change format for EPSV response
8320 * Resolver.cc: set flags on pipe (O_NONBLOCK, FD_CLOEXEC); check
8321 for non-fatal errors.
8322
8323 1999-01-21 Alexander V. Lukyanov <[email protected]>
8324
8325 * Resolver.cc, Resolver.h: use string portname
8326 * FileAccess.h, FileAccess.cc: use string portname; implement base
8327 Connect.
8328 * FtpCopy.cc, commands.cc, ftpget.cc, XferJob.cc: use symbolic port
8329 in Connect.
8330 * ftpclass.h, ftpclass.cc: use string portname and proxy_port;
8331 print "connecting..." messages for ipv6; set peer_curr properly to
8332 less than peer_num; parse EPSV response correctly - search for '('.
8333 * MirrorJob.cc: always report to non-tty
8334 * CmdExec.cc, CmdExec.h: add cmd:verbose, useful for scripts.
8335 * ftpclass.cc: set peer_curr properly <peer_num.
8336
8337 1999-01-19 Alexander V. Lukyanov <[email protected]>
8338
8339 * PollVec.cc: merge pollfd's with the same descriptor (workaround for
8340 problems in some systems' poll)
8341 * ftpclass.cc: support for multiple addresses and ipv6; fixed bugs in
8342 CloseRespQueue; don't check port in passive mode.
8343 * ftpclass.h: support for multiple addresses and ipv6
8344 * Resolver.cc, Resolver.h: support for multiple addresses, multiple
8345 address families, dns:order variable.
8346 * url.cc: check for multiple colons (ipv6 numeric)
8347
8348 1999-01-08 Alexander V. Lukyanov <[email protected]>
8349
8350 * complete.cc: check for mirror -N
8351 * CmdExec.cc, CmdExec.h: add BUILTIN_NONE, reset builtin to it.
8352 * commands.cc: (do_open) (do_cd) don't verify host or cwd if background
8353 * ftpclass.cc, ftpclass.h: (FindLastCWD) new method;
8354 remove target_cwd; (CloseRespQueue) handle CHECK_{USER,PASS}*
8355 correctly, don't ignore them; fix waiting for cwd to
8356 proper directory.
8357
8358 1998-12-22 Alexander V. Lukyanov <[email protected]>
8359
8360 * PutJob.cc: correct bytes count when position changes (negative
8361 count is obviously incorrect)
8362 * plural.c: use absolute value
8363 * commands.cc: fix to exit if initial open fails (that from lftp call)
8364 * CmdExec.cc: cmd:fail-exit to exit if a command fails.
8365
8366 1998-12-19 Alexander V. Lukyanov <[email protected]>
8367
8368 * rglob.cc: (path_match) treat empty pattern specially
8369 * CmdExec.cc, CmdExec.h: (AtExit) new function, (cmd:at-exit) new
8370 setting.
8371 * lftp.cc: call top_exec->AtExit() and wait before exit
8372 * commands.cc: (do_lftp) feed "||exit" only if have fed command;
8373 (do_bookmark) don't add empty bookmark or bookmark with empty
8374 name.
8375
8376 1998-12-17 Alexander V. Lukyanov <[email protected]>
8377
8378 * MirrorJob.cc: clear waiting properly
8379
8380 1998-12-04 Alexander V. Lukyanov <[email protected]>
8381
8382 * ftpclass.cc: use socklen_t instead of ADDRLEN_TYPE; correct Buffered.
8383 * FileAccess.cc: use socklen_t instead of ADDRLEN_TYPE.
8384 * XferJob.cc: (Offset) implemented, used; (CountBytes) use Buffered
8385 and session_buffered to correct transfer rate.
8386 * XferJob.h: (Offset) new method, (session_buffered) new member
8387 * ftpclass.h, ftpclass.cc: (Buffered) new method
8388 * FileAccess.h: (Buffered) new virtual method
8389
8390 1998-12-03 Alexander V. Lukyanov <[email protected]>
8391
8392 * XferJob.cc: add i18n for K/s etc.
8393 * commands.cc: (open) create new session if current protocol is dummy
8394 * FileAccess.cc: (GetConnectURL) return empty url for dummy protocol
8395 * lftp.cc: (main) use DummyProto instead of Ftp.
8396 * DummyProto.cc, DummyProto.h: (new files) dummy protocol, will help
8397 in future to support dynamic loadable protocols.
8398 * xmalloc.h: don't rely on memcpy return value
8399 * LocalAccess.cc: when follow_links don't remove dangling links
8400
8401 1998-11-27 Alexander V. Lukyanov <[email protected]>
8402
8403 * lftp.cc: remove extra \n
8404 * ftpclass.cc: (Reconfig) call ResetBytes to reset accumulated count
8405 * SMTask.cc: call UpdateNow in ReconfigAll
8406
8407 1998-11-25 Alexander V. Lukyanov <[email protected]>
8408
8409 * XferJob.cc: add i18n for eta
8410 * complete.cc, rglob.cc, rglob.h, Job.h, LsCache.h, XferJob.cc,
8411 CmdExec.cc, mgetJob.cc, rmJob.h, rmJob.cc, QuoteJob.h, QuoteJob.cc,
8412 LsJob.h, mvJob.cc, PutJob.cc, MirrorJob.cc, CatJob.cc, GetJob.cc,
8413 LsJob.cc, mkdirJob.cc, mrmJob.cc, pgetJob.cc, ftpget.cc: remove
8414 dependency on ftpclass.h, use FileAccess.h instead; use FA.
8415 * rmJob.cc: support i18n; use FA
8416 * FileAccess.h: add FA shortcut to FileAccess
8417 * log.cc: cast void* to char*
8418 * ResMgr.cc, netrc.cc, lftp.cc: use const char *, avoid error with
8419 new egcs
8420 * ftpclass.cc, ftpclass.h: use enum for various response checks;
8421 clear resp queue on Close; associate path with CWD response handle.
8422 * commands.cc: use &CmdExec::do_... to compile with recent egcs
8423 * CmdExec.cc: set exit_code to zero when cd or open is stopped.
8424
8425 1998-11-22 Alexander V. Lukyanov <[email protected]>
8426
8427 * CmdExec.h: add ~CmdFeeder destructor, this fixes problem with
8428 feeders not destroyed, open fd's in particular.
8429
8430 1998-11-20 Alexander V. Lukyanov <[email protected]>
8431
8432 * ftpclass.cc, ftpclass.h: don't try to handle anon users specially,
8433 it did not work anyway; one has to use anon-user and anon-pass
8434 settings.
8435 * netrc.cc: ignore default; handle comments
8436 * SMTask.cc: include sys/time.h
8437 * commands.cc: add `command' command; replace args->a0() with op in
8438 several places.
8439 * CmdExec.cc, CmdExec.h: (BUILTIN_EXEC_RESTART) new builtin.
8440 * ArgV.cc, ArgV.h: (delarg) new method
8441
8442 1998-11-18 Alexander V. Lukyanov <[email protected]>
8443
8444 * XferJob.cc: add start_time_ms, end_time_ms; use now and now_ms.
8445 * LocalAccess.cc: check Poll return value for -1
8446 * commands.cc: updated help for rm, mirror.
8447 * ftpclass.cc, ftpclass.h: ftp:limit-rate, ftp:limit-max new settings;
8448 traffic limit implemented (BytesAllowed, BytesUsed, BytesReset);
8449 allow passing data peer address to data_address_ok for verification
8450 of PASV response; scan PASV response for address (as recommended in
8451 RFC1123; thanks to Michael Handler <[email protected]> for patch);
8452 verify data peer address in passive mode; check return value of Poll
8453 for -1; (AbortedClose, ControlClose) new functions; rearrange code
8454 in Read; clear lookup_done in SetProxy only if proxy changed.
8455 * lftp.cc: log SIGTERM when in background.
8456 * Resolver.cc: use static now.
8457 * SMTask.cc, SMTask.h: add static members: now, now_ms; (UpdateNow)
8458 new static method; call UpdateNow from Schedule.
8459 * FileAccess.cc: don't call Disconnect from CheckHangup; return -1
8460 from Poll if hangup.
8461
8462 1998-11-12 Alexander V. Lukyanov <[email protected]>
8463
8464 * MirrorJob.cc: set time only on directories; get sets it on files;
8465 don't print report messages if there is parent_mirror, this
8466 fixes multiple messages in nested directories after fg.
8467 * FileSet.cc, FileSet.h: add option to set time for only directories.
8468 * ftpclass.cc, ftpclass.h: add aborted_data_sock member; don't
8469 close data connection right after sending ABOR, wait for answer;
8470 send only first byte before ABOR as OOB to workaround recv()
8471 braindamage; clear lookup_done in Reconfig since proxy could change.
8472 * CmdExec.cc: set verify_path, verify_host; handle ^Z in open/cd
8473 * commands.cc: use verify_path, verify_host
8474 * CmdExec.h: (verify_path, verify_host) new members
8475
8476 1998-11-05 Alexander V. Lukyanov <[email protected]>
8477
8478 * FtpListInfo.cc, QuoteJob.cc, netrc.cc, Resolver.cc, misc.cc,
8479 parsecmd.cc, rglob.cc, url.cc, StatusLine.cc, ftpget.cc, buffer.h,
8480 xmalloc.h, lftp.cc: use xstring.h instead of string.h to improve
8481 portability.
8482 * Job.cc: (Fg, Bg) protect against infinite recursion
8483
8484 1998-10-31 Alexander V. Lukyanov <[email protected]>
8485
8486 * log.cc: (Format) implemented, added sl_cleared flag.
8487 * ftpget.cc: enable log when verbose
8488 * ftpclass.cc: add state check in ACCEPTING_STATE, fixes rare coredump.
8489 socket-maxseg experimental setting for TCP_MAXSEG. Print errors from
8490 setsockopt.
8491 * PollVec.cc: add assert(fd>=0).
8492
8493 1998-10-27 Alexander V. Lukyanov <[email protected]>
8494
8495 * commands.cc: (do_mirror) fix include/exclude setting, add -L option
8496 * FtpListInfo.cc: fix follow_symlinks handling, clear MODE, SIZE, etc.
8497 * ftpclass.cc: check for 4xx response for REST
8498 * ftpclass.h: comment fix
8499 * FtpCopy.cc: fix setting dst_size (was -2, need 0)
8500
8501 1998-10-23 Alexander V. Lukyanov <[email protected]>
8502
8503 * FtpListInfo.cc: fix exclude/include, implement follow_symlinks
8504 * commands.cc: (do_lftp) call do_open only if no lftp-specific options
8505 were found; (do_mirror) add --dereference (-L) option;
8506 (do_at) use get_date function
8507 * log.cc: fix logging after tty disconnect, clear tty flag
8508 * LocalAccess.cc: implement follow_symlinks semantics
8509 * ListInfo.cc, ListInfo.h: add follow_symlinks flag
8510 * MirrorJob.cc, MirrorJob.h: add RETR_SYMLINKS flag
8511 * getdate.y, getdate.h: new files (replace parsetime*)
8512
8513 1998-10-13 Alexander V. Lukyanov <[email protected]>
8514
8515 * complete.cc: fix remote completion (automatic class was deleted too
8516 early); fix typo.
8517 * commands.cc: (do_mirror) don't use ONLY_NEWER for reverse mirror.
8518 * FileSet.cc, FileSet.h: (SameAs) add ignore argument,
8519 (SubtractSame) same.
8520 * MirrorJob.cc: ignore date in reverse mode. (HandleFile) skip: label;
8521 report errors in mkdir
8522 * ftpclass.cc: check only first digit in response.
8523 * parsetime.y: use mktime_from_utc for portability
8524
8525 1998-10-07 Alexander V. Lukyanov <[email protected]>
8526
8527 * ftpclass.cc: prevent re-entering to Disconnect, this fixes stack
8528 overflow. (FlushSendQueue) new method. close control_sock if connect
8529 failed. check for try_time==0. Change default for verify-address,
8530 seems quite a bit of servers fail the check.
8531
8532 1998-10-03 Alexander V. Lukyanov <[email protected]>
8533
8534 * complete.cc: bookmark completion. cleanup.
8535 * CmdExec.cc: make FeedQuoted insert quotes, (GetFullCommandName) new
8536 method.
8537 * keyvalue.h: (CurrentKey) (CurrentValue) (Next) (Rewind) new methods,
8538 (current) new member
8539 * bookmark.h, bookmark.cc: (Rewind) new method, comment unused List()
8540 * history.h: (Rewind) new method
8541 * PutJob.cc, PutJob.h: (delete_files) new member, use it.
8542 * FindJob.cc: quote arguments and use --
8543 * mputJob.cc: recognize -e
8544 * FtpCopy.cc: include url in status
8545 * commands.cc: remove unused unquote(), fix do_lftp to call do_open.
8546 * FileAccess.cc: encode url parts
8547 * url.h, url.cc: (url) new class, (url::decode_sctring)
8548 (url::encode_string) new functions, use the functions.
8549 * ftpclass.cc: typo corrected
8550 * GetJob.cc, GetJob.h: (RemoveBackupFile) new function
8551 * pgetJob.cc: use RemoveBackupFile
8552
8553 1998-09-15 Alexander V. Lukyanov <[email protected]>
8554
8555 * FindJob.cc, FindJob.h: add FindJob_Cmd class;
8556 (class FindJob) use_cache, init_dir - new members, NextDir - new
8557 method; show status in WAIT state, don't show it in CD.
8558 * FileSet.cc, FileSet.h: outline next() and curr().
8559 * ArgV.cc, ArgV.h: make getcurr return 0 after getnext returns 0
8560 * commands.cc: add rm -r support
8561 * misc.cc, misc.h: (xgetcwd) new function
8562 * CmdExec.cc, CmdExec.h: don't execute commands if chdir failed;
8563 (FeedQuoted, unquote) new methods
8564 * ftpclass.cc: disable timeout for ftpcopy, remove NoWait.
8565 * SleepJob.h, SleepJob.cc: save and restore cwd, set parent of exec
8566 * FindJob.cc: include config.h
8567
8568 1998-09-08 Alexander V. Lukyanov <[email protected]>
8569
8570 * CmdExec.cc: (MakePrompt) add \@ handling
8571 * commands.cc: limit debug level to 0-9 range
8572 * keyvalue.cc: (Format) add \0 for empty case
8573
8574 1998-09-06 Alexander V. Lukyanov <[email protected]>
8575
8576 * rglob.cc: don't ignore NO_FILE
8577 * ftpclass.cc, ftpclass.h: remove unused ChdirStatus,
8578 ignore NO_FILE for NLST and simulate eof; don't set state
8579 in SwitchToState if we have failed smth (or else infinite loop
8580 is possible).
8581 * FileAccess.cc, FileAccess.h: add 'verify' to Chdir
8582 * FindJob.cc, FindJob.h: support depth-first search, don't verify cd's
8583
8584 1998-09-05 Alexander V. Lukyanov <[email protected]>
8585
8586 * ListInfo.cc, ListInfo.h: add 'need' and 'use_cache' members
8587 * XferJob.cc, LsCache.cc: use #l# for longs in plural()
8588 * lftp.cc: use ProcWait::Signal
8589 * buffer.cc, buffer.h: new files
8590 * FindJob.cc, FindJob.h: new files
8591 * SignalHook.cc, SignalHook.h: add Block, Unblock, Default methods
8592 * commands.cc: use decode_delay in sleep, add CMD(find)
8593 * MirrorJob.cc: request ALL_INFO
8594 * FileSet.h: add ALL_INFO
8595 * misc.cc: support dir_file(dir_file(),)
8596 * FtpListInfo.cc: handle 'need' and 'use_cache'. If there were no
8597 errors in long list, don't get short one. count errors in
8598 ParseLongList_UNIX.
8599 * FileAccess.h: add GetFile method, include ListInfo.h
8600 * Resolver.h: include string.h
8601 * CmdExec.h: add CMD(find)
8602 * ProcWait.h, ProcWait.cc: add Signal method
8603 * Filter.h, Filter.cc: add closed member to avoid spawning a process
8604 when done and waiting for termination; block SIGCHLD while spawning
8605 process to prevent races.
8606 * SysCmdJob.cc: same for SIGCHLD
8607 * FtpCopy.cc: fix rolling stick :)
8608 * FileSet.h: add ALL_INFO
8609 * mgetJob.cc: don't use cache for rglob
8610
8611 1998-08-31 Alexander V. Lukyanov <[email protected]>
8612
8613 * ftpclass.cc: fix connection leak in GetBetterConnection (missing
8614 return); add conditions to DataAbort to avoid unneeded ABOR;
8615 close data connection in Read on EOF to avoid ABOR;
8616 SwitchToState - remove bogus condition for COPY_FAILED
8617
8618 1998-08-28 Alexander V. Lukyanov <[email protected]>
8619
8620 * FileXfer.cc: fix setting op when args->count()==1
8621 * ArgV.h: add GetV method
8622 * SignalHook.cc, SignalHook.h: move to posix sigaction; add old_saved[]
8623 * ProcWait.cc, ProcWait.h: add SIGCHLD_handler, chain, destructor
8624 * log.cc, log.h: new files (log facility)
8625 * lftp.cc: use SIGCHLD_handler, use Log
8626 * SleepJob.cc, SleepJob.h: new files (sleep and at commands)
8627 * parsetime.y, parsetime-lex.l, parsetime-i.h: new files (from at-3.1.7)
8628 * FtpCopy.cc, FtpCopy.h: new files (copy between ftp servers)
8629 * Job.cc: call Bg() and Fg() for waiting
8630 * complete.cc: avoid "total xxx" in completion
8631 * FtpListInfo.cc: use int for base_dir_len
8632 * FileAccess.cc, FileAccess.h: use new log facility
8633 * ftpget.cc: use new log facility
8634 * CmdExec.cc, CmdExec.h: get rid of old debugging, Bg, Fg;
8635 add new commands
8636 * commands.cc: use new log facility; add new commands
8637 * XferJob.cc, XferJob.h, pgetJob.cc: add eta reporting
8638 (original by [email protected])
8639 * ftpclass.cc, ftpclass.h: add COPY_FAILED state, DataAbort method,
8640 abort data connection properly, send QUIT before control socket
8641 close, copy_* members for ftpcopy support, FlushSendQueue flushes
8642 all optionally
8643
8644 1998-08-19 Alexander V. Lukyanov <[email protected]>
8645
8646 * lftp.cc: (ReadlineFeeder) added ctty (is control tty) member;
8647 removed hung-up check, since readline() should report eof in
8648 the case; modified check for background state.
8649 * SMTask.cc: (Schedule) fix block collecting to exclude already
8650 running tasks.
8651
8652 1998-08-17 Alexander V. Lukyanov <[email protected]>
8653
8654 * lftp.cc: (ReadlineFeeder::NextCmd) check for hung-up terminal
8655
8656 1998-08-17 Alexander V. Lukyanov <[email protected]>
8657
8658 * fg.cc: add debug printf's
8659 * Job.h, Job.cc: make Fg() and Bg() outline virtual
8660 * lftp.cc: (ReadlineFeeder::NextCmd) don't call readline()
8661 if in background; (main) call top_exec->Fg() to make it foreground.
8662 * CmdExec.cc, CmdExec.h: (Fg, Bg) new functions; call waiting->Fg()
8663 for only foreground jobs
8664
8665 Fri Aug 14 19:00:54 MSD 1998 Alexander V. Lukyanov <[email protected]>
8666
8667 * CmdExec.h, commands.cc: (suspend) new command
8668 * GetJob.cc: rename old file to file~ if it exists, and remove
8669 backup upon getting the new file; this is useful for accidently
8670 forgotten 're' or '-c'.
8671 * ftpclass.cc: fix warning about old_type; improve
8672 error reporting; ignore extra 2xx responses for buggy servers
8673 * fg.h, fg.cc: (cont) new function; (Fg) cont the process even
8674 if we don't own the terminal.
8675 * SysCmdJob.cc, SysCmdJob.h: (AcceptSig) implemented; (~) call
8676 Bg() to release terminal properly, kill process in destructor
8677 * ProcWait.cc: (Kill) check if process still running
8678
8679 Mon Aug 3 19:18:51 MSD 1998 Alexander V. Lukyanov <[email protected]>
8680
8681 * commands.cc: (mirror) increase verbose instead of setting to 1
8682 * ftpclass.cc: (PASV_Catch) fix for broken servers returning 0,0,0,0
8683
8684 Wed Jul 29 17:35:15 MSD 1998 Alexander V. Lukyanov <[email protected]>
8685
8686 * CmdExec.cc: (~CmdExec) clear debug_shell if destroying it
8687 * CmdExec.h: make debug_shell public
8688 * commands.cc: (do_debug) don't set debug_shell
8689 * lftp.cc: (main) set debug_shell to top_exec
8690 Note: debug subsystem must be rewritten
8691 * complete.cc: remote completion by default for mirror
8692 * ftpclass.cc, ftpclass.h: ReadyCheck, check for m$ server and turn on
8693 sync mode if it was not; check for hostname==""
8694
8695 Fri Jul 24 16:45:41 MSD 1998 Alexander V. Lukyanov <[email protected]>
8696
8697 * ftpclass.cc: verify address before port
8698
8699 Thu Jul 23 00:54:11 MSD 1998 Alexander V. Lukyanov <[email protected]>
8700
8701 * mkdirJob.cc: include plural.h, one more message is preprocessed
8702 by plural().
8703 * FileAccess.cc: (expand_tilde) fix memmove bound violation in
8704 shrink case
8705
8706 Mon Jul 20 21:04:06 MSD 1998 Alexander V. Lukyanov <[email protected]>
8707
8708 * Filter.cc, Filter.h: new broken() method
8709 * XferJob.cc: use it to prevent spinning when output is broken
8710 and data is not available yet
8711
8712 Wed Jul 1 11:31:22 MSD 1998 Alexander V. Lukyanov <[email protected]>
8713
8714 * ftpclass.cc, ftpclass.h: rename some settings for better sorting;
8715 (verify-port) new setting, (data_port_verify) new member;
8716 set buffer size in Reconfig; some tweaks
8717 * commands.cc: set arg1 in cd command for status line when dir=="-"
8718
8719 Mon Jun 22 16:31:09 MSD 1998 Alexander V. Lukyanov <[email protected]>
8720
8721 * ftpclass.cc, ftpclass.h: fix data_address_ok DebugPrint's;
8722 add ftp:socket-buffer variable to tune tcp window
8723
8724 Thu Jun 18 18:19:20 MSD 1998 Alexander V. Lukyanov <[email protected]>
8725
8726 * alias.cc, alias.h: (Format) new function
8727 * commands.cc: use it
8728 * complete.cc: ls hack - ignore "total xxx", don't add /
8729
8730 Sun Jun 14 14:28:09 MSD 1998 Alexander V. Lukyanov <[email protected]>
8731
8732 * MirrorJob.cc: if file type is unknown and local directory exists,
8733 assume the remote file is a directory
8734 * ResMgr.cc, ResMgr.h: (Format) new function
8735 * commands.cc: use ResMgr::Format
8736 * ftpclass.cc, ftpclass.h: address-verify - new setting;
8737 (data_address_ok) new function
8738
8739 Thu Jun 11 16:55:57 MSD 1998 Alexander V. Lukyanov <[email protected]>
8740
8741 * Filter.cc: expand tilde in file name.
8742 * misc.cc, misc.h: (expand_home_relative) take and return const
8743 * commands.cc: use const for expand_home_relative
8744 * LocalAccess.cc: (Write) fix to adjust pos correctly
8745 * CmdExec.cc: (completion_use_ls) new member, new setting
8746 cmd:ls-in-completion; use host name for ls-default.
8747 * complete.cc: several fixes, use complation_use_ls.
8748
8749 Tue Jun 9 19:25:50 MSD 1998 Alexander V. Lukyanov <[email protected]>
8750
8751 * XferJob.cc: plural support
8752 * MirrorJob.cc: report not deleted files if flag set;
8753 (SetRX) new method, replaces SetInclude and SetExclude;
8754 plural support
8755 * commands.cc: (do_mirror) support several -i/-x; add optional
8756 argument for --verbose; use new interface to MirrorJob
8757 * lftp.cc: (ReadlineFeeder) fix memory leak
8758 * xmalloc.h: (xfree) not report xfree(0) when debugging
8759
8760 Fri Jun 5 17:24:04 MSD 1998 Alexander V. Lukyanov <[email protected]>
8761
8762 * commands.cc: update help for bookmark, fix bo import to look in
8763 proper directory.
8764
8765 Fri Jun 5 15:19:31 MSD 1998
8766
8767 * ftpclass.cc: (Ftp(Ftp*)) copy anon_user/anon_pass if available
8768 (StrError) don't translate string that can't be seen by user
8769
8770 Fri Jun 5 14:42:15 MSD 1998 Alexander V. Lukyanov <[email protected]>
8771
8772 * commands.cc: (do_pwd) print url, allow redirection,
8773 (do_open) prepend cmd_to_exec before bookmark expansion,
8774 (do_bookmark) add import subcommand, complain if bookmark to delete
8775 does not exist.
8776
8777 Fri Jun 5 14:37:26 MSD 1998 Alexander V. Lukyanov <[email protected]>
8778
8779 * complete.cc: try to use cached LONG_LIST for completion
8780 * LsCache.cc: (Lookup) don't copy out contents of cache if d==NULL
8781
8782 Wed Jun 3 17:18:04 MSD 1998 Alexander V. Lukyanov <[email protected]>
8783
8784 * CmdExec.cc, CmdExec.h: (save_passwords) new member,
8785 (bmk:save-passwords) new setting
8786 * commands.cc: use save_passwords, (echo) new command
8787 * CatJob.cc: if output==0 use stdout
8788
8789 Fri May 29 18:32:47 MSD 1998 Alexander V. Lukyanov <[email protected]>
8790 * XferJob.cc, XferJob.h: add xfer:use_urls, unstrict urls
8791
8792 Mon May 25 23:42:14 MSD 1998 Alexander V. Lukyanov <[email protected]>
8793
8794 * FtpListInfo.cc: close session in destructor (fixes coredump)
8795
8796 Mon May 25 23:24:09 MSD 1998 Alexander V. Lukyanov <[email protected]>
8797
8798 * CmdExec.cc: use status_line even if !interactive
8799
8800 Mon May 25 15:52:08 MSD 1998 Alexander V. Lukyanov <[email protected]>
8801
8802 * FileAccess.h, FileAccess.cc: add WITH_PASSWORD flag to GetConnectURL
8803
8804 Sun May 24 23:30:00 MSD 1998 Alexander V. Lukyanov <[email protected]>
8805
8806 * CmdExec.h: make print_cmd_help non static, (do_lftp) new
8807 function
8808 * commands.cc: (do_lftp) new function, remove -f option from
8809 do_open, print_cmd_help changes, `open' help change
8810 * lftp.cc: use do_lftp (indirectly)
8811
8812 Sun May 24 23:00:16 MSD 1998 Alexander V. Lukyanov <[email protected]>
8813
8814 * CmdExec.cc: don't reference status_line when it's zero,
8815 change status for cd and open commands
8816
8817 Sat May 23 03:06:25 MSD 1998 Alexander V. Lukyanov <[email protected]>
8818
8819 * MirrorJob.cc: pass newer_than to child mirror jobs
8820 * FileSet.cc: (SubtractOlderThan) subtract only plain files
8821
8822 Thu May 21 22:56:22 MSD 1998 Alexander V. Lukyanov <[email protected]>
8823
8824 * ftpclass.cc: (mktime_from_utc) new function (from wget)
8825 (ConvertFtpDate) use mktime_from_utc instead of old hack.
8826
8827 Thu May 21 22:21:50 MSD 1998 Alexander V. Lukyanov <[email protected]>
8828
8829 * FileAccess.h: make Login() virtual
8830 * ftpclass.cc: (Login) new function, add anon-user/anon-pass,
8831 (SameConnection) new function, differenciate connections with,
8832 different anonymous login. (DefaultAnonUser) new function,
8833 (ClassInit) set default anon-pass, (anon_user) new member
8834 * ftpclass.h: same
8835
8836 Thu May 21 13:55:20 MSD 1998 Alexander V. Lukyanov <[email protected]>
8837
8838 * PutJob.cc: fix for new buffer allocation
8839
8840 Tue May 19 16:53:36 MSD 1998 Alexander V. Lukyanov <[email protected]>
8841
8842 * commands.cc: (find_command) new function (from vars.cc)
8843 * vars.cc, vars.h: remove
8844
8845 Fri May 15 19:25:49 MSD 1998 Alexander V. Lukyanov <[email protected]>
8846 * commands.cc: don't use errno in GetPass() error message
8847
8848 Fri May 15 18:17:31 MSD 1998 Alexander V. Lukyanov <[email protected]>
8849
8850 * Resolver.cc: handle timeout, fix sleep, (Reconfig) new function
8851 * Resolver.h: (timeout) new member, (Reconfig) new decl
8852
8853 Fri May 15 18:11:44 MSD 1998 Alexander V. Lukyanov <[email protected]>
8854
8855 * ResMgr.cc: (ResDecl::Query) new function
8856 * ResMgr.h: (ResValue) new class
8857 * ftpclass.cc: (Reconfig) use it, (ResQuery) remove
8858 * ftpclass.h: (ResQuery) remove, (SetFlag) take bool arg
8859 * CmdExec.cc: (Reconfig) use it, (ResQuery) remove
8860 * CmdExec.h: (ResQuery) remove
8861
8862 Fri May 15 16:49:35 MSD 1998 Alexander V. Lukyanov <[email protected]>
8863 * SMTask.cc (ReconfigAll): add NoWait
8864
8865 Fri May 15 16:31:14 MSD 1998 Alexander V. Lukyanov <[email protected]>
8866 * LsJob.cc: Fix cached listing printing
8867 * LsJob.h: remove unused variable cache_buffer_ptr
8868
8869 Tue May 12 22:24:38 MSD 1998 Alexander V. Lukyanov <[email protected]>
8870
8871 * ftpclass.cc: move pass hiding here, where it belongs, show pass
8872 when s/key is used or anonymous
8873 * FileAccess.cc: ...and remove from here
8874
8875 Tue May 12 21:45:02 MSD 1998 Alexander V. Lukyanov <[email protected]>
8876
8877 * XferJob.cc, XferJob.h: add support for variable sized buffer
8878 * CatJob.cc, CatJob.h: add support for cat'ing from memory
8879 * command.cc: (bookmark) use CatJob for bookmark list
8880 * bookmark.cc, bookmark.h: add Format
8881
8882 Tue May 12 19:19:54 MSD 1998 Alexander V. Lukyanov <[email protected]>
8883
8884 * ftpclass.cc, ftpclass.h: tune memory use
8885
8886 Tue May 12 19:00:06 MSD 1998 Alexander V. Lukyanov <[email protected]>
8887
8888 * xmalloc.cc, xmalloc.h: support for debug
8889
8890 Tue May 12 16:31:07 MSD 1998 Alexander V. Lukyanov <[email protected]>
8891
8892 * keyvalue.cc: (Format) new function
8893 (Write) use Format
8894 * keyvalue.h: ajust accordingly
8895
8896 Mon May 11 01:08:37 MSD 1998 Alexander V. Lukyanov <[email protected]>
8897
8898 * commands.cc: (open) use password from .netrc if user name matches
8899
8900 Sat May 9 01:47:41 MSD 1998 Alexander V. Lukyanov <[email protected]>
8901
8902 * ftpclass.c: add "S/Key MD5" string to list of skey strings
8903 (make_skey_reply) use `result' to catch multiline responses.
8904
8905 Fri May 8 02:47:11 MSD 1998 Alexander V. Lukyanov <[email protected]>
8906
8907 * ftpclass.cc, ftpclass.h: add force_skey, allow_skey defaults to yes
8908 (make_skey_reply) rewrite, add otp-md5 string
8909 * ftpclass.cc: wait for pass prompt only when user given (no anon)
8910
8911 Thu May 7 21:55:17 MSD 1998 Alexander V. Lukyanov <[email protected]>
8912
8913 * parsecmd.cc: fix alias_field calculation
8914
8915 Wed May 6 21:13:41 MSD 1998 Alexander V. Lukyanov <[email protected]>
8916
8917 * ftpclass.cc (make_skey_reply): implement (base from wget) and use it;
8918 (skey_pass, allow_skey): new members of class Ftp
8919 * ftpclass.h: likewise
8920 * Makefile.am: add md5.c, md5.h, ftp-opie.c to sources
8921
8922 Wed May 6 20:38:55 MSD 1998 Alexander V. Lukyanov <[email protected]>
8923
8924 * ftpclass.cc (LoginCheck): assume non-fatal error when
8925 got RESP_LOGIN_FAILED, but without "Login incorrect" string.
8926
8927 Wed May 6 15:19:00 MSD 1998 Alexander V. Lukyanov <[email protected]>
8928
8929 * commands.cc (bookmark): add `bookmark edit' command