]> sjero.net Git - wget/blob - src/ChangeLog
[svn] Default dir_prefix to NULL rather than ".".
[wget] / src / ChangeLog
1 2003-09-19  Hrvoje Niksic  <hniksic@xemacs.org>
2
3         * url.c (url_file_name): Expect NULL dir_prefix.
4
5         * init.c (cmd_file): Use a macro to prevent multiple #ifdef
6         WINDOWS.
7         (defaults): Set dir_prefix to NULL by default.
8
9 2003-09-19  Hrvoje Niksic  <hniksic@xemacs.org>
10
11         * safe-ctype.h (_sch_test): Cast BIT to unsigned char, like latest
12         gcc does.
13
14 2003-09-19  Hrvoje Niksic  <hniksic@xemacs.org>
15
16         * wget.h (BOUNDED_TO_ALLOCA): Evaluate PLACE only once.
17         (ARRAY_SIZE): Renamed to countof.  All callers updated.
18
19 2003-09-19  Hrvoje Niksic  <hniksic@xemacs.org>
20
21         * main.c (main): New option --strict-comments.
22
23         * html-parse.c (find_comment_end): New function: simple BM search
24         for "-->".
25         (map_html_tags): Use it if looking at a comment and not in strict
26         comments mode.
27
28 2003-09-17  Aurelien Marchand  <artaxerxes@users.sf.net>
29
30         * ftp.h: Added OS400 system in enum
31         * ftp-basic.c: recognize OS400 systems
32         * ftp.c: don't prepend the CWD if talking to OS400, since it
33         breaks the change in library
34
35 2003-09-18  Hrvoje Niksic  <hniksic@xemacs.org>
36
37         * retr.c (get_contents): Pass the correct argument to ssl_iread.
38
39 2003-09-18  Hrvoje Niksic  <hniksic@xemacs.org>
40
41         * safe-ctype.h: Don't #define ctype.h macros to errors because
42         that loses when someone #include's ctype.h after safe-ctype.h.
43
44 2003-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
45
46         * url.c: Undef U, W, C after use.
47
48 2003-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
49
50         * init.c (cmd_spec_restrict_file_names): Allow the OS setting to
51         be augmented by ",nocontrol" which means don't escape the control
52         characters, but otherwise keep OS settings.
53
54         * url.c (file_unsafe_char): Deleted.
55         (append_uri_pathel): Query filechr_table directly.
56         (filechr_table): Separated Unix, Windows, and control-unsafe
57         characters.
58
59 2003-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
60
61         * url.c (url_escape_1): New function.
62         (url_escape): Use it.
63         (sync_path): Handle pathological cases where u->file and u->dir
64         contain really strange characters.
65         (ENCODE): Deleted.
66         (REENCODE): Deleted.
67
68 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
69
70         * url.c (url_file_name): Don't reallocate FNAME if the file
71         doesn't exist, as is usually the case.
72
73         * utils.c (unique_name): New flag allow_passthrough.
74
75 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
76
77         * utils.c (wtimer_sys_diff): Convert the time difference to signed
78         __int64, then to double.  This works around MS VC++ 6 which can't
79         convert unsigned __int64 to double directly.
80
81 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
82
83         * Makefile.in (clean): Also remove the core.<number> files
84         produced by recent Linux systems.
85
86 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
87
88         * http.c (post_file): Don't pad the file if it's not large
89         enough.  Bail out instead.
90
91 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
92
93         * retr.c (get_contents): Reduce the buffer size to the amount of
94         data that may pass through for one second.  This prevents long
95         sleeps when limiting bandwidth.
96
97         * connect.c (connect_to_one): Reduce the socket's RCVBUF when
98         bandwidth limitation to small values is requested.
99
100 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
101
102         * progress.c (update_speed_ring): Moved the speed ring update to a
103         separate function and documented it better.
104
105         * progress.c: Use `double' for most timers to support granularity
106         smaller than 1ms.
107
108 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
109
110         * wget.h (XDIGIT_TO_XCHAR): Implement as index into a literal
111         string.
112         (XDIGIT_TO_xchar): Ditto.
113
114 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
115
116         * utils.c: Change the type of timer-related functions from long to
117         double, for better precision.  On machines supporting gettimeofday
118         the timers now work with granularity of less than one millisecond.
119
120 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
121
122         * cookies.c (parse_set_cookies): Fixed the parser to handle more
123         edge conditions.
124         (test_cookies): New function, contains a test suite for
125         parse_set_cookies.
126
127 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
128
129         * url.c (strpbrk_or_eos): Implement as a macro under Gcc.
130
131 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
132
133         * cookies.c (parse_set_cookies): Allow trailing space in
134         set-cookies header.  Also, allow any amount of whitespace, not
135         only one character.  Allow empty set-cookies header without
136         spewing an error.
137
138 2003-09-14  Hrvoje Niksic  <hniksic@xemacs.org>
139
140         * url.c (append_uri_pathel): Use opt.restrict_file_names when
141         calling file_unsafe_char.
142
143         * init.c: New command restrict_file_names.
144
145         * main.c (main): New option --restrict-file-names[=windows,unix].
146
147         * url.c (url_file_name): Renamed from url_filename.
148         (url_file_name): Add directory and hostdir prefix here, not in
149         mkstruct.
150         (append_dir_structure): New function, does part of the work that
151         used to be in mkstruct.  Iterates over path elements in u->path,
152         calling append_uri_pathel on each one to append it to the file
153         name.
154         (append_uri_pathel): URL-unescape a path element and reencode it
155         with a different set of rules, more appropriate for handling of
156         files.
157         (file_unsafe_char): New function, uses a lookup table to decide
158         whether a character should be escaped for use in file name.
159         (append_string): New utility function.
160         (append_char): Ditto.
161         (file_unsafe_char): New argument restrict_for_windows, decide
162         whether Windows file names should be escaped in run-time.
163
164         * connect.c: Include <stdlib.h> to get prototype for abort().
165
166 2003-09-14  Hrvoje Niksic  <hniksic@xemacs.org>
167
168         * utils.c (wtimer_sys_set): Extracted the code that sets the
169         current time here.
170         (wtimer_reset): Call it.
171         (wtimer_sys_diff): Extracted the code that calculates the
172         difference between two system times here.
173         (wtimer_elapsed): Call it.
174         (wtimer_elapsed): Don't return a value smaller than the previous
175         one, which could previously happen when system time is set back.
176         Instead, reset start time to current time and note the elapsed
177         offset for future calculations.  The returned times are now
178         guaranteed to be monotonically nondecreasing.
179
180 2003-09-10  Hrvoje Niksic  <hniksic@xemacs.org>
181
182         * host.c (lookup_host): Print the result of the DNS lookup.
183
184 2003-09-10  Hrvoje Niksic  <hniksic@xemacs.org>
185
186         * init.c (cmd_boolean): Accept yes/no along with on/off.
187         (cmd_lockable_boolean): Ditto.
188
189 2003-09-10  Hrvoje Niksic  <hniksic@xemacs.org>
190
191         * init.c: New command dns_cache.
192
193         * main.c (main): New option --dns-cache[=off].
194
195 2003-09-09  Hrvoje Niksic  <hniksic@xemacs.org>
196
197         * config.h.in: Initialize HAVE_GETADDRINFO and ENABLE_IPV6.
198
199         * all: Use #ifdef ENABLE_IPV6 instead of the older INET6.  Use
200         HAVE_GETADDRINFO for getaddrinfo-related stuff.
201
202 2003-09-09  Hrvoje Niksic  <hniksic@xemacs.org>
203
204         * url.c (url_parse): Return an error if the URL contains a [...]
205         IPv6 numeric address and we don't support IPv6.
206
207 2003-09-05  Hrvoje Niksic  <hniksic@xemacs.org>
208
209         * url.c (is_valid_ipv6_address): Modified to not require
210         zero-terminated strings.
211         (is_valid_ipv4_address): Ditto.
212
213 2003-09-05  Mauro Tortonesi <mauro@deepspace6.net>
214
215         src/url.c: added RFC 2732 compliance for URL parsing. The
216         functions is_*_address valid are a modified version of
217         glibc 2.3.2 inet_pton's code.
218
219 2003-09-03  Ahmon Dancy  <dancy@dancysoft.com>
220
221         * main.c init.c options.h: Added --retry-connrefused option so
222         that Connection Refused failures are treated as non-fatal (when
223         trying to retrieve from busy servers).
224
225         * wget.h: New CONNECT_ERROR macro for encapsulating this
226         modification.
227
228         * ftp.c http.c : Use CONNECT_ERROR macro in places where
229         ECONNREFUSED was checked.
230
231 2003-01-11  Ian Abbott  <abbotti@mev.co.uk>
232
233         * ftp.c (ftp_retrieve_glob): Reject insecure filenames as determined
234         by calling new function has_insecure_name_p.  This is based on a
235         patch by Red Hat.
236
237         * fnmatch.c (has_insecure_name_p): New function: returns non-zero
238         if filename starts with `/' or contains `../' and is therefore
239         considered insecure.
240
241         * fnmatch.h: Declare has_insecure_name_p().
242
243 2002-08-03  Hrvoje Niksic  <hniksic@xemacs.org>
244
245         * init.c (cmd_file): Allocate RESULT correctly.
246
247 2002-07-24  Hrvoje Niksic  <hniksic@xemacs.org>
248
249         * recur.c (retrieve_tree): Check whether downloaded_html_set is
250         non-NULL before using it.
251
252 2002-05-27  Hrvoje Niksic  <hniksic@arsdigita.com>
253
254         * html-parse.c (NAME_CHAR_P): Allow almost any character here.
255
256 2002-05-24  Hrvoje Niksic  <hniksic@arsdigita.com>
257
258         * progress.c (bar_set_params): Fall back to dot progress if the
259         terminal type is "emacs".
260
261 2002-05-20  Hrvoje Niksic  <hniksic@arsdigita.com>
262
263         * log.c: Don't #undef WGET_USE_STDARG.
264
265 2002-05-16  Hrvoje Niksic  <hniksic@arsdigita.com>
266
267         * hash.c (prime_size): Store the offset of the prime number in the
268         prime table.  When searching, start with the given offset.
269         (hash_table_new): Pass the pointer to ht->prime_offset to
270         prime_size.
271         (grow_hash_table): Ditto.
272         (prime_size): Make 13 the first prime to make empty hash tables
273         slightly smaller.
274
275 2002-05-16  Ian Abbott  <abbotti@mev.co.uk>
276
277         * recur.c (download_child_p): Minor optimization to avoid an
278         unnecessary additional call to schemes_are_similar_p function.
279
280 2002-05-16  Ian Abbott  <abbotti@mev.co.uk>
281
282         * url.c (schemes_are_similar_p): New function to test enumerated
283         scheme codes for similarity.
284
285         * url.h: Declare it.
286
287         * recur.c (download_child_p): Use it to compare schemes.  This
288         also fixes a bug that allows hosts to be spanned (without the
289         -H option) when the parent scheme is https and the child's is
290         http or vice versa.
291
292 2002-05-14  Bill Richardson  <bill@riverstonenet.com>
293
294         * ftp.c (getftp): Don't ftruncate stdout.
295
296         * http.c (gethttp): Don't ftruncate stdout.
297
298 2002-05-09  Ian Abbott  <abbotti@mev.co.uk>
299
300         * cmpt.c (strptime_internal): Synched with glibc-2.1.3.
301         (get_number): Ditto.
302         (get_alt_number): Ditto.
303         (__isleap): New function-like macro used by strptime.
304         (day_of_the_week): New function used by strptime.
305         (day_of_the_year): Ditto.
306         (__mon_yday): Now shared by mktime and strptime implementations.
307
308 2002-05-08  Hrvoje Niksic  <hniksic@arsdigita.com>
309
310         * cookies.c (check_domain_match): Use match_tail in case
311         insensitive mode.
312
313         * utils.c (match_tail): Allow the caller to specify case
314         insensitive mode.
315
316         * cookies.c (store_cookie): When expiry_time is 0, print it as
317         undefined, not indefinite.
318
319 2002-05-07  Ian Abbott  <abbotti@mev.co.uk>
320
321         * cookies.c (cookie_jar_process_set_cookie): Do not store
322         discarded cookie.
323
324 2002-04-21  Hrvoje Niksic  <hniksic@arsdigita.com>
325
326         * cookies.c (check_domain_match): Allow cookies to be set for
327         subdomains of unknown top-level domains under some circumstances.
328
329 2002-04-21  Thomas Lussnig  <thomas.lussnig@bewegungsmelder.de>
330
331         * gen_ssl.c:
332         - allow checking of server cert
333         - allow defining client cert type
334         - allow limit of ssl protocol
335         - check more return values
336         - added debug message on break
337
338 2002-04-21  Hrvoje Niksic  <hniksic@arsdigita.com>
339
340         * recur.c (download_child_p): Revert order of items in check
341         number 6 for clarity.
342
343 2002-04-20  Hrvoje Niksic  <hniksic@arsdigita.com>
344
345         * init.c: Ditto.
346
347         * main.c: Ditto.
348
349         * http.c: Use the new interface.
350
351         * cookies.c: Provide an OO-style "cookie jar" interface to enable
352         separate cookie jars.
353
354         * http.c (http_atotm): Declare argument as const.
355
356 2002-04-20  Hrvoje Niksic  <hniksic@arsdigita.com>
357
358         * cookies.c (cookie_new): Default to PORT_ANY.
359         (find_cookie_chain_exact): Only search by DOMAIN.
360         (find_matching_cookie): Also check that PORT matches.
361         (store_cookie): Only match the domain.
362         (set_cookie_header_cb): When a cookie "fakes" a domain, assume it
363         is valid for that host rather than discarding it completely.
364         (find_matching_chains): Don't search by PORT.
365         (matching_cookie): Also match PORT.
366         (load_cookies): Set the port if specified, otherwise leave it as
367         ANY.
368         (save_cookies_mapper): Save the port if specified, otherwise leave
369         it empty.
370
371 2002-04-19  Thomas Lussnig  <thomas.lussnig@bewegungsmelder.de>
372
373         * init.c: The option `egdfile' was not in sort order.
374
375 2002-04-16  Hrvoje Niksic  <hniksic@arsdigita.com>
376
377         * ftp.c (getftp): Treat directories that begin with <letter>: as
378         absolute.
379         (getftp): Strip trailing slashes from con->id before merging it
380         with TARGET.
381
382 2002-04-16  Hrvoje Niksic  <hniksic@arsdigita.com>
383
384         * http.c (gethttp): If Content-Type is not given, assume
385         text/html.
386
387 2002-04-15  Hrvoje Niksic  <hniksic@arsdigita.com>
388
389         * recur.c (download_child_p): Don't ignore rejection of HTML
390         documents that are themselves leaves of recursion.
391
392 2002-04-15  Ian Abbott  <abbotti@mev.co.uk>
393
394         Makefile.in: Updated several dependencies for object files to take
395         account of nested include files.
396
397 2002-04-15  Ian Abbott  <abbotti@mev.co.uk>
398
399         Makefile.in: The target `connect$o' (connect.o) now depends on
400         `utils.h'
401
402 2002-04-15  Ian Abbott  <abbotti@mev.co.uk>
403
404         * host.c (SET_H_ERRNO): New function-like macro to set `h_errno'.
405         (gethostbyname_with_timeout): Use it.
406
407         * utils.c: Don't define `SETJMP()', `run_with_timeout_env' or
408         `abort_run_with_timeout()' when `USE_SIGNAL_TIMEOUT' is undefined.
409
410 2002-04-15  Hrvoje Niksic  <hniksic@arsdigita.com>
411
412         * host.c (getaddrinfo_with_timeout): New function.
413         (gethostbyname_with_timeout): Ditto.
414         (lookup_host): Use them.
415
416 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
417
418         * utils.c (number_to_string): Handle the case when n < -INT_MAX.
419
420 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
421
422         * init.c (comind): Use a marginally faster implementation of
423         binary search.  To quote Martin Buchholz, "a nanosecond saved is a
424         nanosecond earned."
425
426 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
427
428         * main.c (print_help): Document `--post-data' and `--post-file'.
429
430 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
431
432         * http.c (gethttp): Ditto.
433
434         * retr.c (retrieve_url): Initialize variables to appease the
435         compiler.
436
437         * gen_sslfunc.c (ssl_iread): Don't handle EINTR when calling
438         select_fd.
439         (ssl_iwrite): Ditto.
440
441         * connect.c (select_fd): Rewrite to handle EINTR.  Set errno to
442         ETIMEDOUT in case of timeout.
443         (iread): No need to handle EINTR when calling select_fd.
444         (iwrite): Ditto.
445
446 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
447
448         * retr.c (retrieve_url): Make sure that POST is not honored for
449         redirections.
450
451         * http.c (gethttp): Send the POST data when requested.
452         (post_file): New function.
453         (gethttp): Use it.
454
455         * main.c (main): Ditto.
456
457         * init.c: Add new options.
458
459         * options.h (struct options): New options post_data and
460         post_file_name.
461
462 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
463
464         * connect.c (connect_with_timeout): Firing SIGALRM can result in
465         connect() exiting with EINTR.  Treat EINTR the same as ETIMEDOUT.
466
467 2002-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
468
469         * connect.c (connect_with_timeout): Use it.
470
471         * utils.c (run_with_timeout): New function.
472
473 2002-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
474
475         * url.c (getproxy): Accept a struct url argument.  This obviates
476         the need for USE_PROXY_P.
477
478         * retr.c (retrieve_url): Allow proxy to be a non-FTP URL.
479
480         * ftp.c (getftp): Recognize FWTK-style proxy.
481
482 2002-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
483
484         * config.h.in: Only define _VA_LIST when compiled with gcc.
485
486 2002-04012  Ian Abbott  <abbotti@mev.co.uk>
487
488         * http.c (http_loop): Compensate for MS Windows two-second
489         granularity of file modification time when comparing timestamps.
490
491         * ftp.c (ftp_retrieve_list): Ditto.
492
493 2002-04-12  Ian Abbott  <abbotti@mev.co.uk>
494
495         * utils.c (has_html_suffix_p): New function to test filename for
496         common html extensions.
497
498         * utils.h: Declare it.
499
500         * http.c (http_loop): Use it instead of previous test.
501
502         * retr.c (retrieve_url): Ditto.
503
504         * recur.c (download_child_p): Ditto.
505
506 2002-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
507
508         * config.h.in: Define _VA_LIST on Solaris to prevent stdio.h from
509         declaring va_list.
510         From Kevin Rodgers <kevinr@ihs.com>.
511
512 2002-04-12  Ian Abbott  <abbotti@mev.co.uk>
513
514         * Makefile.in: Specify libtool mode explicitly when linking.
515
516 2002-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
517
518         * connect.c (connect_with_timeout): New function.
519         (connect_to_one): Use it.
520
521         * config.h.in: Add stubs for HAVE_SIGSETJMP, HAVE_SIGBLOCK, and
522         HAVE_SETJMP_H.
523
524 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
525
526         * log.c: Set WGET_USE_STDARG if __STDC__ is defined and stdarg.h
527         is present.
528
529 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
530
531         * progress.c (bar_create): If INITIAL is larger than TOTAL, fix
532         TOTAL.
533         (bar_finish): Likewise.
534
535 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
536
537         * html-url.c (tag_handle_form): New function.  Pick up form
538         actions and mark them for conversion only.
539
540 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
541
542         * progress.c (struct progress_implementation): Use PARAMS when
543         declaring the parameters of *create, *update, *finish, and
544         *set_params.
545
546         * netrc.c: Ditto.
547
548         * http.c: Reformat some function definitions so that ansi2knr can
549         read them.
550
551         * hash.c (struct hash_table): Use the PARAMS macro around
552         parameters in the declaration of hash_function and test_function.
553         (prime_size): Spell 2580823717UL and 3355070839UL as (unsigned
554         long)0x99d43ea5 and (unsigned long)0xc7fa5177 respectively, so
555         that pre-ANSI compilers can read them.
556         (find_mapping): Use PARAMS when declaring EQUALS.
557         (hash_table_put): Ditto.
558
559         * ftp.h: Wrap the parameters of ftp_index declaration in PARAMS.
560
561         * cookies.c (cookie_new): Use (unsigned long)0 instead of 0UL,
562         which was unsupported by pre-ANSI compilers.
563
564         From Nelson H. F. Beebe <beebe@math.utah.edu>, for the most part.
565
566 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
567
568         * url.c (url_filename): Use compose_file_name regardless of
569         whether opt.dirstruct is set.
570         (mkstruct): Don't handle the query and the reencoding of DIR; that
571         is done in compose_file_name.
572
573 2002-04-10  Hrvoje Niksic  <hniksic@arsdigita.com>
574
575         * wget.h: Ditto for extern char *exec_name.
576
577         * options.h: Don't guard against OPTIONS_DEFINED_HERE -- it is
578         perfectly legal to follow an `extern' with a non-`extern' ones,
579         provided the types match.
580
581         * main.c: Don't define OPTIONS_DEFINED_HERE.
582
583 2002-04-10  Hrvoje Niksic  <hniksic@arsdigita.com>
584
585         * progress.c (create_image): Revert to calculating ETA based on
586         average download speed.
587         (create_image): Don't print ETA until the download has been active
588         for at least 3 seconds.
589         (create_image): When ETA is not available, don't print anything.
590         The previous version would print --:--.
591
592 2002-04-10  Hrvoje Niksic  <hniksic@arsdigita.com>
593
594         * progress.c (bar_update): Keep updating a subinterval until it
595         reaches or exceeds a watermark.  That way the measurement will be
596         guaranteed to span a configurable minimum of time.  The current
597         default is 3s in 30 100ms intervals.
598
599 2002-04-09  Hrvoje Niksic  <hniksic@arsdigita.com>
600
601         * progress.c (bar_update): Maintain an array of the time it took
602         to perform previous 30 network reads.
603         (create_image): Calculate the download speed and ETA based on the
604         last 30 reads, not the entire download.
605         (create_image): Make sure that the ETA is not changed more than
606         once per second.
607
608 2002-04-09  Ian Abbott  <abbotti@mev.co.uk>
609
610         * mswindows.c (borland_utime): New function conditionally defined
611         when `HACK_BCC_UTIME_BUG' is defined.  A reimplementation of
612         `utime()' as Borland's `utime()' function is broken on Windows 9x
613         systems.  (Original patch by Chin-yuan Kuo <sr1111111@yahoo.com.tw>.)
614
615 2002-04-08  Hrvoje Niksic  <hniksic@arsdigita.com>
616
617         * ftp.c (ftp_loop): Propagate the result of ftp_retrieve_glob.
618
619 2002-03-26  Ian Abbott  <abbotti@mev.co.uk>
620
621         * Makefile.in: Updated several dependencies for object files.
622
623 2002-03-20  Ian Abbott  <abbotti@mev.co.uk>
624
625         * mswindows.c: Include "utils.h".
626
627 2002-03-18  Ian Abbott  <abbotti@mev.co.uk>
628
629         * host.h: Don't include netdb.h on windows.
630
631 2002-02-19  Hrvoje Niksic  <hniksic@arsdigita.com>
632
633         * recur.c (retrieve_tree): Handle the case when start_url doesn't
634         parse.
635
636 2002-02-19  Andreas Damm  <andreas-sourceforge@radab.org>
637
638         * wget.h (DO_REALLOC_FROM_ALLOCA): Multiply with sizeof(type) when
639         calling xmalloc and memcpy.
640
641 2002-02-19  Hrvoje Niksic  <hniksic@arsdigita.com>
642
643         * host.h: Include Unix-specific includes #ifndef WINDOWS.
644         Patch originally provided by Christian Lackas.
645
646 2002-02-11  Christian Lackas  <delta@lackas.net>
647
648         * recur.c: recurive downloading for https fixed.
649
650 2002-02-19  Alan Eldridge  <alane@geeksrus.net>
651
652         * host.h: Also include <netinet/in.h> and <sys/socket.h>.
653
654         * ftp-basic.c: Also include <netinet/in.h>.
655
656 2002-02-05  Ian Abbott  <abbotti@mev.co.uk>
657
658         * http.c (gethttp): when -c used, mark already fully retrieved
659         file as successfully retrieved.
660
661 2002-02-19  Hrvoje Niksic  <hniksic@arsdigita.com>
662
663         * url.c (url_parse): Don't treat '?' as query string separator
664         when parsing FTP URLs.
665
666 2002-02-01  Hrvoje Niksic  <hniksic@arsdigita.com>
667
668         * html-url.c (tag_handle_meta): Don't crash on <meta
669         http-equiv=refresh> where content is missing.
670
671 2002-01-31  Herold Heiko  <Heiko.Herold@previnet.it>
672
673         * ftp-basic.c, host.c: don't include sys/socket.h, arpa/inet.h,
674         netdb.h on windows.
675
676 2002-01-30  Hrvoje Niksic  <hniksic@arsdigita.com>
677
678         * retr.c (retrieve_url): Remove redirection cycle detection.  This
679         is because some sites legitimately redirect the user back to the
680         same location, e.g. after an authorization check performed by
681         another page.  MAX_REDIRECTIONS is still used to prevent infinite
682         redirection loops.
683
684 2002-01-26  Hrvoje Niksic  <hniksic@arsdigita.com>
685
686         * http.c (gethttp): Wrap host name in square brackets if it
687         contains a colon.
688
689 2002-01-26  Hrvoje Niksic  <hniksic@arsdigita.com>
690
691         * url.c (url_parse): Allow all hex digits, not only decimal ones,
692         to form an IP address.
693
694 2002-01-26  Hrvoje Niksic  <hniksic@arsdigita.com>
695
696         * url.c (urlchr_table): Make square braces reserved, so we can
697         parse http://[::1]/.
698         (url_parse): Handle host in braces.
699         (url_string): If url->host contains colons, wrap it in braces.
700
701 2002-01-24  Hrvoje Niksic  <hniksic@arsdigita.com>
702
703         * connect.c (resolve_bind_address): New function.
704         (connect_to_one): Use it.
705         (bindport): Ditto.
706
707         * init.c: Don't resolve bind-address here.
708
709         * host.c (wget_sockaddr_set_address): Would bug out with ADDR == NULL.
710
711 2002-01-24  Hrvoje Niksic  <hniksic@arsdigita.com>
712
713         * host.c (lookup_host): Use sizeof(ip4_address) to calculate the
714         offset.
715         (address_list_new): Use map_ipv4_to_ip.
716         (wget_sockaddr_set_address): Convert ADDR to IPv4 before using it
717         in IPv4 context.
718
719 2002-01-24  Hrvoje Niksic  <hniksic@arsdigita.com>
720
721         * source: Integrated IPv6 support.
722         Written by Thomas Lussnig <thomas.lussnig@bewegungsmelder.de>.
723
724 2002-01-15  Ian Abbott  <abbotti@mev.co.uk>
725
726         * init.c (cmd_file): Change `\' to `/' for Windows (yes, really!)
727         (cmd_directory): New function. Like cmd_file(), but strips
728         trailing directory separators.
729         (commands): Change action for "dirprefix" from `cmd_file' to
730         `cmd_directory'.
731
732         * utils.c (make_directory): Allow intermediate `mkdir' calls to
733         fail, as not all path components that do not exist should be
734         directory components, especially under Windows.
735
736 2002-01-17  Hrvoje Niksic  <hniksic@arsdigita.com>
737
738         * netrc.c (parse_netrc): Skip leading whitespace before testing
739         whether the line is empty.  Empty lines still contain the line
740         terminator.
741
742 2002-01-15  Hrvoje Niksic  <hniksic@arsdigita.com>
743
744         * gen_sslfunc.c (ssl_iread): Call select on the file descriptor
745         only if no data is pending in SSL buffers.
746         From tony@bluetail.com.
747
748 2002-01-14  Hrvoje Niksic  <hniksic@arsdigita.com>
749
750         * headers.c (header_get): Strip trailing whitespace from the
751         header.
752
753 2002-01-14  Hrvoje Niksic  <hniksic@arsdigita.com>
754
755         * url.c (parse_uname): URL-decode *USER and *PASSWD.
756
757 2002-01-07  Ian Abbott <abbotti@mev.co.uk>
758
759         * url.c (uri_merge_1): Deal with "net path" relative URL (one that
760         starts with "//").
761
762 2002-01-14  Hrvoje Niksic  <hniksic@arsdigita.com>
763
764         * http.c (gethttp): Invalidate SOCK if get_contents encountered an
765         error.
766
767 2001-12-24  Hrvoje Niksic  <hniksic@arsdigita.com>
768
769         * version.c: Wget 1.8.1 is released.
770
771 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
772
773         * version.c: Wget 1.8.1-pre3 is released.
774
775 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
776
777         * recur.c (retrieve_tree): Enqueue the canonical representation of
778         start_url, so that the test against dl_url_file_map works.
779
780 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
781
782         * log.c (logputs): Check for requested verbosity before printing
783         anything.
784
785 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
786
787         * html-url.c (tag_handle_link): Treat the "shortcut icon" link as
788         inline.
789
790 2001-12-18  Hrvoje Niksic  <hniksic@arsdigita.com>
791
792         * recur.c (retrieve_tree): Make a copy of file obtained from
793         dl_url_file_map because the code calls xfree(file) later.
794
795 2001-12-18  Hrvoje Niksic  <hniksic@arsdigita.com>
796
797         * recur.c (register_html): Maintain a hash table of HTML files
798         along with the list.  Disallow duplicates.
799         (retrieve_tree): Use downloaded_html_set to check whether the file
800         found in dl_url_file_map is an HTML file, and descend into it if
801         so.
802         (convert_all_links): Don't guard against duplicates in
803         downloaded_html_list, since they are no longer possible.
804
805 2001-12-18  Ian Abbott  <abbotti@mev.co.uk>
806
807         * recur.c (retrieve_tree): Pass on referring URL when retrieving
808         recursed URL.
809
810 2001-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
811
812         * version.c: Wget 1.8.1-pre2 is released.
813
814 2001-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
815
816         * retr.c (sleep_between_retrievals): Simplify indentation.
817
818 2001-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
819
820         * gen_sslfunc.c (ssl_init_prng): Use random_number to get a byte
821         of "randomness" at a time.
822         (ssl_init_prng): Don't seed the PRNG; random_number will do that.
823
824         * retr.c (sleep_between_retrievals): Use it.  Make sure that the
825         random amount averages in opt.wait.
826         (sleep_between_retrievals): Don't seed the PRNG; random_number
827         will do that.
828
829         * utils.c (random_number): New function.
830
831 2001-12-14  Hrvoje Niksic  <hniksic@arsdigita.com>
832
833         * url.c (path_simplify): Move here from utils.c, and make static.
834
835 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
836
837         * init.c (wgetrc_file_name): Print correct message when loading
838         getenv("WGETRC") fails.
839
840 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
841
842         * recur.c (register_download): Don't abort when one URL references
843         two different files.
844
845 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
846
847         * http.c (gethttp): Check for conn->scheme, not u->scheme, before
848         calling ssl_iwrite.
849
850 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
851
852         * version.c: Wget 1.8.1-pre1 is released.
853
854 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
855
856         * res.c (matches): Fix broken URL in the docstring.
857
858 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
859
860         * html-url.c (tag_url_attributes): Mark <embed href=...> as
861         external.
862
863 2001-12-12  Hrvoje Niksic  <hniksic@arsdigita.com>
864
865         * url.c (get_urls_file): Cosmetic changes.
866
867 2001-12-12  Hrvoje Niksic  <hniksic@arsdigita.com>
868
869         * html-url.c (append_one_url): Resurrect warning when unable to
870         resolve a relative link.
871
872 2001-12-12  Hrvoje Niksic  <hniksic@arsdigita.com>
873
874         * html-url.c (collect_tags_mapper): Break into several functions.
875         (tag_url_attributes): Collect <embed href=...>.
876
877 2001-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
878
879         * host.c: New type ipv4_address.  Use it consistently instead of
880         `unsigned char[4]' and `unsigned char *'.
881         (pretty_print_address): Accept a `const void *', to require even
882         less casting.
883
884 2001-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
885
886         * ftp-ls.c (ftp_parse_vms_ls): Fix obvious memory leaks.
887
888 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
889
890         * main.c (main): Initialize progress after fork_to_background, so
891         that it knows when to use dots.
892
893         * mswindows.c (ws_hangup): Call log_request_redirect_output.
894
895         * utils.c (fork_to_background): Print the PID of the child
896         process.
897
898         * log.c (log_request_redirect_output): Set a flag that output
899         redirection has been requested.  Doing anything else in a signal
900         handler is unsafe.
901         (check_redirect_output): New function: check whether redirection
902         has been requested and, if so, call redirect_output().
903         (logputs): Call check_redirect_output.
904         (logprintf): Ditto.
905         (debug_logprintf): Ditto.
906         (redirect_output): Print clearer messages.
907
908         * main.c (redirect_output_signal): Don't call
909         redirect_output_signal directly.  Instead, call
910         log_request_redirect_output.
911
912         * utils.c (memfatal): Ditto.
913
914         * progress.c (display_image): Use it.
915
916         * log.c (log_set_save_context): New function: allow the caller to
917         turn off saving log context lines.
918
919 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
920
921         * host.c (address_list_set_faulty): Uncomment a sanity check.
922
923 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
924
925         * utils.c (long_to_string): Return a pointer after where the
926         number ends.
927         (long_to_string): Rename to number_to_string.
928
929 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
930
931         * utils.c (path_simplify): Correctly handle the unlikely case that
932         b starts out as path + 1.
933
934 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
935
936         * utils.c (path_simplify): Rewrite, with better comments, and
937         without the use of strcpy to move overlapping blocks.
938
939 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
940
941         * init.c (cmd_spec_progress): Resurrect.  Check whether VAL is a
942         valid progress type before setting it.
943
944 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
945
946         * main.c (main): Remove stray debugging message.
947
948 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
949
950         * progress.c (create_image): Fix ETA padding when hours are prined.
951
952 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
953
954         * version.c: Wget 1.8 is released.
955
956 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
957
958         * url.c (reencode_string): Declare static.
959
960         * res.c (registered_specs): Declare static.
961
962         * progress.c (current_impl_locked): Declare static.
963
964         * log.c (flush_log_p): Declare static.
965         (needs_flushing): Ditto.
966
967         * http.c (digest_authentication_encode): Declare static.
968
969         * html-url.c (init_interesting): Declare static.
970
971         * host.c (host_name_addresses_map): Declare static.
972
973         * cookies.c (find_matching_chains): Declare static.
974
975         * ftp-ls.c (ftp_parse_vms_ls): Warn about the memory leak
976         indicated by lint.
977
978         * utils.c (path_simplify): Remove unused variable STUB_CHAR.
979
980         * host.c (address_list_set_faulty): Document that INDEX is
981         currently unused.
982
983         * url.c (rewrite_shorthand_url): Remove unused variable PATH.
984
985 2001-12-08  Hrvoje Niksic  <hniksic@arsdigita.com>
986
987         * version.c: Wget 1.8-pre2 is released.
988
989 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
990
991         * progress.c (progress_handle_sigwinch): Set up the signal again.
992
993         * utils.c: Include <sys/termios.h>, where Solaris defines
994         TIOCGWINSZ.
995
996         * progress.c (bar_create): Don't use the last column on the screen.
997         (create_image): Pad ETA to constant size.  Pad SIZE to nine digits
998         only until it exceeded them.
999
1000 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1001
1002         * version.c: Wget 1.8-pre1 is released.
1003
1004 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1005
1006         * progress.c (progress_create): Make sure that, when the output is
1007         redirected, the progress implementation gets changed to the
1008         fallback one.
1009         (bar_set_params): Set current_impl_locked to 1 when "force" is
1010         specified.
1011         (progress_create): Don't change the progress implementation if
1012         current_impl_locked is non-zero.
1013
1014         * main.c (redirect_output_signal): Call
1015         progress_schedule_redirect.
1016
1017         * progress.c (progress_schedule_redirect): New function.
1018
1019 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1020
1021         * log.c (logvprintf): Restructure to allow being called multiple
1022         times.
1023         (logprintf): Call logvprintf in a loop.
1024         (debug_logprintf): Ditto.
1025
1026 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1027
1028         * gen_sslfunc.c (ssl_init_prng): Allow the user to disable EGD by
1029         setting egd_file it to empty string.
1030
1031         * main.c (main): Change the option name from --sslegdsock to
1032         --egd-file.
1033
1034 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1035
1036         * gen_sslfunc.c (ssl_init_prng): Make the printed message
1037         translatable.
1038
1039 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1040
1041         * url.c (scheme_disable): New function.
1042
1043         * main.c (main): Call ssl_init_prng from here rather than from
1044         init_ssl, so that it has a chance to disable support for https
1045         before a URL has been resolved.
1046
1047         * gen_sslfunc.c (ssl_init_prng): Seed with rand() if all else
1048         failed.
1049         (ssl_init_prng): Disable support for https if seeding the PRNG
1050         fails.
1051
1052 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1053
1054         * utils.c (read_whole_line): Handle lines beginning with \0.
1055
1056 2001-12-05  Hrvoje Niksic  <hniksic@arsdigita.com>
1057
1058         * recur.c (convert_all_links): Guard against duplicates in
1059         downloaded_html_files.
1060         (register_download): Don't invalidate similar-looking URLs.
1061         (match_except_index): New function.
1062
1063 2001-12-05  Hrvoje Niksic  <hniksic@arsdigita.com>
1064
1065         * utils.c (path_simplify): Document with test cases.
1066
1067 2001-12-04  Hrvoje Niksic  <hniksic@arsdigita.com>
1068
1069         * gen_sslfunc.c: Ditto.
1070
1071         * rbuf.c: Include <string.h>.
1072
1073 2001-12-04  Hrvoje Niksic  <hniksic@arsdigita.com>
1074
1075         * recur.c (retrieve_tree): Check whether the URL was already
1076         downloaded before downloading it again.
1077         (descend_child_p): Renamed to download_child_p.
1078         (register_download): When one URL is downloaded to a file already
1079         "owned" by another URL, delete all references that map any URL to
1080         that file.
1081         (register_delete_file): New function.
1082         (retrieve_tree): Use it after deleting a file.
1083
1084         * url.c (url_parse): Re-canonicalize the URL also if the path is
1085         empty, so that e.g. "http://www.server.com" ->
1086         "http://www.server.com/".
1087         (lowercase_str): Use ISUPPER instead of !ISLOWER.
1088
1089         * retr.c (retrieve_url): Use the canonical URL form when calling
1090         register_download().
1091
1092 2001-12-04  Ian Abbott <abbotti@mev.co.uk>
1093
1094         * snprintf.c (dopr): Use `unsigned int' as the second argument to
1095         va_arg when casting to `unsigned short' is intended.
1096
1097 2001-12-04  Herold Heiko  <Heiko.Herold@previnet.it>
1098
1099         * gen_sslfunc.c: on windows provide ssl crypto random 
1100           initialization through RAND_screen(); could possibly
1101           be not enough for strong ssl communication (see the 
1102           relevant manual page from the openssl package).
1103
1104 2001-12-04  Hrvoje Niksic  <hniksic@arsdigita.com>
1105
1106         * url.c (local_quote_string): Reenable quoting of question marks,
1107         but only when `--html-extension' is used.
1108
1109 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1110
1111         * version.c: Wget 1.8-beta3 is released.
1112
1113 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1114
1115         * snprintf.c (dopr): Cast the result of va_arg to short int and
1116         short unsigned int where these types are expected to be used.
1117
1118 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1119
1120         * snprintf.c (dopr): Replace `short int' and `unsigned short int'
1121         with `int' when using it as the second argument to `va_arg'.
1122
1123 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1124
1125         * host.c (address_list_new_one): New function.
1126         (lookup_host): Use it.
1127
1128 2001-12-03  Andre Majorel  <amajorel@teaser.fr>
1129
1130         * host.c (lookup_host): Don't initialize TMPSTORE directly because
1131         it's not legal C.
1132
1133 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1134
1135         * ftp-basic.c (ftp_port): Don't return HOSTERR if we fail getting
1136         the socket data.
1137
1138         * ftp.c: Ditto.
1139
1140         * http.c: No need to declare h_errno.
1141
1142         * host.c: Declare h_errno.
1143
1144 2001-12-02  Hrvoje Niksic  <hniksic@arsdigita.com>
1145
1146         * utils.c (file_merge): If BASE doesn't contain a slash, just
1147         return a copy of FILE.
1148
1149 2001-12-02  Hrvoje Niksic  <hniksic@arsdigita.com>
1150
1151         * version.c: Wget 1.8-beta2 is released.
1152
1153 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1154
1155         * ftp.c (getftp): When PWD fails, assume "/".
1156
1157         * ftp-basic.c (ftp_syst): Fix indentation.
1158
1159 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1160
1161         * url.c (get_urls_file): If opt.base_href is specified, merge each
1162         URL with the base.
1163
1164 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1165
1166         * main.c (print_help): Don't document the removed `-nh'.
1167
1168 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1169
1170         * url.c (url_full_path): Document better.
1171
1172         * http.c (gethttp): Use the full path when creating digest
1173         authorization.
1174
1175 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1176
1177         * cookies.c (path_matches): Return 0 if PREFIX doesn't begin with
1178         '/'.
1179
1180 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1181
1182         * cookies.c (path_matches): FULL_PATH doesn't begin with '/', but
1183         PREFIX does.
1184
1185 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1186
1187         * cookies.c (check_domain_match): Reimplement to match Netscape's
1188         "preliminary specification" for cookies.
1189
1190 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1191
1192         * url.c (replace_attr_refresh_hack): New function.
1193         (convert_links): Call replace_attr_refresh_hack for Refresh
1194         links.  It will add the "TMOUT; URL=" junk before the link.
1195
1196         * html-url.c (collect_tags_mapper): Set ID to the ID of the
1197         "content" attribute, not "http-equiv".
1198         (collect_tags_mapper): Don't use OFFSET to hack the raw_* values;
1199         instead, store the information that this entry belongs to a
1200         "refresh" link.
1201
1202 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1203
1204         * version.c: Wget 1.8-beta1 is released.
1205
1206 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1207
1208         * recur.c (retrieve_tree): Allow -p retrievals to exceed maximum
1209         depth by more than one.
1210
1211 2001-11-30  Hrvoje Niksic  <hniksic@arsdigita.com>
1212
1213         * retr.c (retrieve_url): Don't allow more than 20 redirections.
1214
1215 2001-11-30  Hrvoje Niksic  <hniksic@arsdigita.com>
1216
1217         * recur.c (retrieve_tree): Skip the non-inline entries when
1218         enqueuing the children of a leaf HTML node in -p mode.
1219         (descend_url_p): Ignore opt.no_parent when in -p mode and UPOS is
1220         "inline".
1221
1222         * html-url.c (get_urls_html): Don't accept dash_p_leaf_HTML.
1223         (collect_tags_mapper): When an entry is "inline", mark it as such.
1224
1225         * recur.c (descend_url_p): Fix test when checking for
1226         acceptance/rejection rules.
1227
1228 2001-10-31 Daniel BODEA <dali@dali-designs.com>
1229
1230         * netrc.c (search_netrc): When slack_default is 0, still look for
1231         an account with matching password, just not the "default account".
1232         HTTP Authorization using .netrc should now work as expected.
1233
1234 2001-11-30  T. Bharath  <TBharath@responsenetworks.com>
1235
1236         * http.c (persistent_available_p): Call SHUTDOWN_SSL if
1237         test_socket_open fails.
1238
1239 2001-11-30  Hrvoje Niksic  <hniksic@arsdigita.com>
1240
1241         * progress.c (display_image): Just print one CR to reset the
1242         cursor position.
1243
1244 2001-11-30  Christian Fraenkel  <c.fraenkel@gmx.net>
1245
1246         * init.c: New command `ssl_egd_sock'.
1247
1248         * main.c (main): New option `--sslegdsock'.
1249
1250         * gen_sslfunc.c (ssl_init_prng): Seed the RNG using EGD.
1251
1252 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1253
1254         * cmpt.c (memmove): Include a simple memmove implementation.
1255
1256 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1257
1258         * headers: Guard against header files being included twice.
1259
1260 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1261
1262         * gen-md5.c: Use unsigned char * as the buffer argument to
1263         gen_md5_update.
1264
1265 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1266
1267         * connect.h: Declare select_fd.
1268
1269 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1270
1271         * recur.c (descend_url_p): When resolving no_parent, compare with
1272         start_url, not parent url.  Otherwise link from /a/b/ to /a/c/
1273         wouldn't be followed, although the download started from /a/.
1274
1275 2001-01-23  Herold Heiko  <Heiko.Herold@previnet.it>
1276
1277         * config.h.ms, mswindows.h: defined HAVE_ISATTY, use _isatty for
1278         MS VC; somebody with Borland compiler please check and provide
1279         patch if possible;
1280
1281         * cmpt.c: provided a usleep emulation.
1282
1283 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1284
1285         * host.c (address_list_new): Initialize al->faulty.
1286
1287 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1288
1289         * http.c (http_process_range): Accept the broken output of
1290         "JavaWebServer/1.1.1".
1291
1292 2001-11-28  Hrvoje Niksic  <hniksic@arsdigita.com>
1293
1294         * progress.c (dot_set_params): If PARAMS is unspecified, use
1295         dot_style, if available.
1296
1297         * init.c: Ditto.
1298
1299         * main.c (main): Resurect --dot-style.
1300
1301         * progress.c (dot_finish): Print the quantity if we're left at the
1302         beginning of a row.
1303
1304 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1305
1306         * cmpt.c (random): Removed.
1307
1308         * retr.c (sleep_between_retrievals): Use the more portable rand()
1309         instead of random().
1310
1311 2001-11-27  Ian Abbott <abbotti@mev.co.uk>
1312
1313         * retr.c (retrieve_from_file): Initialize `new_file' to NULL to
1314         prevent seg fault.
1315
1316 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1317
1318         * connect.c (connect_to_many): Use address_list_set_faulty to
1319         prevent the faulty address from being reused.
1320
1321         * host.c (address_list_set_faulty): New function.
1322         (address_list_get_bounds): New function, instead of
1323         address_list_count.
1324
1325 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1326
1327         * url.c (convert_links): Don't translate %d-%d.
1328
1329         * main.c (print_help): Remove stray HAVE_RANDOM code.
1330
1331 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1332
1333         * ftp.c (getftp): Improve output after sending PASV.  Don't
1334         attempt to "look up" the IP address we already know; call
1335         connect_to_one directly.
1336
1337 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1338
1339         * progress.c: Change the default progress implementation to "bar".
1340
1341 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1342
1343         * progress.c (bar_create): Print two newlines.
1344
1345 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1346
1347         * cmpt.c (random): New function, a simple-minded replacement for
1348         random() on systems that don't have it.
1349
1350 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1351
1352         * config.h.in: Put a HAVE_USLEEP stub.
1353
1354         * cmpt.c (usleep): Replacement implementation of usleep using
1355         select.
1356
1357         * init.c: New option init_rate.
1358
1359         * main.c (main): New option --limit-rate.
1360
1361         * retr.c (limit_bandwidth): New function.
1362         (get_contents): Call it to limit the bandwidth used when
1363         downloading.
1364
1365         * progress.c (dot_update): Would print the wrong download speed on
1366         rows other than the first one when the download was continued.
1367         (dot_finish): Ditto.
1368
1369 2001-11-26  Ian Abbott <abbotti@mev.co.uk>
1370
1371         * http.c (gethttp): fix undeclared variable 'err' when compiled
1372         with HAVE_SSL.
1373
1374 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1375
1376         * progress.c: Don't allocate new timers; use the timing data
1377         propagated from the caller.
1378
1379         * retr.c (get_contents): Allocate and use a timer.
1380
1381 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1382
1383         * http.c (last_host_ip): Made into an address_list.
1384         (invalidate_persistent): Release pc_last_host_ip.
1385         (register_persistent): Use lookup_host.
1386         (persistent_available_p): Check for equality of hosts using
1387         address_list_match_all.  Call address_list_release.
1388         (http_cleanup): New function.
1389
1390         * ftp.c (getftp): Use lookup_host and connect_to_many.
1391
1392         * http.c (gethttp): Use lookup_host and connect_to_many.
1393
1394         * connect.c (make_connection): Removed.
1395         (connect_to_one): New function.
1396         (connect_to_many): Ditto.
1397         (set_connection_host_name): Ditto.
1398
1399         * host.c (lookup_host): New function; new return type.
1400         (address_list_new): New function.
1401         (address_list_count): Ditto.
1402         (address_list_copy_one): Ditto.
1403         (address_list_delete): Ditto.
1404         (address_list_release): Ditto.
1405         (pretty_print_address): Ditto.
1406
1407 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1408
1409         * recur.c (retrieve_tree): In case of followed redirection,
1410         blacklist the pre-redirection URL.
1411
1412 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1413
1414         * recur.c (descend_redirect_p): New function.
1415         (retrieve_tree): Make sure redirections are not blindly followed.
1416
1417 2001-11-04  Alan Eldridge  <alane@geeksrus.net>
1418
1419         * config.h.in: added HAVE_RANDOM.
1420
1421         * options.h: added random_wait to struct options.
1422
1423         * main.c (print_help [HAVE_RANDOM], main): added arg parsing, help
1424         for --random-wait.
1425
1426         * retr.c (sleep_between_retrievals) [HAVE_RANDOM]: added
1427         implementation of random wait times.
1428
1429         * init.c (commands): added "randomwait" keyword.
1430
1431 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
1432
1433         * recur.c (descend_url_p): Be more conservative with blacklisting
1434         URLs.
1435         (convert_all_links): Print how many files have been converted, and
1436         how long it took.
1437
1438         * progress.c (create_image): Place the number of downloaded bytes
1439         right after the progress bar.
1440
1441         * utils.c (suffix): Return a pointer into the string.
1442
1443 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
1444
1445         * url.c (convert_links): Handle CO_NULLIFY_BASE.
1446
1447         * recur.c (retrieve_tree): Ignore download-ignorable children.
1448         (convert_all_links): Specify CO_NULLIFY_BASE when link_base_p.
1449
1450         * html-url.c (handle_link): Return the newly created urlpos.
1451         (collect_tags_mapper): When dealing with BASE, store the base
1452         reference and mark it as download-ignorable.
1453
1454 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
1455
1456         * url.c (convert_links): Attempt to quote '?' as "%3F" when
1457         linking to local files.  Given up on the attempt, as it breaks
1458         local browsing.
1459
1460 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
1461
1462         * main.c (private_initialize): Removed.
1463         (main): Don't call private_initialize.
1464
1465         * http.c: Call lookup_host.
1466
1467         * host.c (host_init): Removed.
1468         (add_host_to_cache): Initialize host_name_address_map here, on
1469         demand.
1470         (ngethostbyname): Commented out.
1471
1472         * connect.c (make_connection): Remove dead code; use lookup_host.
1473
1474         * host.c (store_hostaddress): Renamed to lookup_host and reversed
1475         the args.
1476         Removed host_address_name_map and host_slave_master_map.
1477
1478 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
1479
1480         * progress.c (dot_create): Align the "[ skipping ... ]" string
1481         with the dots.
1482
1483         * retr.c (rate): Split into two functions: calc_rate and
1484         retr_rate.
1485
1486         * progress.c (create_image): Draw a dummy progress bar even when
1487         total size is unknown.
1488         (display_image): Place the text cursor at the end of the "image".
1489
1490 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
1491
1492         * url.c (reencode_string): Use unsigned char, not char --
1493         otherwise the hex digits come out wrong for 8-bit chars such as
1494         nbsp.
1495         (lowercase_str): New function.
1496         (url_parse): Canonicalize u->url if needed.
1497         (get_urls_file): Parse each URL, and return only the valid ones.
1498         (free_urlpos): Call url_free.
1499         (mkstruct): Add :port if the port is non-standard.
1500         (mkstruct): Append the query string to the file name, if any.
1501         (urlpath_length): Use strpbrk_or_eos.
1502         (uri_merge_1): Handle the cases where LINK is an empty string,
1503         where LINK consists only of query, and where LINK consists only of
1504         fragment.
1505         (convert_links): Count and report both kinds of conversion.
1506         (downloaded_file): Use a hash table, not a list.
1507         (downloaded_files_free): Free the hash table.
1508
1509         * retr.c (retrieve_from_file): Ditto.
1510
1511         * main.c (main): Call either retrieve_url or retrieve_tree
1512         for each URL, not both.
1513
1514         * retr.c (register_all_redirections): New function.
1515         (register_redirections_mapper): Ditto.
1516         (retrieve_url): Register the redirections.
1517         (retrieve_url): Make the string "Error parsing proxy ..." 
1518         translatable.
1519
1520         * res.c (add_path): Strip leading slash from robots.txt paths so
1521         that the path representations are "compatible".
1522         (free_specs): Free each individual path, too.
1523         (res_cleanup): New function.
1524         (cleanup_hash_table_mapper): Ditto.
1525
1526         * recur.c (url_queue_new): New function.
1527         (url_queue_delete): Ditto.
1528         (url_enqueue): Ditto.
1529         (url_dequeue): Ditto.
1530         (retrieve_tree): New function, replacement for recursive_retrieve.
1531         (descend_url_p): New function.
1532         (register_redirection): New function.
1533
1534         * progress.c (create_image): Cosmetic changes.
1535
1536         * init.c (cleanup): Do all those complex cleanups only if
1537         DEBUG_MALLOC is defined.
1538
1539         * main.c: Removed --simple-check and the corresponding
1540         simple_host_check in init.c.
1541
1542         * html-url.c (handle_link): Parse the URL here, and propagate the
1543         parsed URL to the caller, who would otherwise have to parse it
1544         again.
1545
1546         * host.c (xstrdup_lower): Moved to utils.c.
1547         (realhost): Removed.
1548         (same_host): Ditto.
1549
1550 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1551
1552         * utils.c (path_simplify): Preserver the (non-)existence of
1553         leading slash.  Return non-zero if changes were made.
1554
1555 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1556
1557         * progress.c (bar_update): Don't modify bp->total_length if it is
1558         zero.
1559
1560 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1561
1562         * retr.c (retrieve_url): When the redirection URL doesn't parse,
1563         print the correct error message rather than "UNKNOWN".
1564
1565 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1566
1567         * progress.c (bar_finish): If the timer didn't record any time
1568         since the download beginning, fake 1ms.
1569
1570 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1571
1572         * recur.c (recursive_retrieve): Fix typo.
1573
1574 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
1575
1576         * progress.c (create_image): Don't translate "%ld ".
1577
1578 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
1579
1580         * progress.c (bar_set_params): Allow the user to force the use of
1581         the bar.
1582
1583 2001-11-23  Lemble Gregory  <gregory.lemble@st.com>
1584
1585         * gen_sslfunc.c (ssl_init_prng): New function; seed the SSL RNG.
1586
1587 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
1588
1589         * progress.c: Renamed dp_* functions to dot_* for greater clarity
1590         and consistency with bar_*.
1591         (print_download_speed): Get rid of the unneeded '@' character.
1592         (create_image): Fix download rate geometry.
1593
1594         * progress.c (print_elapsed): Remove spurious space.
1595         (print_elapsed): Renamed to print_download_speed, since that's
1596         what it does.
1597
1598 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
1599
1600         * progress.c (bar_update): If the downloaded amount becomes larger
1601         than the expected amount, adjust the expected amount accordingly.
1602
1603 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
1604
1605         * utils.c (determine_screen_width): New function.
1606
1607         * main.c (main): New option `--progress=TYPE'.
1608         (main): Implement compatibility with the old option `--dot-style'.
1609
1610         * init.c: Removed cmd_spec_dotstyle -- that logic is now in
1611         dp_set_params.
1612         (cmd_spec_progress): New function.
1613
1614         * retr.c (get_contents): Use the progress_* functions instead of
1615         the old show_progress().
1616         (show_progress): Removed.
1617         (rate): Print "xxxx.xx K/s" instead of "KB/s".  Ditto for MB/s,
1618         etc.
1619
1620         * progress.c (set_progress_implementation): New function.
1621         (valid_progress_implementation_p): Ditto.
1622         (progress_create): Ditto.
1623         (progress_update): Ditto.
1624         (progress_finish): Ditto.
1625         (dp_create): Ditto.
1626         (dp_update): Ditto.
1627         (dp_finish): Ditto.
1628         (dp_set_params): Ditto.
1629         (print_elapsed): Ditto.
1630
1631 2001-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
1632
1633         * retr.c (show_progress): Use it.
1634
1635         * log.c (log_set_flush): New function.
1636
1637 2001-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
1638
1639         * utils.c (path_simplify): Don't remove trailing slashes.
1640
1641         * ftp.c (ftp_get_listing): Use it.
1642
1643         * utils.c (file_merge): New function.
1644
1645         * url.c (opt_url): Removed.
1646
1647         * recur.c (recursive_retrieve): Inline "opt_url" logic.
1648
1649         * main.c (main): Use xfree(), not free().
1650
1651         * url.c (rewrite_url_maybe): Renamed to rewrite_shorthand_url.
1652
1653         * ftp.c (ccon): Move `ccon' typedef here, since it's only used
1654         internally.
1655
1656         * config.h.in: Include a stub for HAVE_STRPBRK.
1657
1658         * cmpt.c (strpbrk): Include a replacement for systems without
1659         strpbrk().
1660
1661         * ftp.c: Use url_set_dir and url_set_file when modifying the URL.
1662
1663         * url.c (url_set_dir): New function.
1664         (url_set_file): Ditto.
1665
1666         * ftp-basic.c (ftp_process_type): Process FTP type here; the URL
1667         parser makes the URL "params" available, so we can do that in this
1668         function.
1669
1670         * retr.c: Ditto.
1671
1672         * ftp.c: Ditto; pass the local file information in `ccon'.
1673
1674         * http.c: Get rid of the ugly kludge that had URL being replaced
1675         with the proxy URL when proxy retrieval was requested.  Use a
1676         separate parameter to http_loop and gethttp for the proxy URL.
1677
1678         * http.c: Changed to reflect the fact that local file, proxy, and
1679         referer information are no longer stored in struct url.  The local
1680         file information is passed in `struct hstat' now.
1681
1682         * url.c: Reworked URL parsing to be more regular.  Reencode the
1683         URL using reencode_string.
1684         Removed non-URL-related information from struct url.  This
1685         includes fields `proxy', `local', and `referer'.
1686
1687 2001-11-22  Jochen Hein  <jochen@jochen.org>
1688
1689         * main.c (main): Split the copyright notice for easier
1690         translation.
1691
1692 2001-08-21  Dave Turner <dct25@hermes.cam.ac.uk>
1693
1694         * ftp-basic.c (ftp_size): New function to send non-standard SIZE
1695           command to server to request file size.
1696         * ftp.h (ftp_size): Export it.
1697         * ftp.c (getftp): Use new ftp_size function if restoring
1698           transfer of a file with unknown size.
1699
1700 2001-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
1701
1702         * url.c (parseurl): Don't depend on the now-obsolete TYPE.
1703
1704 2001-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1705
1706         * url.c (getproxy): Handle URL shorthands.
1707
1708 2001-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1709
1710         * main.c: Remove --wait / --waitretry backwards compatibility
1711         code.
1712         
1713 2001-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1714
1715         * main.c (main): Use it.
1716
1717         * url.c (rewrite_url_maybe): New function.
1718
1719 2001-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1720
1721         * url.c: Clean up handling of URL schemes.
1722
1723 2001-05-13  Hrvoje Niksic  <hniksic@arsdigita.com>
1724
1725         * url.c: Get rid of `protostrings'.
1726         (skip_proto): Don't use protostrings.
1727         (has_proto): Ditto.
1728
1729 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1730
1731         * Makefile.in: Conditionally compile getopt.o.
1732
1733 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1734
1735         * md5.h: Renamed to gnu-md5.h.
1736
1737         * md5.c: Renamed to gnu-md5.c.
1738
1739         * http.c: Ditto.
1740
1741         * ftp-opie.c: Use the new macros.
1742
1743         * sysdep.h: Define md5-related macros.
1744
1745         * config.h.in: Define HAVE_SOLARIS_MD5 or HAVE_BUILTIN_MD5
1746         depending on which md5 implementation is used.
1747
1748 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1749
1750         * res.c (res_register_specs): Initialize OLD and HP_OLD to appease
1751         the compiler.
1752
1753 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1754
1755         * http.c (gethttp): Print the whole response line when printing
1756         headers is requested.
1757
1758 2001-05-12  Hrvoje Niksic  <hniksic@arsdigita.com>
1759
1760         * res.c: New file.  Implement all RES-related code here.
1761
1762 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1763
1764         * version.c: Wget 1.7.1 is released.
1765
1766 2001-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
1767
1768         * headers.c (header_extract_number): Ignore trailing whitespace.
1769
1770 2001-08-24  Ian Abbott  <abbotti@mev.co.uk>
1771
1772         * html-url.c (collect_tags_mapper): Fix bug converting links
1773         with -k option for tags with multiple link attributes by
1774         handling links in the order they appear.
1775
1776 2001-08-15  Ian Abbott  <abbotti@mev.co.uk>
1777
1778         * ftp.c (ftp_loop_internal): Avoid a potential buffer overflow in
1779           the call to the 'rate' function by moving it past the error
1780           checking for the 'getftp' function return value.
1781
1782 2001-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
1783
1784         * html-parse.c (advance_declaration): Use 0x22 instead of '"' or
1785         '\"'.  Different compilers' assert macros are broken in different
1786         ways.
1787
1788 2001-09-29  Christian Fraenkel  <c.fraenkel@gmx.net>
1789
1790         * http.c (gethttp): print debug output for errors occuring during
1791         the ssl handshake.
1792
1793 2001-11-16  Chris Seawood  <cls@seawood.org>
1794
1795         * init.c: Ditto.
1796
1797         * host.c: Ditto.
1798
1799         * connect.c: Ditto.
1800
1801         * sysdep.h: Support compilation under BEOS.
1802
1803 2001-06-08  Edward J. Sabol  <sabol@alderaan.gsfc.nasa.gov>
1804
1805         * url.c (url_equal): Fix a memory leak when parseurl returns an
1806         error on the second URL. Also, since url_equal is not used at the
1807         moment, do not compile it.
1808
1809         * url.h: Ditto for the prototype of url_equal.
1810
1811 2001-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
1812
1813         * html-parse.c (map_html_tags): Support XML-style empty tags.
1814
1815 2001-06-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1816
1817         * wget.h (DO_REALLOC_FROM_ALLOCA): Check for do_realloc_newsize in
1818         loop condition because we're no longer setting SIZEVAR here.
1819
1820 2001-06-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1821
1822         * wget.h (DO_REALLOC_FROM_ALLOCA): Set SIZEVAR after the memcpy()
1823         call because it needs the old value.
1824
1825 2001-06-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1826
1827         * cookies.c (ATTR_NAME_CHAR): Allow almost any character to be in
1828         an attribute name.
1829
1830 2001-06-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1831
1832         * url.c (url_filename): Make sure that slashes that sneak in to
1833         u->file via query string get protected.
1834         (file_name_protect_query_string): New function.
1835
1836 2001-06-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1837
1838         * recur.c (recursive_retrieve): Also check undesirable_urls with
1839         canonicalized URL.
1840
1841 2001-06-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1842
1843         * http.c (gethttp): Search `.netrc' with real host, not the proxy
1844         one.
1845
1846 2001-06-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1847
1848         * sysdep.h (MAP_FAILED): Provide MAP_FAILED for systems that don't
1849         define it.
1850
1851 2001-06-09  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
1852
1853         * ftp.h: Provide correct prototype for ftp_parse_ls().
1854
1855 2001-06-04  Hrvoje Niksic  <hniksic@arsdigita.com>
1856
1857         * version.c: Wget 1.7 is released.
1858
1859 2001-06-03  Karl Eichwalder  <ke@suse.de>
1860
1861         * ftp-ls.c (ftp_parse_ls): Fix typo.
1862
1863 2001-05-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1864
1865         * all: Update copyright information.
1866
1867 2001-05-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1868
1869         * http.c (gethttp): Indicate that the continued download failed
1870         for *this* file.
1871
1872 2001-05-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1873
1874         * version.c: Wget 1.7-pre1 is released.
1875
1876 2001-05-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1877
1878         * version.c: Updated version to 1.7-pre1.
1879
1880 2001-05-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1881
1882         * gen_sslfunc.c: Don't include <sys/time.h> directly.
1883
1884 2001-05-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1885
1886         * http.c (gethttp): Use real URL data for cookies, not the proxy
1887         stuff.
1888
1889 2001-05-12  Hrvoje Niksic  <hniksic@arsdigita.com>
1890
1891         * main.c (print_help): Document `--no-http-keep-alive'.
1892
1893         * utils.c (numdigit): Handle negative numbers *correctly*.
1894
1895         * hash.c (make_nocase_string_hash_table): Use term "nocase" rather
1896         than the confusing "unsigned".
1897
1898         * utils.c (string_set_contains): Renamed from string_set_exists.
1899
1900         * hash.c (hash_table_contains): Renamed from hash_table_exists.
1901
1902         * cookies.c: Move case-insensitive hash tables to hash.c.
1903
1904 2001-05-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1905
1906         * http.c (gethttp): Before concluding that the file is already
1907         fully retrieved, make sure that the file existed and `Range' was
1908         actually requested.
1909
1910 2001-05-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1911
1912         * cookies.c (eliminate_dups): New function.
1913         (build_cookies_request): Use it.
1914         (build_cookies_request): Set chain_store_size after reallocating
1915         all_chains.
1916         (check_domain_match): Annotated for easier future debugging.
1917         (store_cookie): In the debug message, print whether the cookie is
1918         permanent.
1919
1920 2001-05-08  Hrvoje Niksic  <hniksic@arsdigita.com>
1921
1922         * http.c (http_loop): Reset no_truncate before deciding whether to
1923         set it.
1924         (gethttp): Further clarify "-c conflicts with existing file" error
1925         message, based on input from Herold Heiko.
1926
1927 2001-05-07  Hrvoje Niksic  <hniksic@arsdigita.com>
1928
1929         * http.c (http_loop): If restval is set, set no_truncate to 1
1930         unconditionally.
1931
1932 2001-05-02  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
1933
1934         * ftp-ls.c (ftp_parse_winnt_ls): Assure months are being correctly
1935         converted. Pointed out by <Stefan.Weil@de.heidelberg.com>.
1936         (ftp_parse_vms_ls): Ditto.
1937
1938 2001-04-30  Hrvoje Niksic  <hniksic@arsdigita.com>
1939
1940         * init.c (cmd_address): Zero SIN before using it; apparently
1941         needed on *BSD.
1942
1943 2001-04-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1944
1945         * ftp.c (ftp_loop_internal): Don't set NO_TRUNCATE if the file is
1946         empty.
1947
1948 2001-04-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1949
1950         * main.c (main): Make `--cookies' respect its argument.
1951
1952 2001-04-28  Hrvoje Niksic  <hniksic@arsdigita.com>
1953
1954         * main.c (main): Removed undocumented option `--email-address'.
1955
1956         * netrc.c: Use the latest read_whole_line.
1957
1958         * init.c (defaults): Set opt.ftp_pass to "-wget@".
1959
1960         * mswindows.c (pwd_cuserid): Ditto.
1961
1962         * utils.c (pwd_cuserid): Removed.
1963
1964         * host.c (ftp_getaddress): Removed.
1965
1966 2001-04-28  Hrvoje Niksic  <hniksic@arsdigita.com>
1967
1968         (http_loop): Allocate space for filename_plus_orig_suffix with
1969         alloca; this is more efficient and removes the need to free it
1970         before each and every return.
1971
1972 2001-04-28  Hrvoje Niksic  <hniksic@arsdigita.com>
1973
1974         * http.c (gethttp): Return RETRUNNEEDED when the retrieval is
1975         unneeded because the file is already there and fully downloaded,
1976         and -c is specified.
1977         (http_loop): Handle RETRUNNEEDED.
1978
1979         * wget.h (uerr_t): New value RETRUNNEEDED.
1980
1981         * http.c (http_loop): Set no_truncate for files that both exist
1982         and are non-empty.
1983         (gethttp): Consider the download finished when restval >= contlen,
1984         not only when restval==contlen.
1985         (gethttp): Handle redirection before giving up due to -c.
1986         (gethttp): Clarify error message which explains that -c will not
1987         truncate the file.
1988         (gethttp): When returning CONTNOTSUPPORTED, don't forget to free
1989         the stuff that needs freeing and release the socket.
1990
1991 2001-04-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1992
1993         * main.c (print_help): Wget booleans accept "off", not "no".
1994
1995 2001-04-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1996
1997         * http.c (http_loop): If allow_cache is zero, always disable
1998         caching, not only when retrieving through proxy.
1999
2000         * init.c: Ditto.
2001
2002         * options.h (struct options): Rename proxy_cache to allow_cache.
2003
2004 2001-04-27  Hrvoje Niksic  <hniksic@arsdigita.com>
2005
2006         * http.c (mktime_from_utc): Improve documentation.
2007         (http_atotm): Put format strings into a separate array.
2008
2009 2001-04-27  Hrvoje Niksic  <hniksic@arsdigita.com>
2010
2011         * safe-ctype.h: Instead of throwing #error when isalpha is
2012         defined, redefine it to something that will throw a compile-time
2013         error if actually *used*.  Do the same for the rest of the
2014         standard C macros.
2015
2016 2001-04-26  Hrvoje Niksic  <hniksic@arsdigita.com>
2017
2018         * url.c (getproxy): Ignore empty proxy vars.
2019
2020 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2021
2022         * http.c (http_loop): Would load cookies every time.
2023
2024         * cookies.c (load_cookies): Handle cookies whose values contain
2025         embedded spaces.
2026
2027 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2028
2029         * utils.c: Define each DIGITS_* in one line.
2030
2031 2001-04-25  Roger L. Beeman  <beeman@cisco.com>
2032
2033         * http.c (http_atotm): Initialize t.tm_isdst to 0.
2034         (mktime_from_utc): Prevent mktime() from having discontinuities at
2035         DST transition points.
2036
2037 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2038
2039         * html-url.c (get_urls_html): Fix documentation.
2040
2041 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2042
2043         * url.c (UNSAFE_CHAR): Reimplement using a static table.
2044         (url_init): Removed.
2045         (init_unsafe_char_table): Removed.
2046
2047 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2048
2049         * snprintf.c (dopr): Replace ISDIGIT with '0' <= ch && ch <= '9'.
2050
2051 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2052
2053         * utils.c: Document timer functions.
2054
2055         * retr.c (rate): Use it.
2056         (rate): Print in GB/s if transfer rate exceeds 1 GB/s.
2057
2058         * utils.c (wtimer_granularity): New function.
2059
2060 2001-04-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2061
2062         * retr.c (show_progress): Ditto.
2063
2064         * ftp.c (getftp): Ditto.
2065
2066         * http.c (gethttp): Use new timer functions.
2067
2068         * utils.c (wtimer_allocate): New function.
2069         (wtimer_new): Ditto.
2070         (wtimer_delete): Ditto.
2071         (wtimer_reset): Ditto.
2072         (wtimer_elapsed): Ditto.
2073
2074 2001-04-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2075
2076         * utils.c (long_to_string): New, faster version.  Favors smaller
2077         numbers; much of the calculation is now done at compile-time.
2078
2079 2001-04-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2080
2081         * utils.c (numdigit): Handle negative numbers.
2082
2083 2001-04-23  Hrvoje Niksic  <hniksic@arsdigita.com>
2084
2085         * retr.c (show_progress): Print the download rate even when the
2086         percentages are not available.
2087
2088 2001-04-21  Hrvoje Niksic  <hniksic@arsdigita.com>
2089
2090         * ftp.c (getftp): Adjust expected_bytes if the length is
2091         authoritative.
2092
2093 2001-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
2094
2095         * url.c: Don't declare `construct'.
2096
2097         * hash.c (grow_hash_table): Speed up rehashing; inline storing of
2098         mappings to new locations.
2099         (hash_table_new): Make resize_threshold a field in the hash table,
2100         so we don't have to recalculate it in each hash_table_put.
2101         (grow_hash_table): Update resize_threshold.
2102         (MAX): Remove unused macro.
2103         (prime_size): Made static.
2104
2105 2001-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
2106
2107         * retr.c (retrieve_url): Call uri_merge, not url_concat.
2108
2109         * html-url.c (collect_tags_mapper): Call uri_merge, not
2110         url_concat.
2111
2112         * url.c (mkstruct): Use encode_string instead of xstrdup followed
2113         by URL_CLEANSE.
2114         (path_simplify_with_kludge): Deleted.
2115         (contains_unsafe): Deleted.
2116         (construct): Renamed to uri_merge_1.
2117         (url_concat): Renamed to uri_merge.
2118
2119 2001-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2120
2121         * url.c (str_url): Use encode_string instead of the unnecessary
2122         CLEANDUP.
2123         (encode_string_maybe): New function, returns input string if no
2124         encoding is needed.
2125         (encode_string): Call encode_string_maybe to do the dirty work,
2126         xstrdup if no work needed.
2127
2128 2001-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2129
2130         * wget.h (XDIGIT_TO_xchar): Define here.
2131
2132         * url.c (decode_string): Use new name.
2133         (encode_string): Ditto.
2134
2135         * http.c (XDIGIT_TO_xchar): Rename HEXD2asc to XDIGIT_TO_xchar.
2136         (dump_hash): Use new name.
2137
2138         * wget.h: Rename ASC2HEXD and HEXD2ASC to XCHAR_TO_XDIGIT and
2139         XDIGIT_TO_XCHAR respectively.
2140
2141 2001-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2142
2143         * init.c: Include cookies.h.
2144
2145         * cookies.h: Declare cookies_cleanup.
2146
2147         * cookies.c (check_domain_match): Remove unused variable.
2148         (save_cookies): Remove extraneous argument from debug statement.
2149
2150         * host.c (same_host): Don't call skip_url.
2151
2152         * url.c (skip_url): Removed.  Removed its calls from various
2153         functions in url.c.
2154
2155 2001-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2156
2157         * cookies.c (unsigned_string_hash): Use the new code in
2158         string_hash as reference.
2159
2160         * hash.c (hash_table_map): Allow deletion and change of the
2161         element processed by MAPFUN.
2162         (string_hash): Use the function from glib.
2163
2164 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2165
2166         * config.h.in: Include #undef stub.
2167
2168         * hash.c (hash_table_remove): Rewrite to actually clear deleted
2169         entries instead of just marking them as deleted.
2170
2171 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2172
2173         * hash.h: Declare hash_table_get_pair and hash_table_count.
2174
2175 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2176
2177         * cookies.c: Declare http_atotm.
2178
2179 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2180
2181         * ftp-ls.c (ftp_parse_unix_ls): Use octal constants for
2182         permissions.  A compiler that doesn't accept octal constants is
2183         seriously broken and shouldn't be used -- octal constants were
2184         present in K&R C!
2185
2186 2001-01-20  Karl Eichwalder  <ke@suse.de>
2187
2188         * Makefile.in: Provide and use DESTDIR according to the Coding
2189         Standards.
2190
2191 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2192
2193         * ftp-ls.c (ftp_parse_vms_ls): Make seconds optional in time
2194         specification.
2195
2196 2001-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2197
2198         * url.c (parseurl): Don't strip trailing slash when u->dir is "/"
2199         because that strips the *leading* slash, thus forcing relative
2200         FTP retrieval.
2201
2202 2001-04-10  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2203
2204         * ftp.c (getftp): Convert initial FTP directory from VMS to UNIX
2205         notation for VMS servers. 
2206         (ftp_retrieve_dirs): Do not prepend '/' to f->name when
2207         odir is an empty string.
2208
2209 2001-04-10  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2210
2211         * ftp-ls.c (ftp_parse_winnt_ls): Made the fix for AM/PM more
2212         effective. Suggested by Edward J. Sabol.
2213
2214 2001-04-10  Hrvoje Niksic  <hniksic@arsdigita.com>
2215
2216         * cookies.c (build_cookies_request): Use and sort cookies from all
2217         matching domains.
2218         (build_cookies_request): Check for duplicates before generating
2219         the `Cookies' header.
2220
2221         * main.c (main): Don't load cookies here.
2222         (main): Make loadcookies and savecookies call the correct command.
2223
2224         * http.c (http_loop): Load cookies on-demand.
2225
2226 2001-04-09  Hrvoje Niksic  <hniksic@arsdigita.com>
2227
2228         * http.c (gethttp): Fix indentation of SSL ifdef.
2229
2230 2001-04-09  Hrvoje Niksic  <hniksic@arsdigita.com>
2231
2232         * ftp.c (ftp_retrieve_dirs): Don't forcibly prepend "/" to u->dir;
2233         that hack is no longer necessary.
2234         (getftp): Prepend initial directory to *non*-absolute u->dir's.
2235
2236 2001-04-09  Hrvoje Niksic  <hniksic@arsdigita.com>
2237
2238         * init.c (cmd_file): New function.
2239         (enable_tilde_expansion): New variable.
2240         (run_wgetrc): Use it.
2241         (cmd_file): Use it.
2242
2243 2001-04-08  Hrvoje Niksic  <hniksic@arsdigita.com>
2244
2245         * init.c: Include cookie-related options.
2246
2247         * main.c (main): Include cookie-specific options.
2248         (main): Load cookies before download is finished.
2249         (main): Save cookies when done.
2250
2251         * http.c (gethttp): Process the `Set-Cookie' header.
2252         (gethttp): Include cookies in the response.
2253
2254         * cookies.c: New file.
2255
2256 2001-04-08  Hrvoje Niksic  <hniksic@arsdigita.com>
2257
2258         * utils.c (datetime_str): New function.
2259
2260 2001-04-08  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2261
2262         * ftp-ls.c (ftp_parse_winnt_ls): The AM/PM change did assume
2263         12:01PM == 00:01, which was obviously wrong. Taken care of this
2264         anomaly.
2265
2266         * ChangeLog: Removed an excess conflict marker. Reformatted the
2267         entry by Philipp Thomas from 2001-03-09.
2268
2269         * ftp-ls.c (ftp_parse_winnt_ls): Ensure that adjusted PM hours lay
2270         between 0 and 23. Elminate unused variable `sec'.
2271
2272 2001-04-08  Hrvoje Niksic  <hniksic@arsdigita.com>
2273
2274         * hash.c (hash_table_count): New function.
2275
2276 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2277
2278         * utils.c (read_file): Cast MAP_FAILED to char *.  Enforced by
2279         Digital Unix cc.
2280
2281 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2282
2283         * config.h.in: Oops, do the namespace tweaks only on systems we
2284         know about.
2285
2286 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2287
2288         * hash.c: Include <string.h>.
2289
2290 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2291
2292         * config.h.in: Define "compilation environment" options that work
2293         under Linux and Solaris.  To be reviewed on other OS'es.
2294
2295 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2296
2297         * http.c (gethttp): Prepend literal newline with `\n\'.
2298
2299 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2300
2301         * sysdep.h: Don't define VERY_LONG_FORMAT.
2302
2303         * utils.c (very_long_to_string): New function.
2304         (legible_very_long): Use it; don't use VERY_LONG_FORMAT.
2305
2306 2001-04-04  Christian Fraenkel  <christian.fraenkel@gmx.net>
2307
2308         * url.c (parse_uname): Would run past the end of the string if the
2309         username was present, but the URL did not contain a slash, e.g.
2310         http://foo:bar@myhost.
2311
2312 2001-04-03  KOJIMA Hajime  <kjm@rins.ryukoku.ac.jp>
2313
2314         * http.c (http_atotm): Use %A instead of %a to match full
2315         weekday.  (On most systems there is no difference.)
2316
2317 2001-04-03  Paul Bludov  <paul@ozero.net>
2318
2319         * mswindows.c (sleep): Use SleepEx() instead of Sleep().
2320         (ws_changetitle): Use alloca() instead of malloc() to avoid memory
2321         leak.
2322         (ws_mypath): Use GetModuleFileName instead of argv[0].
2323         (ws_startup): Use data.wVersion for comparison.
2324
2325 2001-04-02  Hrvoje Niksic  <hniksic@arsdigita.com>
2326
2327         * http.c (http_loop): Ditto.
2328
2329         * ftp.c (ftp_loop_internal): Made the check whether to continue
2330         retrieval `-O'-friendly.
2331
2332 2001-04-02  Hrvoje Niksic  <hniksic@arsdigita.com>
2333
2334         * netrc.c (parse_netrc): Don't trim the line endings explicitly;
2335         they will be handled as whitespace.
2336         (parse_netrc): Correctly handle lines that end with whitespace.
2337
2338 2001-04-02  Hrvoje Niksic  <hniksic@arsdigita.com>
2339
2340         * retr.c (retrieve_url): New variable global_download_count used
2341         to identify first retrieval.
2342
2343         * ftp.c (getftp): Ditto.
2344
2345         * http.c (gethttp): Rewind opt.dfp only on first retrieval.
2346
2347 2001-04-02  Hrvoje Niksic  <hniksic@arsdigita.com>
2348
2349         * init.c (cmd_address): Heap-allocate the address that gets stored
2350         to CLOSURE.  Old code would simply assign an address on the stack.
2351
2352 2001-04-01  Nicolas Lichtmaier <nick@debian.org>
2353
2354         * ftp.c (ftp_get_listing): Propagate error status.
2355         (ftp_retrieve_glob): Use it.
2356         (ftp_loop): Ditto.
2357
2358 2001-04-01  Nicolas Lichtmaier <nick@debian.org>
2359
2360         * main.c (main): Add -C to the string that is the third arg to
2361         getopt_long().
2362
2363 2001-04-01  Hrvoje Niksic  <hniksic@arsdigita.com>
2364
2365         * ftp.c (getftp): Don't start the download from scratch if `-c'
2366         was specified, but the file is already fully downloaded.
2367
2368         * http.c (gethttp): Don't truncate a pre-existing file if `-c' was
2369         specified and the server doesn't support continued download.
2370         (gethttp): Don't start the download from scratch if `-c' was
2371         specified, but the file is already fully downloaded.
2372
2373 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2374
2375         (recursive_retrieve): Don't clear the hash tables at this point at
2376         all; it interferes with the normal operation of register_download.
2377
2378 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2379
2380         * recur.c (recursive_retrieve): Clear the hash tables only when
2381         they are defined.
2382
2383 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2384
2385         * http.c (gethttp): Make sure the socket is closed with
2386         CLOSE_INVALIDATE before we have drained the body.
2387
2388 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2389
2390         * retr.c (retrieve_url): Call register_download() for downloaded
2391         files and register_html() for downloaded HTML files.
2392
2393         * recur.c (register_download): New function; register here that a
2394         file has been downloaded, rather than in recursive_retrieve().
2395         (register_html): New function; enqueue the location of HTML files
2396         here rather than in recursive_retrieve().
2397
2398 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2399
2400         * main.c (print_help): Use multiple fputs instead of a single ugly
2401         printf().
2402         (main): Consistently assign numbers >128 to options without a
2403         corresponding character.
2404
2405 2001-03-09  Philipp Thomas  <pthomas@suse.de>
2406
2407         * safe-ctype.h: New file. Locale independent ctype.h replacement
2408         taken from libiberty.
2409
2410         * safe-ctype.c: New file. Tables for above.
2411
2412         * Makefile.in: Add safe-ctype$o to OBJS.  Add dependencies for
2413         safe-ctype$o.
2414
2415         * cmpt.c: Remove include of ctype.h. Use ISSPACE instead of
2416         isspace.
2417
2418         * ftp-basic.c: Don't include ctype.h.
2419
2420         * ftp-ls.c: Likewise.
2421
2422         * ftp.c: Likewise.
2423
2424         * headers.c: Likewise.
2425
2426         * host.c: Likewise.
2427
2428         * html-parse.c: Likewise.
2429
2430         * html-url.c: Likewise.
2431
2432         * http.c: Likewise.
2433
2434         * init.c: Likewise.
2435
2436         * main.c: Likewise. Set LC_CTYPE along with LC_MESSAGES.
2437
2438         * netrc.c: Likewise.
2439
2440         * recur.c: Likewise.
2441
2442         * retr.c: Likewise.
2443
2444         * snprintf.c: Replace ctype.h with safe-ctype.h. Use ISDIGIT
2445         instead of isdigit.
2446
2447         * sysdep.h: Remove defines of ctype macros as they aren't needed
2448         for safe-ctype-h.
2449
2450         * url.c: Don't include ctype.h.
2451
2452         * utils.c: Likewise.
2453
2454         * wget.h: Include safe-ctype.h.
2455
2456 2001-03-27  Dan Harkless  <wget@harkless.org>
2457
2458         * Makefile.in: Moved top_builddir out of "User configuration
2459         section" of top Makefile and analogous spot in this one.
2460
2461 2001-03-17  Dan Harkless  <wget@harkless.org>
2462
2463         * Makefile.in: Include @SSL_INCLUDES@ substition in INCLUDES.
2464         Define top_builddir.  Link wget with libtool so the user doesn't
2465         have to supply a bunch of custom environment variables to 
2466         correctly link with the OpenSSL shared libraries.
2467
2468 2001-03-06  Hack Kampbjorn  <hack@hackdata.com>
2469
2470         * http.c (gethttp): skip :port in host header if it is the
2471         DEFAULT_HTTPS_PORT when using SSL.
2472
2473         * url.c: move the #define of DEFAULT_HTTP_PORT, DEFAULT_FTP_PORT
2474         and DEFAULT_HTTPS_PORT to the header file so it can be use in the
2475         rest of the code. 
2476         * url.h: Ditto
2477
2478 2001-03-01  Jonas Jensen  <bones@huleboer.dk>
2479
2480         * retr.c (show_progress): Correctly calculate the number of bytes
2481         in the first line of the download that have been actually
2482         downloaded in this run.
2483
2484 2001-02-23  Dan Harkless  <wget@harkless.org>
2485
2486         * main.c (print_help): --help documentation for -N said it would
2487         re-download files if they had the _same_ timestamp on server.
2488         (print_help): -nr belongs in "FTP options" section of --help
2489         output, not "Recursive retrieval" section.  Alphabetized FTP
2490         options by long option name.
2491
2492 2001-02-16  Dan Harkless  <wget@harkless.org>
2493
2494         * init.c (commands): Hack Kampbjørn <hack@hackdata.com> discovered
2495         that "httpsproxy" had been inserted into commands[] out of
2496         alphabetical order, causing "BUG: unknown command `httpuser'".
2497
2498 2001-02-13  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2499
2500         * ftp-ls.c (ftp_parse_ls): Added support of ST_MACOS (Unix-like
2501         listing without correct permissons).
2502
2503         * ftp.h (stype): Added ST_MACOS to identify the NetPresenz MacOS
2504         FTP server. 
2505
2506         * ftp.c (ftp_retrieve_list): New mirroring logic: A remote file
2507         shall be donwloaded only when it's newer than the local copy or
2508         when it has the same timeestamp but its size is different. ST_VMS
2509         and ST_MACOS as special cases that lie about file size. 
2510
2511         * ftp-ls.c (ftp_parse_ls): Support for ST_MACOS.
2512
2513         * Makefile.in: Removed dependency on ftpparse library due to unclear
2514         copyright issues and absence of any feedback to our queries. 
2515
2516         * ftp-ls.c: Removed dependency on ftpparse library due to unclear
2517         copyright issues and absence of any feedback to our queries.   
2518         (ftp_parse_ls): Added a warning message when remote server system
2519         does not seem to be suported by wget. 
2520         (ftp_parse_vms_ls): New function for parsing VMS ftp
2521         server listing output.
2522         (clean_line): New function responsible for removing
2523         end-of-line characters from FTP listing texts.
2524
2525         * ftp.c (getftp): Global variables pwd and host_type are now
2526         member of the ccon structure under names ccon.id and ccon.rs. 
2527
2528         * ftp.h (struct ccon): Added formed global variables from ftp.c,
2529         enum stype rs (remote system identification) and char *id (initial
2530         working directory), as suggested by Hrvoje.
2531
2532         * url.c (parse_uname): Added support for passwords containing '@'
2533         characters.
2534         (skip_uname): Ditto.
2535
2536 2001-02-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2537
2538         * ftp.c (ftp_loop): Reset con.
2539
2540 2001-01-06  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2541
2542         * url.c (parse_uname): Added support for passwords containing '@'
2543         characters.
2544         (skip_uname): Ditto.
2545
2546 2001-02-11  Hack Kampbjørn  <hack@hackdata.com>
2547
2548         * url.c (parseurl): Debug-print u->ftp_type.
2549
2550 2001-02-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2551
2552         * ftp.c (ftp_loop_internal): Disable padding.
2553         (getftp): Ditto.
2554
2555         * http.c (http_loop): Disable padding.
2556
2557         * retr.c (show_progress): Use it to enable padding.
2558
2559         * retr.c (rate): Optional parameter PAD for padding the rate.
2560
2561 2001-02-10  Hrvoje Niksic  <hniksic@arsdigita.com>
2562
2563         * retr.c (show_progress): Make sure that the last output line
2564         includes progress.
2565
2566 2001-02-10  Jonas Jensen  <bones@huleboer.dk>
2567
2568         * retr.c (show_progress): Print the download rate along with the
2569         percentages.
2570         Along with Anders Thorsby <anders@thorsby.dk>.
2571
2572 2001-02-10  Tim Mooney  <mooney@dogbert.cc.ndsu.NoDak.edu>
2573
2574         * ftp.h: Rename enums `command' to `wget_ftp_command' and
2575         `fstatus' to `wget_ftp_status' because old names clash with Tru64
2576         net/if.h.
2577
2578 2001-02-08  Christian Fraenkel <christian.fraenkel@gmx.net>
2579
2580         * gen_sslfunc.c: verify_callback is now static
2581
2582         * gen_sslfunc.c (init_ssl): load certificate if specified
2583
2584         * gen_sslfunc.c (ssl_printerr): new function
2585
2586         * init.c: added new --sslcertfile and --sslcertkey switches
2587
2588         * main.c: ditto
2589
2590         * options.h: ditto
2591
2592         * http.c (gethttp): abort when init_ssl fails
2593
2594 2001-01-23  Herold Heiko  <Heiko.Herold@previnet.it>
2595
2596         * mswindows.h: Include <malloc.h>; it's needed for alloca().
2597
2598 2001-01-10  Dan Harkless  <wget@harkless.org>
2599
2600         * url.c (str_url): Clarified this function's comment header after
2601         Hrvoje answered my question on the list as to when hide != 1.
2602         Also Hrvoje pointed out I need to use xstrdup() on the string literal.
2603
2604 2001-01-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2605
2606         * connect.c (bindport): Declare addrlen as int.  Diagnosed by
2607         Drazen Kacar <dave@arsdigita.com>.
2608         (conaddr): Ditto.
2609
2610 2001-01-09  Dan Harkless  <wget@harkless.org>
2611
2612         * html-url.c: A bunch of fixup of `--page-requisites'-related
2613         comments to reflect Hrvoje's changes to my code when transplanting
2614         it into this new file, to fix spelling mistakes, to clarify, etc.
2615
2616         * url.c (write_backup_file): Clarified a comment.
2617         (str_url): Henrik van Ginhoven pointed out on the list that we
2618         shouldn't give away the number of characters in the password by
2619         replacing each character with a 'x'.  Use "<password>" instead.
2620
2621         * ftp.c (ftp_retrieve_dirs): The bug where recursion into FTP
2622         directories didn't work if logging in put you in a directory other
2623         than "/" is fixed now.  Removed the comment here warning of the bug.
2624
2625         * main.c (print_help): --continue's description was misleading.
2626         We don't "restart", we "resume".  Also, better to say
2627         "partially-downloaded file" rather than just "existing file".
2628
2629 2001-01-06  Dan Harkless  <wget@harkless.org>
2630
2631         * ChangeLog: The '[Not in 1.6 branch.]'s were decided not to be
2632         the best way to go about my aim.  Removed them in favor of:
2633
2634         * ChangeLog-branches/1.6_branch.ChangeLog: New file.
2635
2636 2001-01-04  Hrvoje Niksic  <hniksic@arsdigita.com>
2637
2638         * url.c (replace_attr): New function, to be used by both
2639         TO_COMPLETE and TO_RELATIVE case in convert_links.
2640         (find_fragment): New function for finding URL fragments.
2641         (replace_attr): Better handle the case where the original string
2642         is not quoted.  Use find_fragment.
2643         (convert_links): Use replace_attr().
2644
2645 2000-12-31  Dan Harkless  <wget@harkless.org>
2646
2647         * ChangeLog: Since this flat file doesn't have multiple branches,
2648         looking at the dates would make you think that things went into
2649         1.6 that actually just went into the 1.7-dev branch.  Added "[Not
2650         in 1.6 branch.]" where appropriate to clarify.
2651         
2652 2000-12-30  Dan Harkless  <wget@harkless.org>
2653
2654         * ftp.c, http.c:  Applied Hack Kampbjørn <hack@hackdata.com>'s
2655         patch to deal with h_errno not being defined in netdb.h under Cygwin.
2656
2657 2000-12-18  Csaba Raduly  <csaba.raduly@sophos.com>
2658
2659         * sysdep.h: Include <malloc.h> and <io.h> under Watcom.
2660
2661 2000-12-17  Igor Khristophorov  <igor@atdot.org>
2662
2663         * http.c (check_end): Fix test for '+' or '-'.
2664
2665 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
2666
2667         * url.c (parseurl): Rename inner loop var from i to ind to avoid
2668         clash with the function top-level-declared variable i.
2669         (str_url): Likewise, rename inner-loop i to j.
2670
2671         * recur.c (parse_robots): Don't declare LEN at top of function.
2672         (robots_match): Renamed parameter FORBIDDEN to avoid hiding of
2673         global variable.
2674
2675         * main.c (main): Change erroneous use of bitwise and to logical.
2676
2677         * init.c (cmd_address): Don't heap-allocate `sin'; it can be on
2678         the stack because it will be copied to closure.
2679
2680         Thanks to Csaba Raduly's run of PC-LINT over the sources.
2681
2682 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
2683
2684         * http.c (basic_authentication_encode): Use xmalloc(), not
2685         malloc().  Thanks to Csaba Raduly's run of PC-LINT over the
2686         sources.
2687
2688 2000-12-17  Csaba Raduly  <csaba.raduly@sophos.com>
2689
2690         * sysdep.h: Test for __EMX__ rather than for EMXOS2 for OS/2
2691         compilation.
2692
2693 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
2694
2695         * mswindows.c: Include <errno.h>.
2696
2697         * gen_sslfunc.c: Include <errno.h>.
2698
2699         * ftp-basic.c: Don't attempt to declare errno or h_errno because
2700         they're not used.
2701
2702         * main.c: Include <errno.h> because errno is used.
2703
2704         * ftp.c: Ditto.
2705
2706         * http.c: Include <netdb.h> for h_errno.
2707
2708 2000-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2709
2710         * html-parse.c (advance_declaration): MSVC assert() chokes on
2711         '\"'.  Use '"' instead.
2712
2713 2000-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2714
2715         * utils.c (xfree_real): Removed.
2716         (xfree_debug): Just call free().
2717
2718         * wget.h (xfree): Make it an alias for free.
2719
2720 2000-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2721
2722         * http.c (http_loop): Furthermore, touch output_document only if
2723         it is known to be an existing regular file.
2724
2725 2000-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2726
2727         * ftp.c (ftp_retrieve_list): Ditto.
2728
2729         * http.c (http_loop): Touch output_document if that is used for
2730         output.
2731
2732 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2733
2734         * http.c: Include gen_sslfunc.h after including Wget's headers.
2735         (persistent_available_p): Needed coma before `int ssl'.
2736
2737 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2738
2739         * ftp.c (ftp_loop_internal): Ditto.
2740
2741         * http.c (http_loop): Use it.
2742
2743         * retr.c (sleep_between_retrievals): New function that handles the
2744         logic of opt.wait and opt.waitretry.
2745
2746 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2747
2748         * rbuf.h: Implement only a single version of RBUF_READCHAR, using
2749         rbuf_read_bufferful when the buffer is depleted.
2750
2751         * rbuf.c (rbuf_read_bufferful): New function.
2752
2753 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2754
2755         * gen_sslfunc.h: Use ansi2knr style function declarations.
2756
2757         * gen_sslfunc.c: Reformat according to the GNU coding standards.
2758         More should be done.
2759
2760         * http.c (persistent_available_p): Place the cheap SSL test nearer
2761         the top of the function.
2762         (CLOSE_FINISH, CLOSE_INVALIDATE): Define only one version of each.
2763
2764 2000-12-05  Hrvoje Niksic  <hniksic@arsdigita.com>
2765
2766         * url.c (init_unsafe_char_table): Reinstate space as an unsafe
2767         char.
2768
2769 2000-12-03  Christian Fraenkel <christian.fraenkel@gmx.net>
2770
2771         * Makefile.in: added gen_sslfunc object
2772         * config.h.in: added HAVE_SSL define
2773         * connect.c: changed select_fd from static int to int
2774         * connect.h: ditto
2775         * gen_sslfunc.h: New file
2776         * gen_sslfunc.c: ditto
2777         * http.c: added HTTPS fuctionality
2778         * retrc.c: ditto
2779         * url.c: ditto
2780         * init.c: added opt.httpsproxy
2781         * options.h: ditto
2782         * rbuf.h: added alternate rbuf struct
2783         * wget.h: added CONSSLERR
2784         * rbuf.c: ditto
2785
2786         * http.c: Added HTTPS fuctionality.
2787
2788         * retrc.c: Ditto.
2789
2790         * url.c: Ditto.
2791
2792         * init.c: Added opt.httpsproxy.
2793
2794         * options.h: Ditto.
2795
2796         * rbuf.h: Added alternate rbuf struct.
2797
2798         * wget.h: Added CONSSLERR.
2799
2800         * rbuf.c: Ditto.
2801
2802 2000-11-30  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2803
2804         * ftp-ls.c (ftp_parse_unix_ls): Added second parameter
2805         "ignore_perms" to ignore file and directory permissions for
2806         Windows NT FTP server listings.
2807         (ftp_parse_winnt_ls): New function.
2808         (ftp_parse_ls): Parses UNIX and Windows NT listings
2809         separately. Simple heuristics for distinguishing between UNIX and
2810         MS-DOS-like FTP listing provided by Windows NT FTP service.
2811
2812 2000-11-18  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2813
2814         * ftpparse.c, ftpparse.h: New files.
2815
2816         * ftp-ls.c (ftp_parse_ls): Use ftp_parse_unix_ls for UNIX servers
2817         only. Use ftp_parse_nonunix_ls otherwise.
2818         (ftp_parse_nonunix_ls): Stub to the ftpparse library handling all
2819         exotic FTP servers.
2820
2821         * ftp.h (stype): New enum, distinguishes UNIX, VMS, and "other"
2822         FTP servers.
2823
2824         * ftp.c: New static wariables host_type, pwd, and pwd_len. 
2825         (getftp): Support for VMS. Support for FTP servers that do not
2826         place you in the root directory after login.
2827         (ftp_retrieve_list): VMS is silent about the real file size, issue
2828         a more appropriate message.
2829         (ftp_get_listing): Pass host_type to ftp_parse_ls.
2830
2831         * ftp-basic.c (ftp_pwd, ftp_syst): New functions.
2832
2833 2000-11-30  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2834
2835         * ftp-ls.c (ftp_parse_unix_ls): Added second parameter
2836         "ignore_perms" to ignore file and directory permissions for
2837         Windows NT FTP server listings.
2838         (ftp_parse_winnt_ls): New function.
2839         (ftp_parse_ls): Parses UNIX and Windows NT listings
2840         separately. Simple heuristics for distinguishing between UNIX
2841         and MS-DOS-like FTP listing provided by Windows NT FTP service.
2842
2843 2000-11-29  John Summerfield  <summer@OS2.ami.com.au>
2844
2845         * netrc.c (parse_netrc): Get rid of line ending.
2846
2847 2000-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2848
2849         * ftp.c (ftp_retrieve_list): Undo typo "fix" until resolution by
2850         Dan.
2851
2852 2000-11-24  Karl Eichwalder  <ke@suse.de>
2853
2854         * main.c (print_help): Untabify.
2855
2856 2000-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
2857
2858         * utils.c (xrealloc_debug): Do the unregister/register thing only
2859         if the pointer has actually changed.
2860         (xmalloc_real): Declare `static' in DEBUG_MALLOC builds.
2861         (xfree_real): Ditto.
2862         (xrealloc_real): Ditto.
2863         (xstrdup_real): Ditto.
2864
2865 2000-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
2866
2867         * ftp.c (getftp): ftp_getaddress() returns a malloc'ed copy of the
2868         string; no need to strdup() it.
2869         (getftp): Make pwd_len a local variable.
2870         (ftp_loop): Free PWD before returning.
2871
2872         * init.c (cleanup): Free opt.ftp_pass only if it's non-NULL.
2873
2874 2000-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
2875
2876         * all: Use xfree() instead of free.
2877
2878         * utils.c (xfree): New function.
2879
2880 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
2881
2882         * url.c (convert_links): HTML-quote the converted string.
2883
2884         * utils.c (html_quote_string): Move here from ftp-ls.c
2885         (html_quote_string): Make non-static; declare in utils.h.
2886         (html_quote_string): Convert SP to &#32;.
2887
2888 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
2889
2890         * ftp.c (getftp): Reformat Jan's code according to GNU coding
2891         standards; remove (debugging?) printf's; use '\0' for the ASCII
2892         zero character.  Use alloca() instead of malloc() for
2893         inter-function temporary allocations.
2894
2895 2000-11-18  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2896
2897         * ftpparse.c, ftpparse.h: New files.
2898
2899         * ftp-ls.c (ftp_parse_ls): Use ftp_parse_unix_ls for UNIX servers
2900         only. Use ftp_parse_nonunix_ls otherwise.
2901         (ftp_parse_nonunix_ls): Stub to the ftpparse library handling all
2902         exotic FTP servers.
2903
2904         * ftp.h (stype): New enum, distinguishes UNIX, VMS, and "other"
2905         FTP servers.
2906
2907         * ftp.c: New static wariables host_type, pwd, and pwd_len. 
2908         (getftp): Support for VMS. Support for FTP servers that do not
2909         place you in the root directory after login.
2910         (ftp_retrieve_list): VMS is silent about the real file size, issue
2911         a more appropriate message.
2912         (ftp_get_listing): Pass host_type to ftp_parse_ls.
2913
2914         * ftp-basic.c (ftp_pwd, ftp_syst): New functions.
2915
2916 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
2917
2918         * hash.c (hash_table_put): Don't overwrite deleted mappings.
2919
2920 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
2921
2922         * hash.c (find_mapping): New function.
2923         (hash_table_get): Use it.
2924         (hash_table_get_pair): Ditto.
2925         (hash_table_exists): Ditto.
2926         (hash_table_remove): Ditto.
2927         (hash_table_remove): Really delete the entry if the mapping
2928         following LOCATION is empty.
2929
2930         * utils.c (string_set_add): Check whether the element has existed
2931         before.
2932
2933         * hash.c (hash_table_get_pair): New function.
2934
2935 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
2936
2937         * http.c (http_process_type): Ignore trailing whitespace; use
2938         strdupdelim().
2939
2940         * recur.c (recursive_retrieve): Use the new `convert' field.
2941         (convert_all_links): Ditto.
2942         (convert_all_links): Don't respect meta_disallow_follow.
2943
2944         * html-url.c (handle_link): Fill out link_relative_p and
2945         link_complete_p.
2946
2947         * url.h (struct _urlpos): Make elements more readable.
2948
2949         * recur.c (recursive_retrieve): Call slist_prepend instead of
2950         slist_append.
2951         (convert_all_links): Call slist_nreverse before iterating through
2952         urls_html.
2953
2954         * utils.c (slist_prepend): New function.
2955         (slist_nreverse): Ditto.
2956
2957 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
2958
2959         * http.c (check_end): Constify.
2960
2961 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
2962
2963         * http.c (http_loop): If username and password are known, try the
2964         `Basic' authentication scheme by default.
2965
2966         * connect.h: Declare test_socket_open.
2967
2968 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
2969
2970         * version.c: Bump version from 1.5.3+dev to 1.7-dev.
2971
2972 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
2973
2974         * http.c (gethttp): Don't use the return value of sprintf().
2975         (gethttp): Inhibit keep-alive if opt.http_keep_alive is 0.
2976
2977 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
2978
2979         * recur.c (recursive_retrieve): Print the "so we don't load"
2980         debugging message only if we really don't load.
2981
2982         * http.c (gethttp): Inhibit keep-alive if proxy is being used.
2983         (gethttp): Don't request keep-alive if keep-alive is inhibited.
2984
2985 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
2986
2987         * http.c (gethttp): Make the HTTP persistent connections more
2988         robust.
2989
2990 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
2991
2992         * retr.c (get_contents): If use_expected, make sure that the
2993         appropriate amount of data is being read.
2994
2995         * http.c (gethttp): Check for both `Keep-Alive: ...' and
2996         `Connection: Keep-Alive'.
2997
2998         * wget.h (DEBUGP): Call debug_logprintf only if opt.debug is
2999         turned on.
3000
3001 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
3002
3003         * http.c (connection_available_p): Use it.
3004
3005         * connect.c (test_socket_open): New function.
3006
3007         * http.c (gethttp): Support persistent connections.  Based on the
3008         ideas, and partly on code, by Sam Horrocks <sam@daemoninc.com>.
3009         (register_persistent): New function.
3010         (connection_available_p): Ditto.
3011         (invalidate_connection): Ditto.
3012
3013 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
3014
3015         * url.c (convert_links): Handle UREL2ABS case.
3016
3017         * recur.c (recursive_retrieve): Instead of the list
3018         urls_downloaded, use hash tables dl_file_url_map and
3019         dl_url_file_map.
3020         (convert_all_links): Use them to retrieve data.
3021
3022         * host.c (clean_hosts): Free the hash tables.
3023
3024         * main.c (private_initialize): Call host_init().
3025
3026         * host.c (store_hostaddress): Use a saner, hash table-based data
3027         model.
3028         (realhost): Ditto.
3029         (host_init): Initialize the hash tables.
3030
3031 2000-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
3032
3033         * utils.c (slist_append): Eviscerate NOSORT.  Hash tables are now
3034         used for what the sorted slists used to be used for.
3035         (slist_contains): Don't rely on the list being sorted.
3036         (slist_append): Simplify the code.
3037
3038         * recur.c (recursive_cleanup): Use free_string_set.
3039
3040         * utils.c (string_set_add, string_set_exists, string_set_free):
3041         New functions for easier freeing of hash tables whose keys are
3042         strdup'ed strings.
3043
3044         * recur.c (recursive_retrieve): Use the hash table functions for
3045         storing undesirable URLs.
3046
3047         * hash.c: New file.
3048
3049 2000-11-17  Hrvoje Niksic  <hniksic@arsdigita.com>
3050
3051         * main.c (private_initialize): Call url_init.
3052         (main): Call private_initialize.
3053
3054         * url.c (unsafe_char_table): New table.
3055         (UNSAFE_CHAR): Use it.
3056         (init_unsafe_char_table): New function.
3057         (url_init): New function; call init_unsafe_char_table.
3058
3059 2000-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
3060
3061         * mswindows.h: Define snprintf and vsnprintf to _snprintf and
3062         _vsnprintf respectively.
3063
3064 2000-11-15  Hrvoje Niksic  <hniksic@arsdigita.com>
3065
3066         * config.h.in: Do the _XOPEN_SOURCE and _SVID_SOURCE things only
3067         on Linux.
3068
3069 2000-11-15  Hrvoje Niksic  <hniksic@arsdigita.com>
3070
3071         * html-url.c (handle_link): Handle HTML fragment identifiers.
3072
3073         * recur.c (recursive_retrieve): If norobot info is respected and
3074         the file is specified not to be followed by robots, respect that.
3075
3076         * html-url.c (collect_tags_mapper): Handle <meta name=robots
3077         content=X>.  For us the important cases are where X is NONE or
3078         where X contains NOFOLLOW.
3079         (get_urls_html): Propagate that information to the caller.
3080
3081 2000-11-13  Hrvoje Niksic  <hniksic@arsdigita.com>
3082
3083         * url.c (convert_links): Unlink the file we might be reading from
3084         before writing to it.
3085         (convert_links): Use alloca instead of malloc for
3086         filename_plus_orig_suffix.
3087
3088 2000-11-12  Hrvoje Niksic  <hniksic@arsdigita.com>
3089
3090         * host.c (realhost): Add HOST to the list with quality==0 only if
3091         it wasn't already there.
3092         Based on analysis by Lu Guohan <feng@public.bjnet.edu.cn>.
3093
3094 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3095
3096         * url.c (get_urls_file): Ditto.
3097         (convert_links): Ditto.
3098
3099         * html-url.c (get_urls_html): Use read_file() instead of
3100         load_file().
3101
3102         * utils.c (read_file): New function, instead of the old
3103         load_file().
3104         (read_file_free): Ditto.
3105
3106         * url.c (findurl): Search only for the supported protocols.
3107         (convert_links): Use fwrite() when writing out a region of
3108         characters.
3109
3110 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3111
3112         * ftp-ls.c: Move html_quote_string and ftp_index here.
3113
3114         * url.c: Remove get_urls_html, since that's now in html-url.c.
3115
3116         * html-url.c: New file.
3117
3118         * html-parse.c: New file.
3119
3120 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3121
3122         * init.c (run_wgetrc): Don't bother killing off '\r' since
3123         pars_line() skips whitespace at end of line anyway.
3124         (parse_line): Oops, it didn't.  Now it does.
3125
3126         * recur.c (parse_robots): Ditto here.
3127
3128         * ftp-ls.c (ftp_parse_unix_ls): Kill off the newline character
3129         manually because read_whole_line no longer does.
3130
3131         * utils.c (read_whole_line): Rewrite to: a) use less memory
3132         (reallocates to needed size after work), b) work faster -->
3133         fgets() instead of getc, c) be more correct --> doesn't kill the
3134         newline character at the end of line.
3135
3136 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3137
3138         * init.c (comind): Initialize MAX to array size - 1.
3139
3140 2000-11-08  Hrvoje Niksic  <hniksic@arsdigita.com>
3141
3142         * url.c (construct): Changed last_slash[-1] to *(last_slash - 1).
3143         Suggested by Edward J. Sabol.
3144
3145 2000-11-08  Hrvoje Niksic  <hniksic@arsdigita.com>
3146
3147         * url.c (construct): Handle the case where host name is not
3148         followed by a slash.
3149
3150 2000-11-06  Hrvoje Niksic  <hniksic@arsdigita.com>
3151
3152         * init.c: commands[] need to be sorted!  ("base" wasn't.)
3153
3154 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3155
3156         * wget.h (DO_REALLOC_FROM_ALLOCA): Use braces to disambiguate
3157         `if'.
3158
3159 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3160
3161         * url.c (construct): Insert unneeded initialization for the
3162         compiler to shut up.
3163
3164         * config.h.in: Define _XOPEN_SOURCE to 500 to get the prototype
3165         for strptime() (*duh*).  Define _SVID_SOURCE to get S_IFLNK which
3166         otherwise gets lost when you define _XOPEN_SOURCE.
3167
3168         * utils.c (touch): Include the file name in the error message.
3169         From Debian.
3170
3171 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3172
3173         * log.c (logvprintf): Use vsnprintf() in all cases.  If necessary,
3174         resize the buffer to fit the formated message.  That way, messages
3175         of arbitrary size may be printed.
3176         (logvprintf): Use saved_append() to optionally log the last
3177         several lines of output.
3178         (logputs): Ditto.
3179         (log_close): Adapt to new data structures.
3180         (log_dump): Ditto.
3181         (redirect_output): Print messages to stderr, not to stdout.
3182
3183         * log.c (saved_append_1): New function.  Replaces the old logging
3184         system ("log all output until 10M characters") with a new, much
3185         more reasonable one ("log last screenful of text").
3186         (saved_append): New function; call saved_append_1.
3187         (free_log_line): New function.
3188
3189 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3190
3191         * url.c (construct): Fix comment.
3192         (find_last_char): Document.
3193
3194 2000-11-04  Hrvoje Niksic  <hniksic@arsdigita.com>
3195
3196         * snprintf.c: New file.
3197
3198 2000-11-03  Hrvoje Niksic  <hniksic@arsdigita.com>
3199
3200         * wget.h: If HAVE_STDARG_H is not defined, don't declare argument
3201         types to logprintf() and debug_logprintf().
3202
3203 2000-11-02  Hrvoje Niksic  <hniksic@arsdigita.com>
3204
3205         * ftp.c (ftp_loop_internal): Hide the password from the URL when
3206         printing non-verbose.  Problem spotted by Dariusz Mlynarczyk
3207         <darekm@bydg.lomac.com.pl>.
3208
3209 2000-11-02  Junio Hamano  <junio@twinsun.com>
3210
3211         * ftp-basic.c (ftp_login): Make comparison case-insensitive.
3212
3213 2000-11-02  Tyler Riddle  <triddle@liquidmarket.com>
3214
3215         * http.c (known_authentication_scheme_p): Recognize NTML
3216         authentication.
3217         (create_authorization_line): Treat NTML the same as `Basic'.
3218
3219 2000-11-02  Hrvoje Niksic  <hniksic@arsdigita.com>
3220
3221         * retr.c (retrieve_url): Free url before returning.
3222         (retrieve_url): Free mynewloc before returning.
3223         Spotted by Mark A. Mankins <Mankins_Mark@prc.com>.
3224
3225 2000-11-02  Hrvoje Niksic  <hniksic@arsdigita.com>
3226
3227         * url.c (parseurl): Remove possible reading past the end of
3228         sup_protos[].  Spotted by Mark A. Mankins <Mankins_Mark@prc.com>.
3229
3230 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3231
3232         * main.c (main): In case of opt.downloaded overflowing, print
3233         <overflow> instead of a totally bogus random value.
3234
3235         * retr.c (retrieve_from_file): Ditto.
3236
3237         * recur.c (recursive_retrieve): Ditto.
3238
3239         * main.c (main): Ditto.
3240
3241         * http.c (http_loop): Ditto.
3242
3243         * ftp.c (ftp_loop_internal): Use downloaded_increase() instead of
3244         `+=', and downloaded_exceeds_quota() instead of the simple-minded
3245         check.
3246         (ftp_retrieve_list): Ditto.
3247         (ftp_retrieve_dirs): Ditto.
3248         (ftp_retrieve_glob): Ditto.
3249
3250         * retr.c (downloaded_increase): New function.  Notice overflows of
3251         opt.downloaded.
3252         (downloaded_exceeds_quota): Make sure that opt.downloaded is not
3253         used if it overflowed.
3254
3255         * options.h (struct options): New member downloaded_overflow.
3256
3257 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3258
3259         * wget.h (enum): Remove extra space after last enumeration.
3260
3261 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3262
3263         * main.c (main): Use legible_very_long() for printing
3264         opt.downloaded.
3265
3266         * utils.c (legible_1): New function that operates on strings and
3267         does the brunt of legible()'s work.
3268         (legible): Use legible_1().
3269         (legible_very_long): New function; dump the argument with
3270         sprintf(), and call legible_1().
3271
3272         * options.h (struct options): Use VERY_LONG_TYPE for
3273         opt.downloaded.
3274
3275         * sysdep.h (VERY_LONG_TYPE): Define it to have a 64-bit or greater
3276         type.
3277
3278         * config.h.in: Make sure that SIZEOF_LONG and SIZEOF_LONG_LONG get
3279         defined.  Define HAVE_LONG_LONG if long long is available.
3280
3281 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3282
3283         * utils.c (long_to_string): Update with a later, better version.
3284
3285 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3286
3287         * url.c (path_simplify_with_kludge): New function.
3288         (path_simplify_with_kludge): Disable it.  Instead...
3289         (parse_dir): ...make sure that at this point the right thing is
3290         done, i.e. that "query" part of the URL (?...) is always assigned
3291         to the file, never to the directory portion of the path.
3292
3293 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3294
3295         * retr.c (retrieve_url): Detect redirection cycles.
3296
3297 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3298
3299         * url.c (get_urls_html): Decode HTML entities using
3300         html_decode_entities.
3301
3302         * html.c (htmlfindurl): Don't count the `#' in numeric entities
3303         (&#NNN;) as an HTML fragemnt.
3304         (html_decode_entities): New function.
3305
3306 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3307
3308         * html.c (htmlfindurl): Fix recognition of # HTML fragments.
3309
3310 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3311
3312         * url.c (construct): Rewritten for clarity.  Avoids the
3313         unnecessary copying and stack-allocation the old version
3314         performed.
3315
3316 2000-10-31  Hrvoje Niksic  <hniksic@arsdigita.com>
3317
3318         * ftp.c (getftp): Ditto.
3319
3320         * http.c (gethttp): Rewind the stream when retrying from scratch.
3321
3322 2000-10-31  Hrvoje Niksic  <hniksic@arsdigita.com>
3323
3324         * retr.c (retrieve_url): Use url_concat() to handle relative
3325         redirections instead of /ad hoc/ code.
3326
3327         * url.c (url_concat): New function encapsulating weird
3328         construct().
3329         (urllen_http_hack): New function.
3330         (construct): When constructing new URLs, recognize that `?' does
3331         not form part of the file name in HTTP.
3332
3333 2000-10-13  Adrian Aichner  <adrian@xemacs.org>
3334
3335         * retr.c: Add msec timing support for WINDOWS.
3336         * retr.c (reset_timer): GetSystemTime() on WINDOWS.
3337         * retr.c (elapsed_time): Calculate delta time to msec on WINDOWS.
3338
3339 2000-10-27  Dan Harkless  <wget@harkless.org>
3340
3341         * retr.c (retrieve_url): Manually applied T. Bharath
3342         <TBharath@responsenetworks.com>'s patch to get wget to grok
3343         illegal relative URL redirects.  Reformatted and re-commented it.
3344
3345 2000-10-23  Dan Harkless  <wget@harkless.org>
3346
3347         * connect.c (make_connection and bindport): Manually applied Rob
3348         Mayoff <mayoff@dqd.com>'s 1.5.3 patch to add --bind-address,
3349         changing coding style to GNU's.
3350
3351         * ftp.c (ftp_loop_internal): --delete-after wasn't implemented for
3352         files downloaded via FTP.  Per a comment, .listing files were not
3353         counted towards number of bytes and files downloaded because they're 
3354         deleted anyway.  Well, they aren't under -nr, so count them then.
3355
3356         * init.c: Manually applied Rob Mayoff's 1.5.3 patch to add
3357         --bind-address, alphabetizing, changing coding style to GNU's,
3358         commenting, and renaming cmd_ip_address() to cmd_address() to
3359         imply hostnames also okay.
3360                 
3361         * main.c (main): --delete-after didn't delete the root of the
3362         tree.  Ignore --convert-links if --delete-after was specified.
3363         Manually applied Rob Mayoff's 1.5.3 patch to add --bind-address,
3364         fixing duplicate use of added-since-1.5.3 case value.
3365         (print_help): Clarified that --delete-after deletes local files.
3366         Rob forgot to add a line for his new --bind-address option.
3367                 
3368         * options.h (struct options): Manually applied Rob Mayoff's patch
3369         to add --bind-address (bind_address structure member).
3370                 
3371         * recur.c (recursive_retrieve): Improved comment; added DEBUGP().
3372         Ignore --convert-links if --delete-after was specified.
3373                 
3374         * retr.c (retrieve_from_file): Just added a DEBUGP().
3375                 
3376 2000-10-19  Dan Harkless  <wget@harkless.org>
3377
3378         * ftp.c (ftp_loop_internal): downloaded_file() enumerators changed.
3379         (getftp): Applied Piotr Sulecki <Piotr.Sulecki@ios.krakow.pl>'s
3380         patch to work around FTP servers that incorrectly respond to the
3381         "REST" command with the remaining size rather than the total file size.
3382                 
3383         * http.c (gethttp): Improved a comment and added code to tack on
3384         ".html" to text/html files without that extension when -E specified.
3385         (http_loop): Use new downloaded_file() enumerators and deal with
3386         the case of gethttp() called xrealloc() on u->local.
3387
3388         * init.c (commands): Added new "htmlextension" command.
3389         Also renamed John Daily's cmd_quad() to the more descriptive
3390         cmd_lockable_boolean(), alpha-sorted the CMD_DECLARE()s and
3391         removed duplicate cmd_boolean() declaration.
3392
3393         * main.c (print_help): Added my new -E / --html-extension option.
3394         (main): Undocumented --email-address option previously used -E synonym.
3395         Stole it away for the much more deserving --html-extension's use.
3396
3397         * options.h (struct options): Added html_extension field.
3398
3399         * url.c (convert_links): URL X that we saved as X.html locally due
3400         to -E needs to be backed up as X.orig, not X.html.orig.  Added comments.
3401         (downloaded_file): Now remembers if we added .html extension to a file.
3402
3403         * url.h (downloaded_file_t): Added extra enumerators to support above.
3404         (downloaded_file): Now takes and returns a downloaded_file_t.
3405
3406         * wget.h (unnamed "dt" enum): Added ADDED_HTML_EXTENSION enumerator.
3407         
3408 2000-10-09  Dan Harkless  <wget@harkless.org>
3409
3410         * html.c (htmlfindurl): Added unneeded initialization to quiet warning.
3411                 
3412         * main.c (print_help): Clarified what --retr-symlinks does.
3413         
3414 2000-09-15  John Daily  <jdaily@cyberdude.com>
3415
3416         * init.c: Add support for "always" and "never" values to allow
3417         .wgetrc to override commandline (useful e.g. with .pm files
3418         calling `wget --passive-ftp' when your firewall doesn't allow that).
3419
3420         * ftp.c (getftp): passive_ftp is first option to support always/never.
3421
3422 2000-08-30  Dan Harkless  <wget@harkless.org>
3423
3424         * ftp.c (ftp_retrieve_list): Use new INFINITE_RECURSION #define.
3425         
3426         * html.c: htmlfindurl() now takes final `dash_p_leaf_HTML' parameter.
3427         Wrapped some > 80-column lines.  When -p is specified and we're at a 
3428         leaf node, do not traverse <A>, <AREA>, or <LINK> tags other than 
3429         <LINK REL="stylesheet">.
3430         
3431         * html.h (htmlfindurl): Now takes final `dash_p_leaf_HTML' parameter.
3432         
3433         * init.c: Added new -p / --page-requisites / page_requisites option.
3434
3435         * main.c (print_help): Clarified that -l inf and -l 0 both allow
3436         infinite recursion.  Changed the unhelpful --mirrior description
3437         to simply give the options it's equivalent to.  Added new -p option.
3438         (main): Added some comments; handle new -p / --page-requisites.
3439         
3440         * options.h (struct options): Added new page_requisites field.
3441
3442         * recur.c: Changed "URL-s" to "URLs" and "HTML-s" to "HTMLs".
3443         Calculate and pass down new `dash_p_leaf_HTML' parameter to
3444         get_urls_html().  Use new INFINITE_RECURSION #define.
3445
3446         * retr.c: Changed "URL-s" to "URLs".  get_urls_html() now takes
3447         final `dash_p_leaf_HTML' parameter.
3448
3449         * url.c: get_urls_html() and htmlfindurl() now take final
3450         `dash_p_leaf_HTML' parameter.
3451
3452         * url.h (get_urls_html): Now takes final `dash_p_leaf_HTML' parameter.
3453
3454         * wget.h: Added some comments and new INFINITE_RECURSION #define.
3455         
3456 2000-08-23  Dan Harkless  <wget@harkless.org>
3457
3458         * main.c (print_help): -B / --base was not mentioned.
3459
3460 2000-08-22  Dan Harkless  <wget@harkless.org>
3461
3462         * main.c (print_help): Modified -nc description to mention that it
3463         also prevents the creation of multiple versions of the same file
3464         with ".<number>" suffixes.
3465
3466 2000-07-14  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
3467
3468         * retr.c (retrieve_url): Consistently strdup opt.referer when
3469         setting u->referer.
3470
3471 2000-06-09  Dan Harkless  <wget@harkless.org>
3472
3473         * main.c (print_help): --help output for --waitretry was over 80 cols.
3474
3475 2000-06-09  Hrvoje Niksic  <hniksic@iskon.hr>
3476
3477         * url.c (encode_string): Fix comment.
3478         Suggested by Herold Heiko <Heiko.Herold@previnet.it>.
3479
3480 2000-06-01  Const Kaplinsky  <const@ce.cctpu.edu.ru>
3481
3482         * ftp.c (ftp_retrieve_list): Change permissions only on plain
3483         files.
3484
3485 2000-06-01  Hrvoje Niksic  <hniksic@iskon.hr>
3486
3487         * url.c (str_url): Print the port number only if it's different
3488         from the default port number for that protocol.
3489
3490 2000-05-22  Dan Harkless  <wget@harkless.org>
3491
3492         * main.c (print_help): Added --help line for Damir Dzeko
3493         <ddzeko@zesoi.fer.hr>'s until-now-undocumented --referer option.
3494         Removed comments that --referer and --waitretry were undocumented.
3495         Changed "`.wgetrc' command" to "`.wgetrc'-style command" on --help
3496         line for --execute.
3497
3498 2000-05-18  Hrvoje Niksic  <hniksic@iskon.hr>
3499
3500         * ftp.c (getftp): Ditto.
3501
3502         * http.c (gethttp): Check for return value of fclose/fflush.
3503
3504 2000-04-12  Hrvoje Niksic  <hniksic@iskon.hr>
3505
3506         * host.c (store_hostaddress): Instead of shifting ADDR, start
3507         copying from the correct address.
3508
3509 2000-04-12  Hrvoje Niksic  <hniksic@iskon.hr>
3510
3511         * http.c (gethttp): Don't free REQUEST -- it was allocated with
3512         alloca().
3513         Pointed out by Gisle Vanem <gvanem@eunet.no>.
3514
3515 2000-04-04  Dan Harkless  <wget@harkless.org>
3516
3517         * host.c (store_hostaddress): R. K. Owen's patch introduces a
3518         "left shift count >= width of type" warning on 32-bit
3519         architectures.  Got rid of it by tricking the compiler w/ a variable.
3520         
3521         * url.c (UNSAFE_CHAR): The macro didn't include all the illegal
3522         characters per RFC1738, namely everything above '~'.  It also
3523         generated a warning on OSes where char =~ unsigned char.  Fixed.
3524         
3525 1998-10-17  Hrvoje Niksic  <hniksic@srce.hr>
3526
3527         * http.c (http_process_type): Removed needless strdup(), a memory
3528         leak.
3529
3530 1998-09-25  Hrvoje Niksic  <hniksic@srce.hr>
3531
3532         * html.c (htmlfindurl): Set PH to the first occurrence of `#'.
3533
3534 1998-09-25  Simon Munton  <simonm@m4data.co.uk>
3535
3536         * init.c (wgetrc_file_name): Don't free HOME under Windows.
3537
3538 1998-12-01  "R. K. Owen"  <rkowen@Nersc.GOV>
3539
3540         * host.c (store_hostaddress): Fix for big endian 64-bit machines.
3541
3542 1998-12-01  Hrvoje Niksic  <hniksic@srce.hr>
3543
3544         * url.c (UNSAFE_CHAR): New macro.
3545         (contains_unsafe): Use it.
3546         (encode_string): Ditto.
3547
3548 1998-12-01  Hrvoje Niksic  <hniksic@srce.hr>
3549
3550         * main.c (i18n_initialize): Use LC_MESSAGES only if available.
3551
3552 2000-03-31  Hrvoje Niksic  <hniksic@srce.hr>
3553
3554         * Use TOUPPER/TOLOWER.
3555
3556 1998-12-22  Alexander V. Lukyanov  <lav@yars.free.net>
3557
3558         * ftp-opie.c (btoe): Zero-terminate OSTORE.
3559
3560 2000-03-21  Hrvoje Niksic  <hniksic@iskon.hr>
3561
3562         * wget.h (DO_REALLOC_FROM_ALLOCA): Ditto.
3563
3564         * sysdep.h (ISALNUM): New macro.
3565         (TOLOWER): Ditto.
3566         (TOUPPER): Ditto.
3567
3568 2000-03-10  Dan Harkless  <wget@harkless.org>
3569
3570         * html.c (idmatch): Implemented checking of my new --follow-tags
3571         and --ignore-tags options.
3572         
3573         * init.c (commands): Added comment reminding people adding new
3574         entries doing allocation to add corresponding freeing in cleanup().
3575         (commands): Added new followtags and ignoretags commands.
3576         (cleanup): Free storage for new followtags and ignoretags.
3577         
3578         * main.c: Use of "comma-separated list" was random -- normalized
3579         it.  Did some alphabetization.  Added comments pointing out
3580         "Options without arguments" and "Options accepting an argument"
3581         sections of long_options[].  Added new options --follow-tags and
3582         -G / --ignore-tags.  Added comment that Damir's --referer is
3583         currently undocumented.  Added comment that Heiko's --waitretry is
3584         partially undocumented (mentioned in --help but not in
3585         wget.texi).  Moved improperly sorted 24, 129, and 'G' cases.
3586         
3587         * options.h (struct options): Added new fields follow_tags and
3588         ignore_tags. 
3589         
3590         * wget.h: Added "#define EQ 0" so we can say "strcmp(a, b) == EQ".
3591         
3592 2000-03-02  Dan Harkless  <wget@harkless.org>
3593
3594         * ftp.c (ftp_loop_internal): Heiko introduced "suggest explicit
3595         braces to avoid ambiguous `else'" warnings.  Eliminated them.
3596         
3597         * http.c (gethttp): Dan Berger's query string patch is totally
3598         bogus.  If you have two different URLs, gen_page.cgi?page1 and
3599         get_page.cgi?page2, they'll both be saved as get_page.cgi and the
3600         second will overwrite the first.  Also, parameters to implicit
3601         CGIs, like "http://www.host.com/db/?2000-03-02" cause the URLs to
3602         be printed with trailing garbage characters, and could seg fault.
3603         Backing out the patch, which Dan B. informed me by email was just
3604         a kludge to download StarOffice from Sun made necessary due to
3605         wget's unconditional escaping of certain characters (room for an
3606         option there?).
3607         (http_loop): Heiko introduced "suggest explicit braces to avoid
3608         ambiguous `else'" warnings.  Eliminated them.
3609         
3610         * main.c: Heiko's --wait / --waitretry backwards compatibility
3611         code looks to have been totally untested -- automatic variable
3612         'wr' was used without being initialized, and a long int was passed
3613         into setval()'s char* val parameter.
3614         
3615         * recur.c (parse_robots): Applied Edward J. Sabol
3616         <sabol@alderaan.gsfc.nasa.gov>'s patch for Guan Yang's reported
3617         problem with "User-agent:<space>*<space>" lines in robots.txt.
3618         
3619         * url.c (parseurl, str_url): Removing Dan Berger's code (see
3620         http.c above for explanation).
3621         
3622 1999-08-25  Heiko Herold  <Heiko.Herold@previnet.it>
3623
3624         * ftp.c: Respect new option waitretry.
3625
3626 2000-01-30  Damir Dzeko  <ddzeko@zesoi.fer.hr>
3627
3628         * http.c (gethttp): Send custom Referer, if required.
3629
3630 1999-09-24  Charles G Waldman  <cgw@fnal.gov>
3631
3632         * netrc.c (parse_netrc): Allow passwords to contain spaces.
3633
3634         * netrc.c (parse_netrc): New function.
3635
3636 1999-09-17  Dan Berger  <dberger@ix.netcom.com>
3637
3638         * http.c (gethttp): Send it.
3639
3640         * url.c (parseurl): Detect query string in HTTP URL-s.
3641         (str_url): Print it.
3642
3643 2000-03-02  HIROSE Masaaki  <hirose31@t3.rim.or.jp>
3644
3645         * html.c (html_allow): Add <link href=...> and <script src=...>.
3646
3647 1999-05-02  andrew deryabin  <djsf@softhome.net>
3648
3649         * http.c (gethttp): Specify port in `Host' header only if it's
3650         different from 80.
3651
3652 1998-11-03  Edward J. Sabol  <sabol@alderaan.gsfc.nasa.gov>
3653
3654         * recur.c (recursive_retrieve): If a finite maximum depth is
3655         specified, and we're are already at that depth, don't download the
3656         HTML file for parsing.
3657
3658 2000-03-01  Dan Harkless  <wget@harkless.org>
3659
3660         * ftp.c (ftp_loop_internal): Call new downloaded_file() function,
3661         even though we don't do conversion on HTML files retrieved via
3662         FTP, so _current_ usage of downloaded_file() makes this call unneeded. 
3663         (ftp_retrieve_list): Added a comment saying where we need to
3664         stat() a .orig file if FTP'd HTML file conversion is ever implemented.
3665         (ftp_retrieve_list): "Local file '%s' is more recent," is sometimes
3666         a lie -- reworded as "Server file no newer than local file '%s' --".
3667         
3668         * http.c (http_loop): Fixed a typo and clarified a comment.
3669         (http_loop): When -K and -N are specified together, compare size
3670         and timestamp of server file X against local file X.orig (if
3671         extant) rather than converted local file X.
3672         (http_loop): "Local file '%s' is more recent," is sometimes a lie
3673         -- reworded as "Server file no newer than local file '%s' --".
3674         (http_loop): Call new downloaded_file() function to prevent
3675         wrongful overwriting of .orig file when -N is specified.
3676         
3677         * url.c (convert_links): When -K specified, only rename X to
3678         X.orig if downloaded_file() returns TRUE.  Otherwise when we skip
3679         file X due to -N, we clobber an X.orig from a previous invocation.
3680         (convert_links): Call the failsafe xstrdup(), not the real strdup().
3681         (convert_links): Added a note asking anyone who understands how
3682         multiple URLs can correspond to a single file to comment it.
3683         (downloaded_file): Added this new function.
3684         
3685         * url.h (downloaded_file): Added prototype for this new function
3686         as well as its downloaded_file_t enum type.
3687
3688         * wget.h (boolean): Added this new typedef and TRUE and FALSE #defines.
3689
3690 2000-02-29  Dan Harkless  <wget@harkless.org>
3691
3692         * version.c: Upped version to developer-only "1.5.3+dev".
3693
3694 2000-02-18  Dan Harkless  <wget@harkless.org>
3695
3696         * init.c (backup_converted): Added this new option.
3697
3698         * main.c (-K / --backup-converted): Added this new option.
3699
3700         * options.h (backup_converted): Added this new option.
3701
3702         * url.c (convert_links): When backup_converted is specified, save
3703         file X as X.orig before converting.
3704
3705         * url.h (urlpos): Fixed typo -- said "Rekative" instead of "Relative".
3706
3707 1998-09-21  Hrvoje Niksic  <hniksic@srce.hr>
3708
3709         * version.c: Wget 1.5.3 is released.
3710
3711 1998-09-21  Hrvoje Niksic  <hniksic@srce.hr>
3712
3713         * host.c (ftp_getaddress): Don't warn when reverse-lookup of local 
3714         address doesn't yield FQDN.
3715
3716 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3717
3718         * cmpt.c (strerror): Fix declaration of sys_errlist.
3719
3720 1998-09-11  Hrvoje Niksic  <hniksic@srce.hr>
3721
3722         * main.c (main): Don't use an array subscript as the first
3723         argument to STRDUP_ALLOCA.
3724         From Kaveh R. Ghazi.
3725
3726 1998-09-11  Szakacsits Szabolcs  <szaka@sienet.hu>
3727
3728         * html.c (htmlfindurl): Download table background.
3729
3730 1998-09-11  Hans Grobler  <grobh@conde.ee.sun.ac.za>
3731
3732         * init.c (parse_line): Would free *com before allocating it.
3733         (parse_line): Would free com instead of *com.
3734
3735 1998-09-10  Howard Gayle  <howard@fjst.com>
3736
3737         * url.c (get_urls_html): Would drop the last character of the
3738         link.
3739
3740 1998-09-10  Hrvoje Niksic  <hniksic@srce.hr>
3741
3742         * http.c (http_loop): Don't print status code if quiet.
3743
3744 1998-09-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3745
3746         * log.c: Use <stdarg.h> only when __STDC__.
3747
3748 1998-09-10  Adam D. Moss  <adam@foxbox.org>
3749
3750         * html.c (htmlfindurl): Download <layer src=...>.
3751
3752 1998-09-10  Howard Gayle  <howard@fjst.com>
3753
3754         * ftp.c (ftp_retrieve_list): Don't update the time stamp of a file 
3755         not retrieved.
3756
3757 1998-06-27  Hrvoje Niksic  <hniksic@srce.hr>
3758
3759         * utils.c: Include <libc.h> on NeXT.
3760
3761 1998-06-26  Heinz Salzmann  <heinz.salzmann@intermetall.de>
3762
3763         * url.c (get_urls_html): Fix calculation of URL position.
3764
3765 1998-06-23  Hrvoje Niksic  <hniksic@srce.hr>
3766
3767         * version.c: Wget 1.5.2 is released.
3768
3769 1998-06-23  Dave Love  <d.love@dl.ac.uk>
3770
3771         * ftp.c, init.c, netrc.c: Include errno.h.
3772
3773         * http.c: Include errno.h and time header.
3774
3775         * Makefile.in (exext): Define.
3776         (install.bin, uninstall.bin): Use it.
3777
3778 1998-06-21  Hrvoje Niksic  <hniksic@srce.hr>
3779
3780         * http.c (http_loop): Don't attempt to compare local and remote
3781         sizes if the remote size is unknown.
3782
3783 1998-06-16  Hrvoje Niksic  <hniksic@srce.hr>
3784
3785         * url.c (get_urls_html): Use malloc() instead of alloca in the
3786         loop.
3787
3788 1998-06-13  Hrvoje Niksic  <hniksic@srce.hr>
3789
3790         * version.c: Wget 1.5.2-b4 is released.
3791
3792 1998-06-13  Hrvoje Niksic  <hniksic@srce.hr>
3793
3794         * url.c (get_urls_html): Ignore spaces before and after the URI.
3795
3796 1998-06-08  Wanderlei Antonio Cavassin  <cavassin@conectiva.com.br>
3797
3798         * ftp.c (getftp): Translate `done'.
3799
3800 1998-06-06  Hrvoje Niksic  <hniksic@srce.hr>
3801
3802         * version.c: Wget 1.5.2-b3 is released.
3803
3804 1998-06-06  Alexander Kourakos  <awk@bnt.com>
3805
3806         * init.c (cleanup): Close dfp, don't free it.
3807
3808 1998-06-06  Hrvoje Niksic  <hniksic@srce.hr>
3809
3810         * utils.c (make_directory): Twiddle.
3811
3812         * config.h.in: Added template for access().
3813
3814 1998-06-05  Mathieu Guillaume  <mat@cythere.com>
3815
3816         * html.c (htmlfindurl): Download <input src=...>
3817
3818 1998-06-03  Hrvoje Niksic  <hniksic@srce.hr>
3819
3820         * utils.c (file_exists_p): Use access() with two arguments.
3821
3822 1998-05-27  Martin Kraemer  <Martin.Kraemer@mch.sni.de>
3823
3824         * netrc.c (parse_netrc): Correct logic.
3825
3826 1998-05-27  Hrvoje Niksic  <hniksic@srce.hr>
3827
3828         * ftp.c (getftp): Added `break'; suggested by Lin Zhe Min
3829         <ljm@ljm.wownet.net>.
3830
3831 1998-05-24  Hrvoje Niksic  <hniksic@srce.hr>
3832
3833         * version.c: Wget 1.5.2-b2 is released.
3834
3835 1998-05-18  Juan Jose Rodriguez  <jcnsoft@jal1.telmex.net.mx>
3836
3837         * mswindows.h: Don't translate mkdir to _mkdir under Borland.
3838
3839 1998-05-17  Hrvoje Niksic  <hniksic@srce.hr>
3840
3841         * retr.c (elapsed_time): Return correct value when
3842         HAVE_GETTIMEOFDAY is undefined.
3843
3844 1998-05-13  Hrvoje Niksic  <hniksic@srce.hr>
3845
3846         * version.c: Wget 1.5.2-b1 is released.
3847
3848 1998-05-08  Hrvoje Niksic  <hniksic@srce.hr>
3849
3850         * getopt.c (_getopt_internal): Use exec_name instead of argv[0].
3851         (_getopt_internal): Don't translate `#if 0'-ed strings.
3852
3853 1998-05-06  Douglas E. Wegscheid  <wegscd@whirlpool.com>
3854
3855         * mswindows.c (ws_handler): Use fork_to_background().
3856
3857 1998-05-05  Hrvoje Niksic  <hniksic@srce.hr>
3858
3859         * version.c: Wget 1.5.1 is released.
3860
3861 1998-05-05  Hrvoje Niksic  <hniksic@srce.hr>
3862
3863         * http.c (parse_http_status_line): Avoid `minor' and `major'
3864         names.
3865
3866 1998-05-02  Hrvoje Niksic  <hniksic@srce.hr>
3867
3868         * utils.c (mkdirhier): Renamed to make_directory.
3869
3870 1998-05-01  Hrvoje Niksic  <hniksic@srce.hr>
3871
3872         * mswindows.c (fork_to_background): Define under Windows.
3873
3874         * utils.c (fork_to_background): New function.
3875
3876         * html.c (htmlfindurl): Removed rerdundant casts.
3877
3878 1998-05-01  Douglas E. Wegscheid  <wegscd@whirlpool.com>
3879
3880         * mswindows.c (ws_mypath): Cache the path.
3881
3882 1998-04-30  Douglas E. Wegscheid  <wegscd@whirlpool.com>
3883
3884         * ftp.h: Prefix enum ftype members with FT_.
3885
3886         * ftp-ls.c, ftp.c, html.h: Adjust accordingly.
3887
3888         * mswindows.h: Use stat under Borland, _stat under MSVC.
3889
3890 1998-04-28  Hrvoje Niksic  <hniksic@srce.hr>
3891
3892         * http.c (known_authentication_scheme_p): New function.
3893         (gethttp): Handle authorization more correctly.
3894
3895         * ftp-basic.h: Removed.
3896
3897         * cmpt.h: Removed.
3898
3899         * utils.c: Include <unistd.h> before <pwd.h>; needed under SunOS
3900         with gcc 2.8.
3901         (numdigit): Use `while' loop.
3902
3903         * http.c (create_authorization_line): Detect authentication
3904         schemes case-insensitively.
3905
3906         * http.c (extract_header_attr): Use strdupdelim().
3907         (digest_authentication_encode): Move declaration of local
3908         variables to smaller scope.
3909         (digest_authentication_encode): Reset REALM, OPAQUE and NONCE.
3910         (create_authorization_line): Detect authentication schemes
3911         case-insensitively.
3912
3913         * utils.c (touch): Constify.
3914
3915         * http.c (gethttp): Report a nicer error when no data is received.
3916
3917         * rbuf.h (RBUF_READCHAR): Ditto.
3918
3919         * ftp-basic.c (ftp_response): Use sizeof.
3920
3921 1998-04-27  Hrvoje Niksic  <hniksic@srce.hr>
3922
3923         * retr.c (print_percentage): EXPECTED is long, not int.
3924         (print_percentage): Use floating-point arithmetic to avoid
3925         overflow with large files' sizes multiplied with 100.
3926
3927 1998-04-27  Gregor Hoffleit  <flight@mathi.uni-heidelberg.de>
3928
3929         * config.h.in: Added pid_t stub.
3930
3931         * sysdep.h (S_ISREG): Moved here from mswindows.h (NeXT doesn't
3932         define it).
3933
3934 1998-04-20  Hrvoje Niksic  <hniksic@srce.hr>
3935
3936         * version.c: Wget 1.5.0 is released.
3937
3938 1998-04-18  Hrvoje Niksic  <hniksic@srce.hr>
3939
3940         * url.c (str_url): Ditto.
3941
3942         * ftp-basic.c (ftp_rest): Use new name.
3943
3944         * utils.c (long_to_string): Renamed from prnum().
3945
3946 1998-04-16  Hrvoje Niksic  <hniksic@srce.hr>
3947
3948         * version.c: Wget 1.5-b17 is released.
3949
3950 1998-04-08  Hrvoje Niksic  <hniksic@srce.hr>
3951
3952         * headers.c (header_get): New argument FLAGS.
3953
3954         * http.c (gethttp): If request is malformed, bail out of the
3955         header loop.
3956         (gethttp): Check for empty header *after* the status line checks.
3957         (gethttp): Disallow continuations for status line.
3958
3959 1998-04-08  Hrvoje Niksic  <hniksic@srce.hr>
3960
3961         * version.c: Wget 1.5-b16 is released.
3962
3963 1998-04-08  Hrvoje Niksic  <hniksic@srce.hr>
3964
3965         * init.c (commands): Renamed `always_rest' to `continue'.
3966
3967 1998-04-05  Hrvoje Niksic  <hniksic@srce.hr>
3968
3969         * all: Use it.
3970
3971         * log.c (logputs): New argument.
3972         (logvprintf): Ditto.
3973         (logprintf): Ditto.
3974
3975 1998-04-04  Hrvoje Niksic  <hniksic@srce.hr>
3976
3977         * http.c (http_atotm): Update comment.
3978
3979         * main.c (i18n_initialize): Set LC_MESSAGES, not LC_ALL.
3980
3981         * wget.h: Renamed ENABLED_NLS to HAVE_NLS.
3982
3983         * main.c (i18n_initialize): New function.
3984         (main): Use it.
3985
3986         * log.c: Include <unistd.h>.
3987
3988         * retr.c (show_progress): Cast alloca to char *.
3989
3990 1998-04-04  Hrvoje Niksic  <hniksic@srce.hr>
3991
3992         * version.c: Wget 1.5-b15 is released.
3993
3994 1998-04-04  Hrvoje Niksic  <hniksic@srce.hr>
3995
3996         * utils.h: Declare file_non_directory_p().
3997
3998 1998-04-03  Hrvoje Niksic  <hniksic@srce.hr>
3999
4000         * main.c (main): It's `tries', not `numtries' now.
4001
4002 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
4003
4004         * init.c (getperms): Removed.
4005
4006 1998-04-01  Tim Charron  <tcharron@interlog.com>
4007
4008         * log.c (logvprintf): Don't use ARGS twice.
4009
4010 1998-04-01  John  <john@futuresguide.com>
4011
4012         * mswindows.c: Cleaned up.
4013
4014 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
4015
4016         * version.c: Wget 1.5-b14 is released.
4017
4018 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
4019
4020         * ftp-opie.c (STRLEN4): New macro.
4021         (btoe): Use it.
4022
4023 1998-04-01  Junio Hamano  <junio@twinsun.com>
4024
4025         * http.c: Document all the Digest functions.
4026
4027 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
4028
4029         * utils.c (file_non_directory_p): Renamed from isfile().
4030
4031         * mswindows.h (S_ISREG): New macro, suggested by Tim Adam.
4032
4033 1998-03-31  Hrvoje Niksic  <hniksic@srce.hr>
4034
4035         * utils.c (mkdirhier): Use 0777 instead of opt.dirmode.
4036
4037         * init.c (cmd_spec_dotstyle): Use 48 dots per line for binary
4038         style.
4039         (cmd_permissions): Removed.
4040
4041         * config.h.in: Add template for WORDS_BIGENDIAN.
4042
4043 1998-03-31  Junio Hamano  <junio@twinsun.com>
4044
4045         * http.c (HEXD2asc): New macro.
4046         (dump_hash): Use it.
4047
4048 1998-03-31  Hrvoje Niksic  <hniksic@srce.hr>
4049
4050         * version.c: Wget 1.5-b13 is released.
4051
4052 1998-03-31  Hrvoje Niksic  <hniksic@srce.hr>
4053
4054         * main.c (main): Don't try to use `com'.
4055
4056 1998-03-30  Hrvoje Niksic  <hniksic@srce.hr>
4057
4058         * init.c (cmd_permissions): New function.
4059
4060 1998-03-30  Hrvoje Niksic  <hniksic@srce.hr>
4061
4062         * version.c: Wget 1.5-b12 is released.
4063
4064 1998-03-30  Hrvoje Niksic  <hniksic@srce.hr>
4065
4066         * init.c (commands): Renamed `numtries' to `tries'.
4067         (cmd_spec_debug): Removed.
4068         (home_dir): Under Windows, return `C:\' if HOME is undefined.
4069
4070 1998-03-29  Hrvoje Niksic  <hniksic@srce.hr>
4071
4072         * config.h.in: Define _XOPEN_SOURCE.
4073
4074         * init.c (check_user_specified_header): New function.
4075         (cmd_spec_header): Use it.
4076         (cmd_spec_useragent): New function.
4077
4078 1998-03-29  Hrvoje Niksic  <hniksic@srce.hr>
4079
4080         * version.c: Wget 1.5-b11 is released.
4081
4082 1998-03-28  Hrvoje Niksic  <hniksic@srce.hr>
4083
4084         * wget.h: Include <libintl.h> only if NLS is enabled.
4085
4086 1998-03-26  Hrvoje Niksic  <hniksic@srce.hr>
4087
4088         * options.h (struct options): Made `wait' a long.
4089         (struct options): Ditto for `timeout'.
4090
4091 1998-03-19  Hrvoje Niksic  <hniksic@srce.hr>
4092
4093         * utils.c (exists): Renamed to file_exists_p.
4094         (file_exists_p): Use access() if available.
4095
4096 1998-03-17  Hrvoje Niksic  <hniksic@srce.hr>
4097
4098         * utils.c (memfatal): Set save_log_p to 0 to avoid potential
4099         infloop.
4100
4101         * log.c: do_logging -> save_log_p.
4102
4103         * config.h.in: Added template for HAVE_VSNPRINTF.
4104
4105 1998-03-16  Hrvoje Niksic  <hniksic@srce.hr>
4106
4107         * init.c: Ditto.
4108
4109         * http.c: Protect declaration against non-ANSI compiler.
4110
4111         * log.c (logvprintf): Use vsnprintf() if available.
4112
4113         * getopt.c (main): Don't translate test stuff.
4114
4115 1998-03-16  Hrvoje Niksic  <hniksic@srce.hr>
4116
4117         * version.c: Wget 1.5-b10 is released.
4118
4119 1998-03-11  Hrvoje Niksic  <hniksic@srce.hr>
4120
4121         * ftp.c (getftp): Don't translate "CWD %s".
4122
4123         * wget.h (GCC_FORMAT_ATTR): Renamed from FORMAT_ATTR.
4124
4125 1998-03-07  Hrvoje Niksic  <hniksic@srce.hr>
4126
4127         * ftp-opie.c (btoe): Use memcpy() instead of strncat().
4128
4129         * log.c (logputs): New function.
4130         (logvprintf): Renamed from vlogmsg; use logputs().
4131
4132         * retr.c (show_progress): Print `[100%]' when the retrieval is
4133         finished.
4134
4135         * init.c (run_wgetrc): Use FILE, not PATH.
4136         (wgetrc_file_name): Ditto.
4137
4138 1998-03-07  Tim Adam  <tma@osa.com.au>
4139
4140         * recur.c (parse_robots): Correctly reset `entries' on empty
4141         disallow.
4142
4143 1998-03-07  Hrvoje Niksic  <hniksic@srce.hr>
4144
4145         * init.c (cmd_spec_debug): Use cmd_boolean().
4146
4147 1998-02-23  Hrvoje Niksic  <hniksic@srce.hr>
4148
4149         * http.c (gethttp): Create proxy-authorization correctly.
4150
4151 1998-02-22  Hrvoje Niksic  <hniksic@srce.hr>
4152
4153         * md5.c: Ditto.
4154
4155         * getopt.c: Use ANSI function definitions.
4156
4157         * ftp-opie.c: New file.
4158
4159         * options.h: Don't redefine EXTERN.
4160
4161         * init.c: Sort it correctly.
4162
4163 1998-02-22  Hrvoje Niksic  <hniksic@srce.hr>
4164
4165         * version.c: Wget 1.5-b9 is released.
4166
4167 1998-02-22  Hrvoje Niksic  <hniksic@srce.hr>
4168
4169         * recur.c (recursive_retrieve): Reset `first_time'.
4170
4171         * ftp.c (getftp): Added `default' clause to switches of uerr_t.
4172
4173         * rbuf.c (rbuf_peek): Simplified.
4174         (rbuf_flush): Use MINVAL.
4175
4176         * wget.h (MINVAL): Moved from url.h.
4177
4178         * rbuf.h (RBUF_FD): New macro.
4179
4180         * url.c (add_url): Add to the head of the list.
4181
4182         * ftp.c (ftp_retrieve_list): Set the permissions to downloaded
4183         file.
4184         (getftp): Set the default permissions to 0600.
4185
4186 1998-02-21  Hrvoje Niksic  <hniksic@srce.hr>
4187
4188         * url.c (get_urls_html): Ditto.
4189         (convert_links): Ditto.
4190
4191         * recur.c (parse_robots): Ditto.
4192
4193         * html.c (ftp_index): Ditto.
4194
4195         * ftp-ls.c (ftp_parse_unix_ls): Open file as binary.
4196
4197         * init.c (defaults): Initialize `opt' to zero via memset.
4198
4199         * http.c (digest_authentication_encode): goto considered harmful.
4200
4201 1998-02-19  Hrvoje Niksic  <hniksic@srce.hr>
4202
4203         * ftp.c (delelement): Simplify and fix leak.
4204
4205 1998-02-18  Hrvoje Niksic  <hniksic@srce.hr>
4206
4207         * http.c (dump_hash): Use HEXD2ASC instead of home-grown stuff.
4208
4209         * url.h (HEXD2ASC): Removed warning.
4210
4211         * init.c (comind): Use binary search.
4212         (commands): Reorganized.
4213         (setval): Ditto.
4214         (cmd_boolean): New function.
4215         (cmd_number): Ditto.
4216         (cmd_number_inf): Ditto.
4217         (cmd_string): Ditto.
4218         (cmd_vector): Ditto.
4219         (cmd_directory_vector): Ditto.
4220         (cmd_bytes): Ditto.
4221         (cmd_time): Ditto.
4222         (cmd_spec_debug): Ditto.
4223         (cmd_spec_dirmode): Ditto.
4224         (cmd_spec_dirstruct): Ditto.
4225         (cmd_spec_dotstyle): Ditto.
4226         (cmd_spec_header): Ditto.
4227         (cmd_spec_htmlify): Ditto.
4228         (cmd_spec_mirror): Ditto.
4229         (cmd_spec_outputdocument): Ditto.
4230         (cmd_spec_recursive): Ditto.
4231         (settime): Merged with cmd_time().
4232         (setbytes): Merged with cmd_bytes().
4233         (setonoff): Merged with cmd_boolean().
4234         (onoff): Ditto.
4235
4236 1998-02-17  Hrvoje Niksic  <hniksic@srce.hr>
4237
4238         * Makefile.in (distclean): Remove `config.h'.
4239
4240 1998-02-17  Hrvoje Niksic  <hniksic@srce.hr>
4241
4242         * version.c: Wget 1.5-b8 is released.
4243
4244 1998-02-17  Hrvoje Niksic  <hniksic@srce.hr>
4245
4246         * http.c (digest_authentication_encode): New function.
4247         (create_authorization_line): Use it.
4248         (dump_hash): New function.
4249         (digest_authentication_encode): Use it.
4250
4251         * fnmatch.c: Renamed from `mtch.c'.
4252
4253 1998-02-15  Karl Eichwalder  <ke@suse.de>
4254
4255         * main.c (main): Tag "Written by..." string as translatable.
4256
4257 1998-02-15  Hrvoje Niksic  <hniksic@srce.hr>
4258
4259         * wget.h (FREE_MAYBE): New macro.
4260
4261         * http.c (create_authorization_line): Don't use ANSI C string
4262         concatenation feature.
4263         (basic_authentication_encode): Use alloca() for temporary
4264         variables.
4265
4266         * recur.h: Ditto.
4267
4268         * http.c: Ditto.
4269
4270         * headers.h: Ditto.
4271
4272         * ftp-basic.c: Protect declaration against non-ANSI compiler.
4273
4274         * http.c (create_authorization_line): Cast `unsigned char *' to
4275         `char *' for sprintf, to shut up the noisy Digital Unix cc.
4276
4277 1998-02-15  Hrvoje Niksic  <hniksic@srce.hr>
4278
4279         * version.c: Wget 1.5-b7 is released.
4280
4281 1998-02-15  Hrvoje Niksic  <hniksic@srce.hr>
4282
4283         * cmpt.c (strstr): Synched with glibc-2.0.6.
4284
4285         * ftp-basic.c (calculate_skey_response): Ditto.
4286         (calculate_skey_response): Use alloca().
4287
4288         * http.c (create_authorization_line): Work with FSF's version of
4289         md5.c.
4290
4291         * md5.c: New file, from GNU libc.
4292
4293 1998-02-14  Hrvoje Niksic  <hniksic@srce.hr>
4294
4295         * url.h (URL_CLEANSE): Name the temporary variable more carefully.
4296
4297 1998-02-13  Hrvoje Niksic  <hniksic@srce.hr>
4298
4299         * http.c (basic_authentication_encode): New function, instead of
4300         the macro.
4301
4302 1998-02-13  Junio Hamano  <junio@twinsun.com>
4303
4304         * http.c: Add HTTP-DA support.
4305         * ftp-basic.c: Add Opie/S-key support.
4306         * config.h.in, Makefile.in: Add HTTP-DA and Opie/S-key support.
4307         * md5.c, md5.h: New files.
4308
4309 1998-02-13  Hrvoje Niksic  <hniksic@srce.hr>
4310
4311         * http.c (http_process_range): Renamed from hprocrange().
4312         (http_process_range): Parse the whole header.
4313
4314         * headers.c: New file.
4315         (header_process): New function.
4316         (header_get): Renamed from fetch_next_header.
4317
4318         * all: Include utils.h only where necessary.
4319
4320         * wget.h: Declare xmalloc(), xrealloc() and xstrdup() here.
4321
4322         * wget.h: Add provisions for dmalloc.
4323
4324 1998-02-12  Hrvoje Niksic  <hniksic@srce.hr>
4325
4326         * version.c: Wget 1.5-b6 is released.
4327
4328 1998-02-12  Hrvoje Niksic  <hniksic@srce.hr>
4329
4330         * ftp.c (ftp_loop): Determine `filename' more precisely.
4331
4332         * init.c (setval): Don't set `opt.quiet' if output-document is
4333         `-'.
4334
4335         * log.c (log_init): Print to STDERR instead of STDOUT.
4336         (vlogmsg): Use STDERR by default.
4337         (logflush): Ditto.
4338
4339 1998-02-11  Simon Josefsson  <jas@pdc.kth.se>
4340
4341         * host.c: Use addr_in again.
4342
4343 1998-02-08  Karl Eichwalder  <karl@suse.de>
4344
4345         * http.c (gethttp): Fixed typo.
4346
4347 1998-02-08  Hrvoje Niksic  <hniksic@srce.hr>
4348
4349         * version.c: Wget 1.5-b5 is released.
4350
4351 1998-02-08  Hrvoje Niksic  <hniksic@srce.hr>
4352
4353         * retr.c (show_progress): Use it.
4354
4355         * log.c (logflush): New function.
4356
4357         * wget.h: Utilize __attribute__ if on gcc.
4358
4359 1998-02-07  Hrvoje Niksic  <hniksic@srce.hr>
4360
4361         * http.c (base64_encode_line): New argument LENGTH.
4362         (BASIC_AUTHENTICATION_ENCODE): Use it.
4363         (BASIC_AUTHENTICATION_ENCODE): Take length of HEADER into account.
4364
4365         * main.c (main): Fixed fprintf() format mismatch.
4366
4367 1998-02-06  Hrvoje Niksic  <hniksic@srce.hr>
4368
4369         * version.c: Wget 1.5-b4 is released.
4370
4371 1998-02-03  Simon Josefsson  <jas@pdc.kth.se>
4372
4373         * host.c: use sockaddr_in instead of addr_in.
4374
4375 1998-02-04  Hrvoje Niksic  <hniksic@srce.hr>
4376
4377         * init.c (cleanup): Use it.
4378
4379         * recur.c (recursive_cleanup): New function.
4380
4381         * retr.c (retrieve_from_file): Ditto.
4382
4383         * main.c (main): Use it.
4384
4385         * recur.c (recursive_reset): New function.
4386
4387         * retr.c (retrieve_from_file): Ditto.
4388
4389         * main.c (main): Simplify call to recursive_retrieve().
4390
4391         * recur.c (recursive_retrieve): Removed FLAGS argument.
4392
4393         * http.c (gethttp): Changed call to iwrite().
4394
4395 1998-02-03  Hrvoje Niksic  <hniksic@srce.hr>
4396
4397         * url.c (get_urls_html): Ditto.
4398         (free_urlpos): Ditto.
4399         (mkstruct): Ditto.
4400         (construct): Ditto.
4401
4402         * retr.c (retrieve_url): Move declaration of local variables to
4403         smaller scope.
4404
4405         * url.c (urlproto): Use it.
4406         (parseurl): Ditto.
4407         (str_url): Ditto.
4408         (get_urls_html): Ditto.
4409
4410         * utils.h (ARRAY_SIZE): New macro.
4411
4412         * url.c (proto): Moved from url.h.
4413
4414         * url.h (URL_CLEANSE): Reformatted.
4415         (USE_PROXY_P): Renamed from USE_PROXY.
4416
4417         * ftp-basic.c: Adjust to the new interface of iwrite().
4418
4419         * ftp-basic.c (ftp_port): Use alloca().
4420
4421 1998-02-03  Hrvoje Niksic  <hniksic@srce.hr>
4422
4423         * version.c: Wget 1.5-b3 is released.
4424
4425         * host.c (ftp_getaddress): Don't print to stderr directly.
4426
4427         * init.c (setbytes): Support `g' for gigabytes.
4428         (cmdtype): New specification CTIME.
4429         (setval): Use it with settime().
4430         (commands): Use it for WAIT and TIMEOUT.
4431
4432 1998-02-02  Hrvoje Niksic  <hniksic@srce.hr>
4433
4434         * http.c (BASIC_AUTHENTICATION_ENCODE): New macro.
4435         (gethttp): Use it.
4436
4437         * utils.c (unique_name_1): Moved from url.c.
4438         (unique_name): Ditto.
4439
4440         * url.c (url_filename): Ditto.
4441
4442         * log.c (redirect_output): Changed call to unique_name().
4443
4444         * url.c (unique_name_1): Renamed from unique_name().
4445         (unique_name): Changed interface.
4446
4447         * init.c (enum cmdid): Moved from init.h.
4448         (cmdtype): Ditto.
4449         (struct cmd): Ditto.
4450
4451         * main.c (main): Use it.
4452         (main): Moved `--backups' to not have a short option.
4453
4454         * options.h (struct options): New member BACKGROUND.
4455
4456         * main.c (print_help): Rearranged.
4457         (main): New long options for -n* short options: --no-directories,
4458         --no-host-directories, --non-verbose, --no-host-lookup and
4459         --dont-remove-listing.
4460
4461 1998-02-01  Hrvoje Niksic  <hniksic@srce.hr>
4462
4463         * main.c (main): Use log_close().
4464
4465         * log.c: New variable LOGFP.
4466         (vlogmsg): Use it.
4467         (redirect_output): Don't open /dev/null; set LOGFP to stdin
4468         instead.
4469         (log_close): New function.
4470
4471         * options.h (struct options): Removed LFILE.
4472
4473         * log.c (log_enable): Removed.
4474
4475         * main.c (main): Use it.
4476
4477         * log.c (log_init): New function.
4478
4479         * url.c (get_urls_html): Removed needless assignment to BASE.
4480
4481         * host.c (add_hlist): Don't set CMP needlessly.
4482
4483         * utils.c (match_backwards): Ditto.
4484         (in_acclist): Ditto.
4485
4486         * url.c (findurl): Ditto.
4487
4488         * netrc.c (parse_netrc): Ditto.
4489
4490         * log.c (log_dump): Ditto.
4491
4492         * html.c (html_quote_string): Ditto.
4493
4494         * ftp-basic.c (ftp_request): Made static.
4495
4496         * connect.c: Made global variables static.
4497
4498         * url.c (construct): Ditto.
4499
4500         * init.c (init_path): Avoid assignment inside `if'-condition.
4501
4502         * ftp.c: Don't include in.h or winsock.h.
4503
4504         * ftp.c (ftp_loop): Use SZ.
4505
4506         * connect.c (bindport): Cast &addrlen to int *.
4507         (conaddr): Ditto.
4508
4509         * init.c (initialize): Don't use SYSTEM_WGETRC unconditionally.
4510
4511 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
4512
4513         * ftp.c (getftp): Initialize opt.ftp_pass here.
4514         (ftp_retrieve_dirs): Use alloca().
4515
4516         * init.c (defaults): Don't initialize opt.ftp_pass.
4517
4518         * sysdep.h (S_ISLNK): Declare for OS/2; ditto for lstat.
4519         From Ivan F. Martinez <ivanfm@ecodigit.com.br>.
4520
4521 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
4522
4523         * recur.c (parse_robots): Check for comments more correctly.
4524
4525         * host.c (ftp_getaddress): Use STRDUP_ALLOCA.
4526         (ftp_getaddress): Add diagnostics when reverse-lookup yields only
4527         hostname.
4528
4529 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
4530
4531         * version.c: Wget 1.5-b2 is released.
4532
4533         * netrc.c (NETRC_FILE_NAME): Moved from netrc.h.
4534
4535         * utils.c (proclist): Pass FNM_PATHNAME to fnmatch().
4536
4537         * ftp-basic.c (ftp_pasv): Avoid unnecessary casting to unsigned
4538         char.
4539
4540         * log.c: Don't attempt to hide arguments from ansi2knr.
4541
4542         * cmpt.c: Synched strptime() and mktime() with glibc-2.0.6.
4543
4544         * ansi2knr.c: Use a later version, from fileutils-3.16l alpha.
4545
4546         * ftp.c (getftp): Ditto.
4547
4548         * http.c (gethttp): Use it.
4549
4550         * retr.c (get_contents): New argument EXPECTED; pass it to
4551         show_progress().
4552         (show_progress): New argument EXPECTED; use it to display
4553         percentages.
4554
4555         * init.c (setval): Ditto.
4556
4557         * http.c (gethttp): Ditto.
4558         (http_loop): Ditto.
4559
4560         * ftp.c (getftp): Ditto.
4561         (ftp_loop_internal): Ditto.
4562
4563         * ftp-ls.c (ftp_parse_unix_ls): Use abort() instead of assert(0).
4564
4565         * sysdep.h (CLOSE): Simplify; use DEBUGP.
4566
4567         * netrc.c (search_netrc): Use alloca().
4568
4569         * init.c (defaults): Initialize no_flush.
4570
4571         * log.c (vlogmsg): Don't flush if no_flush.
4572
4573         * options.h (struct options): New variable no_flush.
4574
4575         * main.c (main): Don't play games with buffering.
4576
4577         * log.c (vlogmsg): Flush the output after every message.
4578
4579 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
4580
4581         * init.c (parse_line): Ditto.
4582
4583         * url.c (get_urls_html): Ditto.
4584
4585         * main.c (main): Don't cast to unsigned char.
4586
4587         * init.c (run_wgetrc): Don't cast to unsigned char.
4588         (parse_line): Accept char instead of unsigned char.
4589
4590         * html.c (htmlfindurl): Use char instead of unsigned char.
4591
4592         * all: Use them.
4593
4594         * sysdep.h: Add wrappers to ctype macros to make them
4595         eight-bit-clean:
4596
4597 1998-01-30  Hrvoje Niksic  <hniksic@srce.hr>
4598
4599         * html.c (htmlfindurl): Download <img lowsrc=...>
4600
4601         * main.c (main): Ignore SIGPIPE.
4602
4603         * connect.c (select_fd): New argument WRITEP.
4604         (iwrite): Call select_fd().
4605
4606 1997-02-27  Fila Kolodny <fila@ibi.com>
4607
4608         * ftp.c (ftp_retrieve_list): If retrieving symlink and the proper
4609         one already exists, just skip it.
4610
4611 1998-01-30  Hrvoje Niksic  <hniksic@srce.hr>
4612
4613         * http.c (gethttp): Cosmetic changes.
4614
4615         * http.c (check_end): Allow `+D...' instead of `GMT'.
4616         From Fabrizio Pollastri <pollastri@cstv.to.cnr.it>.
4617
4618         * url.c (process_ftp_type): New function.
4619         (parseurl): Use it.
4620
4621         * connect.c (iwrite): Allow writing in a few chunks.
4622         (bindport): Made SRV static, so addr can point to it.
4623         (select_fd): Removed HPUX kludge.
4624
4625         * host.c (free_hlist): Incorporated into clean_hosts().
4626
4627 1998-01-29  Hrvoje Niksic  <hniksic@srce.hr>
4628
4629         * host.c (hlist): Made static.
4630         (search_address): Cosmetic change.
4631
4632 1998-01-29  Hrvoje Niksic  <hniksic@srce.hr>
4633
4634         * version.c: Wget v1.5-b1 is released.
4635
4636         * http.c (hgetlen): Use sizeof() to get the header length.
4637         (hgetrange): Ditto.
4638         (hgettype): Ditto.
4639         (hgetlocation): Ditto.
4640         (hgetmodified): Ditto.
4641         (haccepts_none): Ditto.
4642
4643         * main.c (main): Updated `--version' and `--help' output, as per
4644         Francois Pinard's suggestions.
4645
4646         * main.c: Include locale.h; call setlocale(), bindtextdomain() and 
4647         textdomain().
4648
4649         * config.h.in: Define stubs for I18N3.
4650
4651         * wget.h: Include libintl.h.
4652
4653 1998-01-28  Hrvoje Niksic  <hniksic@srce.hr>
4654
4655         * url.c (mkstruct): Check for opt.cut_dirs.
4656         (mkstruct): alloca()-te more, xmalloc() less.
4657
4658         * utils.c (load_file): Check for ferror().
4659
4660         * url.c (get_urls_file): Close only the files we opened.
4661         (get_urls_html): Ditto.
4662         (count_slashes): New function.
4663
4664         * http.h: Removed.
4665
4666         * http.c (gethttp): Respect username and password provided by
4667         proxy URL.
4668         (base64_encode_line): Write into an existing buffer instead of
4669         malloc-ing a new one.
4670         (struct http_stat): Moved from http.h
4671
4672         * retr.c (retrieve_url): Free SUF.
4673
4674         * all: Removed lots of unnecessary .h dependencies.
4675
4676         * html.c (global_state): Made static.
4677
4678         * utils.h (ALLOCA_ARRAY): New macro.
4679
4680         * main.c (main): New option `--cut-dirs'.
4681
4682         * url.c (construct): Use alloca() for T.
4683
4684         * utils.c (mkdirhier): Use STRDUP_ALLOCA.
4685
4686         * host.c (_host_t): Moved from host.h.
4687         (struct host): Renamed from _host_t.
4688         (store_hostaddress): Use STRDUP_ALLOCA for INET_S.
4689         (realhost): Ditto.
4690
4691         * host.h: Don't include url.h.
4692
4693         * ftp.c (LIST_FILENAME): Moved from ftp.h.
4694
4695         * init.c (DEFAULT_FTP_ACCT): Moved from ftp.h.
4696
4697         * main.c (main): Enable log if the output goes to a TTY.
4698
4699         * connect.h: Removed unused constant `BACKLOG'.
4700
4701         * config.h.in: Check for isatty().
4702
4703         * Makefile.in (LINK): Use CFLAGS when linking.
4704
4705 1998-01-27  Hrvoje Niksic  <hniksic@srce.hr>
4706
4707         * mswindows.c (ws_hangup): Use redirect_output().
4708
4709         * main.c (redirect_output_signal): New function; use
4710         redirect_output().
4711
4712         * log.c (redirect_output): New function, based on hangup(), which
4713         is deleted.
4714
4715         * log.c (vlogmsg): New function.
4716
4717         * wget.h (DEBUGP): Use debug_logmsg().
4718
4719         * main.c (hangup): Use it.
4720
4721         * log.c (log_dump): New function.
4722
4723         * utils.h (DO_REALLOC): Use `long' for various sizes.
4724
4725         * http.c (hskip_lws): Use `while', for clarity.
4726         (HTTP_DYNAMIC_LINE_BUFFER): New constant.
4727         (fetch_next_header): Use it instead of DYNAMIC_LINE_BUFFER.
4728
4729         * ftp-basic.c (FTP_DYNAMIC_LINE_BUFFER): New constant.
4730         (ftp_response): Use it instead of DYNAMIC_LINE_BUFFER.
4731
4732         * utils.c (DYNAMIC_LINE_BUFFER): Moved from utils.c.
4733         (LEGIBLE_SEPARATOR): Ditto.
4734         (FILE_BUFFER_SIZE): Ditto.
4735
4736         * retr.c (BUFFER_SIZE): Moved from retr.h.
4737
4738         * log.c: New file.
4739         (logmsg): Moved from utils.c.
4740         (debug_logmsg): New function.
4741
4742         * mswindows.h: Include it here.
4743
4744         * init.c: Ditto.
4745
4746         * utils.c: Don't include <windows.h>.
4747
4748 1998-01-25  Hrvoje Niksic  <hniksic@srce.hr>
4749
4750         * host.c (ftp_getaddress): Ditto.
4751
4752         * main.c (main): Use it.
4753
4754         * utils.h (STRDUP_ALLOCA): New macro.
4755
4756         * init.c: Prepend `wget: ' to error messages printed on stderr.
4757
4758         * utils.c (mkdirhier): Renamed from mymkdir.
4759         (touch): Renamed from my_touch.
4760         (pwd_cuserid): Renamed from my_cuserid().
4761
4762 1998-01-24  Andy Eskilsson  <andy.eskilsson@telelogic.se>
4763
4764         * utils.c (accdir): Process wildcards.
4765         (proclist): New function.
4766         (accdir): Use it to avoid code repetition.
4767
4768 1998-01-24  Hrvoje Niksic  <hniksic@srce.hr>
4769
4770         * recur.c (parse_robots): Respect opt.useragent; use alloca().
4771
4772         * http.c (gethttp): Construct useragent accordingly.
4773
4774         * version.c: Changed version string to numbers-only.
4775
4776         * main.c (print_help): List all the options.
4777
4778         * mswindows.c (windows_main_junk): Initialize argv0 here.
4779
4780 1998-01-24  Karl Heuer  <kwzh@gnu.org>
4781
4782         * netrc.c (search_netrc): Initialize `l' only after processing
4783         netrc.
4784
4785         * main.c (main): Don't trap SIGHUP if it's being ignored.
4786
4787 1998-01-24  Hrvoje Niksic  <hniksic@srce.hr>
4788
4789         * all: Use logmsg().
4790
4791         * utils.c (time_str): Moved from retr.c.
4792         (logmsg): New function.
4793         (logmsg_noflush): Ditto.
4794
4795         * rbuf.c: New file, moved buf_* functions here.
4796
4797         * ftp.c (ftp_expected_bytes): Moved from ftp-basic.c.
4798
4799         * ftp-basic.c (ftp_rest): Use prnum().
4800
4801         * ftp-basic.c: Ditto.
4802
4803         * ftp.c: Use the new reading functions and macros.
4804
4805         * retr.c (buf_initialize): New function.
4806         (buf_initialized_p): Ditto.
4807         (buf_uninitialize): Ditto.
4808         (buf_fd): Ditto.
4809
4810         * http.c (fetch_next_header): Use the BUF_READCHAR macro for
4811         efficiency.
4812         (gethttp): Use alloca() where appropriate.
4813
4814         * retr.c (buf_readchar): Use it.
4815         (buf_peek): Use rstreams.
4816
4817         * retr.h (BUF_READCHAR): New macro.
4818
4819         * init.c (home_dir): Rewritten for clarity.
4820         (init_path): Ditto.
4821
4822         * mswindows.c (ws_backgnd): Made static.
4823         (read_registry): Ditto.
4824         (ws_cleanup): Ditto.
4825         (ws_handler): Ditto.
4826
4827 1998-01-23  Hrvoje Niksic  <hniksic@srce.hr>
4828
4829         * alloca.c: New file.
4830
4831         * Makefile.in (ALLOCA): Define.
4832
4833         * mswindows.c (ws_help): Constify.
4834         (ws_help): Use alloca.
4835
4836         * mswindows.c: Reformat.
4837
4838         * all: Added _(...) annotations for I18N snarfing and translation.
4839
4840         * host.c (ftp_getaddress): Nuke SYSINFO.
4841         (ftp_getaddress): Don't use getdomainname().
4842         (ftp_getaddress): Use uname(), where available.
4843
4844         * http.c (gethttp): Protect a stray fprintf().
4845
4846         * init.c (settime): New function.
4847         (setval): Treat WAIT specially, allowing suffixes like `m' for
4848         minutes, etc.
4849
4850 1998-01-21  Hrvoje Niksic  <hniksic@srce.hr>
4851
4852         * url.c (get_urls_html): Use alloca() for TEMP.
4853
4854 1998-01-21  Jordan Mendelson  <jordy@wserv.com>
4855
4856         * url.c (rotate_backups): New function.
4857
4858         * http.c (gethttp): Ditto.
4859
4860         * ftp.c (getftp): Rotate backups.
4861
4862 1997-12-18  Hrvoje Niksic  <hniksic@srce.hr>
4863
4864         * all: Renamed nmalloc(), nrealloc() and nstrdup() to xmalloc(),
4865         xrealloc() and xstrdup().  Use the new functions.
4866
4867         * url.c (decode_string): Made static.
4868         (has_proto): Ditto.
4869         (parse_dir): Ditto.
4870         (parse_uname): Ditto.
4871         (mkstruct): Ditto.
4872         (construct): Ditto.
4873         (construct_relative): Ditto.
4874
4875         * retr.c (show_progress): Made static.
4876
4877         * recur.c (robots_url): Made static.
4878         (retrieve_robots): Ditto.
4879         (parse_robots): Ditto.
4880         (robots_match): Ditto.
4881
4882         * main.h: Removed.
4883
4884         * main.c (printhelp): Made static.
4885         (hangup): Ditto.
4886
4887         * init.c (comind): Made static.
4888         (defaults): Ditto.
4889         (init_path): Ditto.
4890         (run_wgetrc): Ditto.
4891         (onoff): Ditto.
4892         (setonoff): Ditto.
4893         (setnum): Ditto.
4894         (myatoi): Ditto.
4895         (getperms): Ditto.
4896         (setbytes): Ditto.
4897
4898         * http.c (fetch_next_header): Made static.
4899         (hparsestatline): Ditto.
4900         (hskip_lws): Ditto.
4901         (hgetlen): Ditto.
4902         (hgetrange): Ditto.
4903         (hgettype): Ditto.
4904         (hgetlocation): Ditto.
4905         (hgetmodified): Ditto.
4906         (haccepts_none): Ditto.
4907         (gethttp): Ditto.
4908         (base64_encode_line): Ditto.
4909         (mktime_from_utc): Ditto.
4910         (http_atotm): Ditto.
4911
4912         * html.c (idmatch): Made static.
4913
4914         * host.c (search_host): Made static.
4915         (search_address): Ditto.
4916         (free_hlist): Ditto.
4917
4918         * ftp.c (getftp): Made static.
4919         (ftp_loop_internal): Ditto.
4920         (ftp_get_listing): Ditto.
4921         (ftp_retrieve_list): Ditto.
4922         (ftp_retrieve_dirs): Ditto.
4923         (ftp_retrieve_glob): Ditto.
4924         (freefileinfo): Ditto.
4925         (delelement): Ditto.
4926
4927         * ftp-ls.c (symperms): Made static.
4928         (ftp_parse_unix_ls): Ditto.
4929
4930         * connect.c (select_fd): Made static.
4931
4932         * utils.c (xmalloc): Renamed from nmalloc.
4933         (xrealloc): Renamed from nrealloc.
4934         (xstrdup): Renamed from nstrdup.
4935
4936         * getopt.c (exchange): Use alloca.
4937
4938         * mswindows.c (mycuserid): Use strncpy.
4939
4940         * New files mswindows.c, mswindows.h, sysdep.h.  winjunk.c,
4941         systhings.h, windecl.h and winjunk.h removed.
4942
4943         * mswindows.c (sleep): New function.
4944
4945         * utils.c: Include <windows.h> under Windows.
4946
4947 1997-06-12  Darko Budor  <dbudor@zesoi.fer.hr>
4948
4949         * url.h (URL_UNSAFE): Change default under Windows.
4950
4951         * retr.c (retrieve_from_file): Respect opt.delete_after.
4952
4953         * main.c (main): Call ws_help on Windows.
4954
4955         * winjunk.c (windows_main_junk): New function.
4956
4957         * main.c (main): Junk-process argv[0].
4958
4959         * http.c (mktime_from_utc): Return -1 if mktime failed.
4960
4961         * http.c (http_loop): Ditto.
4962
4963         * ftp.c (ftp_loop_internal): Change title on Windows when using a
4964         new URL.
4965
4966         * winjunk.c (getdomainname): Lots of functions.
4967
4968 1997-06-12  Hrvoje Niksic  <hniksic@srce.hr>
4969
4970         * cmpt.c (strptime_internal): Handle years more correctly for
4971         `%y'.
4972
4973 1997-06-09  Mike Thomas <mthomas@reality.ctron.com>
4974
4975         * http.c (gethttp): Allocate enough space for
4976         `Proxy-Authorization' header.
4977
4978 1997-05-10  Hrvoje Niksic  <hniksic@srce.hr>
4979
4980         * version.c: Wget/1.4.5 is released.
4981
4982 1997-05-10  Hrvoje Niksic  <hniksic@srce.hr>
4983
4984         * retr.c (get_contents): Check return value of fwrite more
4985         carefully.
4986
4987 1997-03-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4988
4989         * cmpt.c (strptime_internal) [case 'Y']: Always subtract 1900 from
4990         year, regardless of century.
4991
4992 1997-03-30  Hrvoje Niksic  <hniksic@srce.hr>
4993
4994         * utils.c (isfile): Use `lstat' instead of `stat'.
4995
4996 1997-03-29  Hrvoje Niksic  <hniksic@srce.hr>
4997
4998         * utils.c (numdigit): Use explicit test.
4999
5000 1997-03-21  Hrvoje Niksic  <hniksic@srce.hr>
5001
5002         * http.c (http_loop): Always use `url_filename' to get u->local.
5003
5004 1997-03-20  Hrvoje Niksic  <hniksic@srce.hr>
5005
5006         * url.c: Recognize https.
5007
5008 1997-03-13  Hrvoje Niksic  <hniksic@srce.hr>
5009
5010         * recur.c (recursive_retrieve): Lowercase just the host name.
5011
5012 1997-03-09  Hrvoje Niksic  <hniksic@srce.hr>
5013
5014         * url.c (get_urls_file): Use the correct test.
5015         (get_urls_html): Ditto.
5016
5017 1997-03-07  Hrvoje Niksic  <hniksic@srce.hr>
5018
5019         * connect.c: Reverted addrlen to int.
5020
5021         * init.c (parse_line): Check for -1 instead of NONE.
5022
5023         * version.c: Changed version to 1.4.5.
5024
5025 1997-02-17  Hrvoje Niksic  <hniksic@srce.hr>
5026
5027         * init.c: New option netrc.
5028         (initialize): Don't parse .netrc.
5029
5030         * cmpt.c (recursive): Return rp.
5031         (strptime_internal): Match the long strings first, the abbreviated
5032         second.
5033
5034 1997-02-16  Hrvoje Niksic  <hniksic@srce.hr>
5035
5036         * http.c (check_end): New function.
5037         (http_atotm): Use it.
5038  
5039 1997-02-13  gilles Cedoc  <gilles@cedocar.fr>
5040
5041         * http.c (gethttp): Use them.
5042
5043         * init.c: New options proxy_user and proxy_passwd.
5044
5045 1997-02-14  Hrvoje Niksic  <hniksic@srce.hr>
5046
5047         * ftp.c (ftp_retrieve_list): Create links even if not relative.
5048
5049 1997-02-10  Hrvoje Niksic  <hniksic@srce.hr>
5050
5051         * recur.c (recursive_retrieve): Lowercase the host name, if the
5052         URL is not "optimized".
5053
5054         * host.c (realhost): Return l->hostname, even if it matches with
5055         host.
5056
5057 1997-02-10  Marin Purgar  <pmc@asgard.hr>
5058
5059         * connect.c: Make addrlen size_t instead of int.
5060         (conaddr): Ditto.
5061
5062 1997-02-09  Gregor Hoffleit  <flight@mathi.uni-heidelberg.DE>
5063
5064         * systhings.h: Define S_ISLNK on NeXT too.
5065
5066 1997-02-09  Hrvoje Niksic  <hniksic@srce.hr>
5067
5068         * version.c: Released 1.4.3.
5069
5070         * url.c: Futher update to list of protostrings.
5071         (skip_proto): Skip `//' correctly for FTP and HTTP.
5072
5073         * url.c (get_urls_html): Handle bogus `http:' things a little
5074         different.
5075
5076         * main.c (main): Removed `follow-ftp' from `f'.
5077         (main): Dumped the `prefix-files' and `file-prefix' options and
5078         features; old and bogus.
5079         (main): Exit on failed setval() in `-e'.
5080
5081         * http.c (fetch_next_header): Use it to detect header continuation
5082         correctly.
5083
5084         * retr.c (buf_peek): New function.
5085
5086 1997-02-08  Hrvoje Niksic  <hniksic@srce.hr>
5087
5088         * wget.h: Include time.h and stuff.
5089
5090 1997-02-08  Roger Beeman  <beeman@cisco.com>
5091
5092         * ftp.c: Include <time.h>
5093
5094 1997-02-07  Hrvoje Niksic  <hniksic@srce.hr>
5095
5096         * url.c (findurl): Would read over buffer limits.
5097
5098 1997-02-06  Hrvoje Niksic  <hniksic@srce.hr>
5099
5100         * ftp-ls.c (ftp_parse_unix_ls): Allow spaces in file names.
5101
5102 1997-02-05  Hrvoje Niksic  <hniksic@srce.hr>
5103
5104         * http.c (http_atotm): Initialize tm.is_dst.
5105
5106 1997-02-02  Hrvoje Niksic  <hniksic@srce.hr>
5107
5108         * http.c (gethttp): Don't print the number of retrieved headers.
5109
5110         * main.c (main): New option `--no-clobber', alias for `-nc'.
5111
5112         * url.c: Recognize `https://'.
5113
5114 1997-02-01  Hrvoje Niksic  <hniksic@srce.hr>
5115
5116         * host.c (herrmsg): Don't use h_errno.
5117
5118 1997-01-30  Hrvoje Niksic  <hniksic@srce.hr>
5119
5120         * host.c (accept_domain): Use it.
5121
5122         * main.c (main): New option `--exclude-domains'.
5123
5124         * retr.c (retrieve_url): Use it.
5125         (retrieve_url): Bail out when an URL is redirecting to itself.
5126
5127         * url.c (url_equal): New function.
5128
5129 1997-01-29  Hrvoje Niksic  <hniksic@srce.hr>
5130
5131         * connect.c: Include arpa/inet.h instead of arpa/nameser.h.
5132
5133         * http.c (mk_utc_time): New function.
5134         (http_atotm): Use it; handle time zones correctly.
5135
5136 1997-01-28  Hrvoje Niksic  <hniksic@srce.hr>
5137
5138         * http.c: Ditto.
5139
5140         * ftp-basic.c: Use it instead of WRITE.
5141
5142         * connect.c (iwrite): New function.
5143
5144 1997-01-27  Hrvoje Niksic  <hniksic@srce.hr>
5145
5146         * cmpt.c (mktime): New function.
5147
5148         * netrc.c: Include <sys/types.h>.
5149
5150         * main.c (main): Wouldn't recognize --spider.
5151
5152         * retr.c (rate): Use `B', `KB' and `MB'.
5153         (reset_timer,elapsed_time): Moved from utils.c.
5154
5155         * ftp.c (ftp_retrieve_list): Ditto.
5156
5157         * http.c (http_loop): Don't touch the file if opt.dfp.
5158
5159 1997-01-24  Hrvoje Niksic  <hniksic@srce.hr>
5160
5161         * cmpt.c: New file.
5162
5163         * ftp.c (ftp_retrieve_glob): New argument semantics.
5164         (ftp_retrieve_dirs): Use it.
5165         (ftp_loop): Ditto.
5166
5167         * html.c (htmlfindurl): Recognize `'' as the quote char.
5168
5169 1997-01-23  Hrvoje Niksic  <hniksic@srce.hr>
5170
5171         * ftp.c (ftp_loop_internal): Use it.
5172
5173         * utils.c (remove_link): New function.
5174
5175 1997-01-22  Hrvoje Niksic  <hniksic@srce.hr>
5176
5177         * retr.c (retrieve_url): Require STRICT redirection URL.
5178
5179         * url.c (parseurl): New argument STRICT.
5180
5181         * http.c (hparsestatline): Be a little-bit less strict about
5182         status line format.
5183
5184 1997-01-21  Hrvoje Niksic  <hniksic@srce.hr>
5185
5186         * http.c (gethttp): Use it.
5187
5188         * main.c (main): Don't use '<digit>' as options.
5189
5190         * init.c: New option ignore_length.
5191
5192         * http.c (gethttp): Ditto.
5193         (http_loop): Check for redirection without Location:.
5194         (gethttp): Don't print Length unless RETROKF.
5195
5196         * ftp.c (getftp): Use it.
5197
5198         * url.c (mkalldirs): New function.
5199
5200         * utils.c (mymkdir): Don't check for existing non-directory.
5201
5202         * url.c (mkstruct): Don't create the directory.
5203
5204 1997-01-20  Hrvoje Niksic  <hniksic@srce.hr>
5205
5206         * init.c (setval): Removed NO_RECURSION checks.
5207
5208 1997-01-19  Hrvoje Niksic  <hniksic@srce.hr>
5209
5210         * version.c: "Released" 1.4.3-pre2.
5211
5212         * recur.c (recursive_retrieve): Bypass host checking only if URL
5213         is ftp AND parent URL is not ftp.
5214
5215         * ftp-basic.c (ftp_request): Print out Turtle Power.
5216
5217         * ftp.c (ftp_loop): Call ftp_retrieve_glob with 0 if there's no
5218         wildcard.
5219         (ftp_retrieve_glob): Call ftp_loop_internal even on empty list, if
5220         not glob.
5221
5222         * http.c (gethttp): Be a little bit smarter about status codes.
5223
5224         * recur.c (recursive_retrieve): Always reset opt.recursive when
5225         dealing with FTP.
5226
5227 1997-01-18  Hrvoje Niksic  <hniksic@srce.hr>
5228
5229         * retr.c (retrieve_url): New variable location_changed; use it for
5230         tests instead of mynewloc.
5231         (retrieve_url): Allow heuristic adding of html.
5232
5233         * url.c (url_filename): Don't use the `%' in Windows file names.
5234
5235         * http.c (http_loop): Always time-stamp the local file.
5236
5237         * http.c (http_loop): Ditto.
5238
5239         * ftp.c (ftp_retrieve_list): Use it.
5240
5241         * utils.c (my_touch): New function.
5242
5243         * ftp.c (ftp_retrieve_list): Use #ifdef HAVE_STRUCT_UTIMBUF
5244         instead of #ifndef NeXT.
5245
5246         * utils.c (strptime): New version, by Ulrich Drepper.
5247
5248 1997-01-17  Hrvoje Niksic  <hniksic@srce.hr>
5249
5250         * http.c (haccepts_none): Renamed from `haccepts_bytes'.
5251         (gethttp): If haccepts_none(), disable ACCEPTRANGES.
5252         (http_loop): Would remove ACCEPTRANGES.
5253
5254         * ftp.c (getftp): Call ftp_list with NULL.
5255
5256 1997-01-15  Hrvoje Niksic  <hniksic@srce.hr>
5257
5258         * html.c (ftp_index): Don't print minutes and seconds if we don't
5259         know them; beautify the output.
5260
5261         * ftp.c (getftp): Don't close the socket on FTPNSFOD.
5262
5263 1997-01-14  Hrvoje Niksic  <hniksic@srce.hr>
5264
5265         * utils.c (strptime): New function.
5266         (strptime): Don't use get_alt_number.
5267         (strptime): Don't use locale.
5268         (match_string): Made it a function.
5269
5270 1997-01-12  Hrvoje Niksic  <hniksic@srce.hr>
5271
5272         * http.c (http_atotm): New function.
5273         (http_loop): Use it.
5274
5275         * atotm.c: Removed from the distribution.
5276
5277         * http.c (base64_encode_line): Rewrite.
5278
5279 1997-01-09  Hrvoje Niksic  <hniksic@srce.hr>
5280
5281         * ftp.c (getftp): Use ftp_expected_bytes; print size.
5282
5283         * ftp-basic.c (ftp_response): Use ftp_last_respline.
5284         (ftp_expected_bytes): New function.
5285
5286         * ftp.c (getftp): Print the unauthoritative file length.
5287
5288         * ftp-ls.c: Renamed from ftp-unix.c.
5289         (ftp_parse_ls): Moved from ftp.c.
5290         (ftp_parse_unix_ls): Recognize seconds in time spec.
5291         (ftp_parse_unix_ls): Recognize year-less dates of the previous
5292         year.
5293
5294 1997-01-08  Hrvoje Niksic  <hniksic@srce.hr>
5295
5296         * ftp-basic.c: Don't declare errno if #defined.
5297
5298         * host.c (ftp_getaddress): Check for sysinfo legally.
5299
5300 1997-01-08  Darko Budor  <dbudor@diana.zems.fer.hr>
5301
5302         * connect.c (iread): Use READ.
5303
5304 1996-12-23  Hrvoje Niksic  <hniksic@srce.hr>
5305
5306         * url.c: Recognize finger, rlogin, tn3270, mid and cid as valid
5307         schemes.
5308
5309 1996-12-22  Hrvoje Niksic  <hniksic@srce.hr>
5310
5311         * host.c (ftp_getaddress): Allow `.' in hostname.
5312
5313 1996-12-26  Darko Budor <dbudor@zems.fer.hr>
5314
5315         * wget.h: READ and WRITE macros for use instead of read and write
5316         on sockets, grep READ *.c, grep WRITE *.c
5317
5318         * wsstartup.c: new file - startup for winsock
5319
5320         * wsstartup.h: new file
5321
5322         * win32decl.h: new file - fixup for <errno.h> and winsock trouble
5323
5324         * configure.bat: Configure utility for MSVC
5325
5326         * src/Makefile.ms,config.h.ms: new files for use with MSVC 4.x
5327
5328 1996-12-22  Hrvoje Niksic  <hniksic@srce.hr>
5329
5330         * version.c: Released 1.4.3-pre.
5331
5332         * utils.c (prnum): Accept long.
5333         (legible): Use prnum().
5334
5335         * connect.c (make_connection): Accept port as short.
5336         (bindport): Ditto.
5337
5338         * http.c (gethttp): Use search_netrc.
5339
5340 1996-12-21  Hrvoje Niksic  <hniksic@srce.hr>
5341
5342         * ftp.c (getftp): Use search_netrc.
5343
5344         * netrc.c (free_netrc): New function.
5345
5346         * init.c (home_dir): New function.
5347
5348         * url.c (convert_links): Allow REL2ABS changes.
5349
5350 1996-12-21  Gordon Matzigkeit  <gord@gnu.ai.mit.edu>
5351
5352         * netrc.c: New file.
5353         (parse_netrc, maybe_add_to_list): New functions.
5354
5355 1996-12-17  Hrvoje Niksic  <hniksic@srce.hr>
5356
5357         * retr.c (retrieve_url): Reset opt.recursion before calling
5358         ftp_loop if it is reached through newloc.
5359
5360         * init.c (run_wgetrc): Print the wgetrc path too, when reporting
5361         error; don't use "Syntax error", since we don't know if it is
5362         really a syntax error.
5363
5364 1996-12-16  Hrvoje Niksic  <hniksic@srce.hr>
5365
5366         * utils.c (acceptable): Extract the filename part of the path.
5367
5368         * recur.c (recursive_retrieve): Call acceptable() with the right
5369         argument; would bug out on wildcards.
5370
5371         * init.c (parse_line): Likewise.
5372
5373         * html.c (htmlfindurl): Cast to char * when calling stuff.
5374
5375 1996-12-15  Hrvoje Niksic  <hniksic@srce.hr>
5376
5377         * ftp.c (getftp): Use ftp_pasv.
5378
5379         * ftp-basic.c (ftp_request): Accept NULL value.
5380         (ftp_pasv): New function.
5381
5382         * options.h (struct options): Add passive FTP option.
5383
5384 1996-12-15  Hrvoje Niksic  <hniksic@srce.hr>
5385
5386         * url.c (parseurl): Debug output.
5387
5388         * utils.c (path_simplify): New one, adapted from bash's
5389         canonicalize_pathname().
5390
5391 1996-12-14  Hrvoje Niksic  <hniksic@srce.hr>
5392
5393         * ftp.c (getftp): Don't discard the buffer.
5394
5395         * retr.c (get_contents): New parameter nobuf.
5396
5397 1996-12-13  Shawn McHorse  <riffraff@txdirect.net>
5398
5399         * html.c (htmlfindurl): Recognize <meta contents="d; URL=...".
5400
5401         * init.c (setval): Strip the trailing slashes on CVECDIR.
5402
5403 1996-12-13  Hrvoje Niksic  <hniksic@srce.hr>
5404
5405         * init.c: Make excludes and includes under CVECDIR instead of
5406         CVEC.
5407
5408 1996-12-13  Shawn McHorse  <riffraff@txdirect.net>
5409
5410         * url.c (get_urls_html): Skip "http:".
5411
5412 1996-12-13  Hrvoje Niksic  <hniksic@srce.hr>
5413
5414         * utils.c (strcasecmp): From glibc.
5415         (strncasecmp): Also.
5416         (strstr): Also.
5417
5418         * url.c: Added javascript: to the list of URLs prefixes.
5419
5420 1996-12-12  Shawn McHorse  <riffraff@txdirect.net>
5421
5422         * recur.c (retrieve_robots): Print the warning message only if
5423         verbose.
5424
5425 1996-12-12  Gregor Hoffleit  <flight@mathi.uni-heidelberg.DE>
5426
5427         * ftp.c (ftp_retrieve_list): Use NeXT old utime interface.
5428
5429 1996-12-12  Hrvoje Niksic  <hniksic@srce.hr>
5430
5431         * systhings.h: New file.
5432
5433         * ../configure.in: Check for utime.h
5434
5435         * ftp.c: Check whether we have unistd.h.
5436
5437 1996-11-27  Hrvoje Niksic  <hniksic@srce.hr>
5438
5439         * recur.c (recursive_retrieve): Send the canonical URL as referer.
5440         (recursive_retrieve): Call get_urls_html with the canonical URL.
5441
5442 1996-12-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5443
5444         * (configure.in, config.h.in, src/Makefile.in, src/*.[ch]): Add
5445         ansi2knr support for compilers which don't support ANSI style
5446         function prototypes and signatures.
5447
5448         * (aclocal.m4, src/ansi2knr.c, src/ansi2knr.1): New files.
5449
5450 1996-11-26  Hrvoje Niksic  <hniksic@srce.hr>
5451
5452         * url.c: Use it; Recognize paths ending with "." and ".." as
5453         directories.
5454         (url_filename): Append .n whenever file exists and could be a
5455         directory.
5456
5457         * url.h (ISDDOT): New macro.
5458
5459         * init.c (parse_line): Use unsigned char.
5460
5461         * url.c (get_urls_html): Cast to unsigned char * when calling
5462         htmlfindurl.
5463
5464         * html.c (htmlfindurl): Use unsigned char.
5465
5466         * version.c: Changed version to 1.4.3.
5467
5468 1996-11-25  Hrvoje Niksic  <hniksic@srce.hr>
5469
5470         * version.c: Released 1.4.2.
5471
5472         * ftp.c (getftp): Simplified assertion.
5473         (ftp_loop_internal): Remove symlink before downloading.
5474         (ftp_retrieve_list): Unlink the symlink name before attempting to
5475         create a symlink!
5476
5477         * options.h (struct options): Renamed print_server_response to
5478         server_response.
5479
5480         * ftp.c (rel_constr): Removed.
5481         (ftp_retrieve_list): Don't use it.
5482         (ftp_retrieve_list): Use opt.retr_symlinks.
5483
5484 1996-11-24  Hrvoje Niksic  <hniksic@srce.hr>
5485
5486         * main.c (main): New option retr_symlinks.
5487
5488         * url.c (convert_links): Print verbose message.
5489
5490 1996-11-24  Hrvoje Niksic  <hniksic@srce.hr>
5491
5492         * http.c (http_loop): Reset newloc in the beginning of function;
5493         would cause FMR in retrieve_url.
5494
5495 1996-11-23  Hrvoje Niksic  <hniksic@srce.hr>
5496
5497         * recur.c (convert_all_links): Find the URL of each HTML document,
5498         and feed it to get_urls_html; would bug out.
5499         (convert_all_links): Check for l2 instead of dl; removed dl.
5500
5501         * url.c (convert_links): Don't refer to freed newname.
5502
5503         * recur.c (recursive_retrieve): Add this_url to urls_downloaded.
5504
5505         * main.c (main): Print the OS_TYPE in the debug output, too.
5506
5507         * recur.c (recursive_retrieve): Check for opt.delete_after.
5508
5509         * main.c (main): New option delete-after.
5510
5511         * init.c (setval): Cleaned up.
5512
5513 1996-11-21  Hrvoje Niksic  <hniksic@srce.hr>
5514
5515         * Makefile.in (wget): Make `wget' the default target.
5516
5517         * ftp.c (ftp_loop_internal): Move noclobber checking out of the
5518         loop.
5519         (ftp_retrieve_list): Warn about non-matching sizes.
5520
5521         * http.c (http_loop): Made -nc non-dependent on opt.recursive.
5522
5523         * init.c (setnum): Renamed from setnuminf; New argument flags.
5524         (setval): Use it.
5525
5526         * main.c (main): Sorted the options.
5527         (main): New option --wait.
5528
5529 1996-11-21  Shawn McHorse  <riffraff@txdirect.net>
5530
5531         * html.c (htmlfindurl): Reset s->in_quote after getting out of
5532         quotes.
5533
5534 1996-11-20  Hrvoje Niksic  <hniksic@srce.hr>
5535
5536         * version.c: Changed version to 1.4.2.
5537
5538 1996-11-20  Hrvoje Niksic  <hniksic@srce.hr>
5539
5540         * version.c: Released 1.4.1.
5541
5542         * html.c (html_quote_string): New function.
5543         (ftp_index): Use it.
5544         (htmlfindurl): A more gentle ending debug message.
5545
5546         * ftp.c (ftp_loop): Check for opt.htmlify.
5547
5548         * init.c: New command htmlify.
5549
5550         * ftp.c (getftp): Nicer error messages, with `'-encapsulated
5551         strings.
5552         (ftp_loop): Print size of index.html.
5553
5554         * init.c (setval): Implement "styles".
5555
5556         * main.c (main): New option dotstyle.
5557
5558 1996-11-19  Hrvoje Niksic  <hniksic@srce.hr>
5559
5560         * ftp.c (getftp): Close the master socket in case of errors, after
5561         bindport().
5562
5563         * connect.c (bindport): Initialize msock to -1.
5564
5565         * ftp.c (getftp): Initialize dtsock to -1.
5566
5567         * connect.c (closeport): Don't close sock if sock == -1.
5568
5569 1996-11-18  Hrvoje Niksic  <hniksic@srce.hr>
5570
5571         * init.c (setnuminf): Nuked default value -- just leave unchanged.
5572         (setval): Don't send default values.
5573         (defaults): Use DEFAULT_TIMEOUT -- aaargh.
5574
5575         * options.h (struct options): Use long for dot_bytes.
5576
5577         * init.c (setquota): Renamed to setbytes.
5578         (setval): Use setbytes on DOTBYTES.
5579
5580 1996-11-17  Hrvoje Niksic  <hniksic@srce.hr>
5581
5582         * ftp.c (getftp): Initialize con->dltime.
5583
5584         * recur.c (recursive_retrieve): Use same_host instead of
5585         try_robots; simply load robots_txt whenever the host is changed.
5586         (recursive_retrieve): Free forbidden before calling parse_robots.
5587
5588 1996-11-16  Hrvoje Niksic  <hniksic@srce.hr>
5589
5590         * retr.c (show_progress): Use them.
5591
5592         * options.h (struct options): New options dot_bytes, dots_on_line
5593         and dot_spacing.
5594
5595 1996-11-16  Mark Boyns  <boyns@sdsu.edu>
5596
5597         * recur.c (recursive_retrieve): Retrieve directories regardless of
5598         acc/rej rules; check for empty u->file.
5599
5600 1996-11-14  Hrvoje Niksic  <hniksic@srce.hr>
5601
5602         * init.c (setval): Use it.
5603
5604         * utils.c (merge_vecs): New function.
5605
5606         * init.c (setval): Reset the list-type functions when encountering
5607         "".
5608
5609 1996-11-14  Shawn McHorse  <riffraff@txdirect.net>
5610
5611         * recur.c (recursive_retrieve): Use base_url instead of this_url
5612         for no_parent.
5613
5614 1996-11-14  Shawn McHorse  <riffraff@txdirect.net>
5615
5616         * html.c (htmlfindurl): Reset s->in_quote after exiting the quote.
5617
5618 1996-11-13  Hrvoje Niksic  <hniksic@srce.hr>
5619
5620         * utils.c (sepstring): Rewrote; don't use strtok.
5621
5622         * recur.c (recursive_retrieve): Enter assorted this_url to slist
5623         when running the first time.
5624         (retrieve_robots): Warn to ignore errors when robots are loaded.
5625
5626         * utils.c (load_file): Moved from url.c.
5627
5628         * http.c: Made static variables const too in h* functions.
5629
5630         * main.c (main): Renamed --continue-ftp to --continue.
5631
5632         * recur.c (recursive_retrieve): Use it.
5633
5634         * utils.c (frontcmp): New function.
5635
5636         * url.c (accdir): New function.
5637
5638         * html.c (htmlfindurl): Recognize <area href=...>.
5639
5640         * ftp.c (ftp_retrieve_dirs): Implemented opt.includes.
5641
5642         * init.c (setval): Free the existing opt.excludes and
5643         opt.includes, if available.
5644
5645         * main.c (main): New option -I.
5646
5647 1996-11-12  Hrvoje Niksic  <hniksic@srce.hr>
5648
5649         * ftp.c (ftp_retrieve_glob): Do not weed out directories.
5650
5651         * version.c: Changed version to 1.4.1.
5652
5653 1996-11-11  Hrvoje Niksic  <hniksic@srce.hr>
5654
5655         * version.c: Released 1.4.0.
5656
5657 1996-11-10  Hrvoje Niksic  <hniksic@srce.hr>
5658
5659         * main.c (main): Free com and val after parse_line.
5660         (printhelp): Reorder the listing.
5661
5662         * http.c: More robust header parsing.
5663
5664         * http.c: Allow any number of spaces, or no spaces, precede ':'.
5665         (hskip_lws): New function.
5666         (haccepts_bytes): New function.
5667         (gethttp): Use it.
5668
5669         * init.c (setval): Check header sanity.
5670         (setval): Allow resetting of headers.
5671
5672 1996-11-10  Hrvoje Niksic  <hniksic@srce.hr>
5673
5674         * http.c (http_loop): Don't use has_wildcards.
5675
5676         * http.c (gethttp): Free all_headers -- would leak.
5677
5678         * recur.c (recursive_retrieve): Initialize depth to 1 instead of
5679         0 -- this fixes a long-standing bug in -rl.
5680
5681 1996-11-09  Hrvoje Niksic  <hniksic@srce.hr>
5682
5683         * ftp.c: Use -1 as "impossible" value for con->fd.
5684
5685         * url.h (URL_SEPARATOR): Don't treat `*' and `+' as separators.
5686
5687         * init.c (parse_line): Use isalpha.
5688
5689         * ftp-unix.c: Use HAVE_UNISTD_H.
5690
5691         * mtch.c (has_wildcards): Don't match \.
5692
5693         * http.c (http_loop): Warn on HTTP wildcard usage.
5694
5695 1996-11-08  Hrvoje Niksic  <hniksic@srce.hr>
5696
5697         * url.c (url_filename): Do not create numbered suffixes if
5698         opt.noclobber -- would bug out on -nc.
5699
5700 1996-11-07  Hrvoje Niksic  <hniksic@srce.hr>
5701
5702         * recur.c (parse_robots): Don't chuck out the commands without
5703         arguments (`Disallow:<empty>' didn't work).
5704         (parse_robots): Compare versions lowercase.
5705         (parse_robots): Match on base_version, not version_string!
5706         (parse_robots): Handle comments properly.
5707         (parse_robots): Match versions in a sane way.
5708
5709         * init.c: Print nicer error messages.
5710
5711         * version.c: Changed version to 1.4.0.
5712
5713 1996-11-06  Hrvoje Niksic  <hniksic@srce.hr>
5714
5715         * version.c: Released 1.4.0-test2.
5716
5717         * init.c (run_wgetrc): Close fp.
5718
5719         * ftp.c (ftp_retrieve_dirs): Allocate the correct length for
5720         u->dir.
5721
5722 1996-11-06  Hrvoje Niksic  <hniksic@srce.hr>
5723
5724         * init.c (setquota): Allow inf as quota specification.
5725
5726 1996-11-05  Hrvoje Niksic  <hniksic@srce.hr>
5727
5728         * ftp.c (ftp_retrieve_dirs): Return QUOTEXC if quota exceeded.
5729         (ftp_retrieve_glob): Return QUOTEXC on quota exceeded.
5730
5731         * main.c (main): Check for quota by comparison with downloaded
5732         stuff, not from status.
5733
5734         * connect.c (select_fd): Should compile on HPUX without warnings now.
5735
5736         * ftp.c (ftp_get_listing): Check whether ftp_loop_internal
5737         returned RETROK.
5738
5739 1996-11-04  Hrvoje Niksic  <hniksic@srce.hr>
5740
5741         * ftp.c (ftp_retrieve_glob): Print the pattern nicely.
5742         (getftp): Return FTPRETRINT on control connection error.
5743
5744         * html.c (htmlfindurl): Recognize <embed src=...> and
5745         <bgsound src=...>.
5746         (ftp_index): Handle username and password correctly.
5747
5748         * main.c (main): Made `-np' a synonim for --no-parent.
5749
5750 1996-11-02  Hrvoje Niksic  <hniksic@srce.hr>
5751
5752         * ftp.c (ftp_loop): Check for opt.ftp_glob too before calling
5753         ftp_retrieve_glob.
5754
5755         * version.c: Changed version to 1.4.0-test2.
5756
5757 1996-11-02  Hrvoje Niksic  <hniksic@srce.hr>
5758
5759         * version.c: Released 1.4.0-test1.
5760
5761         * url.c (str_url): Don't use sprintf when creating %2F-prefixed
5762         directory.
5763         (convert_links): Removed definition of make_backup.
5764
5765         * http.h: Removed definition of MAX_ERROR_LENGTH.
5766
5767         * host.c (ftp_getaddress): Check for "(none)" domains.
5768
5769         * ftp.c (ftp_retrieve_dirs): Docfix.
5770
5771         * http.c (gethttp): Use ou->referer instead of u->referer.
5772
5773         * retr.c (retrieve_url): Reset u to avoid freeing pointers twice;
5774         this was known to cause coredumps on Linux.
5775
5776         * html.c (ftp_index): Cast the argument to local_time to time_t *.
5777
5778 1996-11-01  Hrvoje Niksic  <hniksic@srce.hr>
5779
5780         * connect.c (select_fd): Use exceptfds -- once and for all.
5781
5782         * retr.c (retrieve_from_file): Free filename after
5783         recursive_retrieve.
5784         (retrieve_from_file): Send RFIRST_TIME to recursive_retrieve on
5785         first-time retrieval.
5786         (retrieve_from_file): Return uerr_t; new argument, count.
5787         (retrieve_from_file): Break on QUOTEXC.
5788
5789         * init.c (setquota): Fixed a bug that caused rejection of
5790         non-postfixed values..
5791
5792 1996-10-30  Hrvoje Niksic  <hniksic@srce.hr>
5793
5794         * version.c: Changed name to wget.
5795
5796         * connect.c (iread): Smarter use of select.
5797         (select_fd): Set errno on timeout.  If not timeout, return 1
5798         instead of 0.
5799
5800 1996-10-29  Hrvoje Niksic  <hniksic@srce.hr>
5801
5802         * ftp.c (ftp_loop_internal): Don't use con->cmd before
5803         establishing it.
5804
5805 1996-10-26  Hrvoje Niksic  <hniksic@srce.hr>
5806
5807         * http.c (gethttp): Send correct referer when using proxy.
5808         (gethttp): Use struct urlinfo ou to access the relevant data; send
5809         correct authorization in all cases.
5810
5811         * host.c (same_host): Use skip_uname to skip username and
5812         password.
5813
5814         * url.c (skip_uname): New function.
5815         (parseurl): Use it.
5816
5817         * host.c (same_host): Do not assume HTTP -- same_host should now
5818         be totally foolproof.
5819
5820         * url.c (skip_proto): New function.
5821         (parse_uname): Use it.
5822
5823         * http.c (gethttp): Create local user and passwd from what is
5824         given.
5825
5826         * url.c (parseurl): Check for HTTP username and password too.
5827
5828 1996-10-25  Hrvoje Niksic  <hniksic@srce.hr>
5829
5830         * config.h.in: Removed #define gethostbyname R...
5831
5832 1996-10-22  Hrvoje Niksic  <hniksic@srce.hr>
5833
5834         * version.c: Changed version to 1.4.0-test1.
5835
5836 1996-10-21  Hrvoje Niksic  <hniksic@srce.hr>
5837
5838         * version.c: "Released" 1.4b29.
5839
5840         * recur.c (recursive_retrieve): Check for no_parent.
5841
5842         * init.c (setval): Option update.
5843
5844         * main.c (main): New option no-parent.
5845
5846         * options.h (struct options): New variable no_parent.
5847
5848         * recur.c (recursive_retrieve): Only files are checked for
5849         opt.accepts and opt.rejects.
5850         (recursive_retrieve): Check directories for opt.excludes.
5851         (recursive_retrieve): Make the dir absolute when checking
5852         opt.excludes.
5853
5854         * html.c (htmlfindurl): Recognize <applet code=...> and <script
5855         src=...>
5856
5857 1996-10-18  Hrvoje Niksic  <hniksic@srce.hr>
5858
5859         * ftp.c (getftp): Do not line-break assert entries at all.
5860         (ftp_retrieve_dirs): docfix.
5861
5862         * connect.c (select_fd): Use fd + 1 as nfds.
5863
5864         * version.c: Changed version to 1.4b29.
5865
5866 1996-10-18  Hrvoje Niksic  <hniksic@srce.hr>
5867
5868         * version.c: "Released" 1.4b28.
5869
5870         * ftp.c (ftp_loop_internal): Check whether f->size == len and
5871         don't continue the loop if it is.
5872         (ftp_get_listing): Remove list_filename on unsuccesful loop.
5873
5874 1996-10-17  Hrvoje Niksic  <hniksic@srce.hr>
5875
5876         * ftp.c (ftp_loop_internal): Use strcpy to initialize tmp.
5877         (getftp): Do not use multiline assert.
5878
5879         * http.c (hparsestatline): Use mjr and mnr instead of major and
5880         minor, which don't compile on Ultrix.
5881         (http_loop): Use strcpy() to initialize tmp.
5882
5883         * all: Geturl -> Fetch
5884
5885 1996-10-17  Hrvoje Niksic  <hniksic@srce.hr>
5886
5887         * recur.c (parse_robots): Fixed an off-by-one bug when looking for
5888         ':'.
5889
5890         * html.c (htmlfindurl): Fixed several possible off-by-one bugs by
5891         moving `bufsize &&' to the beginning of each check in for-loops.
5892
5893         * recur.c (parse_robots): Close fp on exit.
5894
5895         * url.c (mymkdir): Check for each directory before creating.
5896
5897 1996-10-16  Hrvoje Niksic  <hniksic@srce.hr>
5898
5899         * version.c: Changed version to 1.4b28.
5900
5901 1996-10-16  Hrvoje Niksic  <hniksic@srce.hr>
5902
5903         * version.c: "Released" 1.4b27.
5904
5905         * init.c (parse_line): Use isspace.
5906         (parse_line): Free *com on all errors.
5907
5908         * ftp.c (ftp_loop): Change FTPOK to RETROK before exiting.
5909         (delelement): Use next instead of f->next and prev instead of
5910         f->prev.
5911         (delelement): Free the members of the deleted element.
5912
5913         * http.c (http_loop): Do not return RETROK on code != 20x.
5914
5915         * init.c (cleanup): Free opt.user_header.
5916         (cleanup): Free opt.domains.
5917
5918         * url.c (freelists): Moved to cleanup().
5919
5920         * http.c (hparsestatline): Docfix.
5921
5922         * main.c (main): Return with error status on unsuccesful
5923         retrieval.
5924
5925         * init.c (setval): Do not remove listing when mirroring.
5926
5927         * url.c (url_filename): Use opt.fileprefix.
5928
5929         * ftp.c (ftp_get_listing): Use url_filename to get filename for
5930         .listing.
5931
5932         * main.c (main): New option: -rn.
5933
5934 1996-10-15  Hrvoje Niksic  <hniksic@srce.hr>
5935
5936         * Makefile.in (RM): Added RM = rm -f.
5937
5938         * host.c (clean_hosts): New function.
5939         (free_hlist): Just free the list, no reset.
5940
5941         * version.c: Changed version to 1.4b27.
5942
5943 1996-10-13  Hrvoje Niksic  <hniksic@srce.hr>
5944
5945         * version.c: "Released" 1.4b26.
5946
5947         * retr.c (retrieve_from_file): If call get_urls_html with
5948         opt.spider to make it silent in spider mode.
5949
5950         * url.c (str_url): Use CLEANDUP instead of URL_CLEANSE.
5951
5952         * url.h (CLEANDUP): New macro.
5953
5954         * http.c (gethttp): Fixed a bug that freed location only when it
5955         was NULL.
5956
5957         * retr.c (retrieve_url): Free url if it will not be stored,
5958         i.e. newloc is NULL.
5959
5960         * html.c (htmlfindurl): Handle exiting from quotes correctly; the
5961         old version would bug out on <a href="x#a"href="y">.
5962
5963         * html.h (state_t): New member in_quote.
5964
5965         * html.c (htmlfindurl): Free s->attr at the beginning of
5966         attr-loop.
5967
5968         * recur.c (recursive_retrieve): Recognize RCLEANUP.
5969         (tried_robots): Make hosts a global variable.
5970         (recursive_retrieve): Free constr after URL host optimization.
5971         (tried_robots): Free urlinfo before exiting.
5972
5973         * utils.c (free_slist): New function.
5974
5975         * recur.c (recursive_retrieve): Use flags to add cleanup
5976         possibility.
5977
5978         * main.c (main): Free filename after recursive_retrieve.
5979
5980         * http.c (gethttp): Store successful responses too.
5981
5982 1996-10-12  Hrvoje Niksic  <hniksic@srce.hr>
5983
5984         * all: Constified the whole source.  This required some minor
5985         changes in many functions in url.c, possibly introducing bugs -- I
5986         hope not.
5987
5988         * ftp-basic.c: Removed last_respline.
5989
5990         * http.c (gethttp): Free type.
5991
5992         * host.c (same_host): Free real1 and real2.
5993
5994         * main.c (main): New option --spider.
5995
5996         * retr.c (get_contents): Don't reset errno.
5997
5998         * main.c (main): Sorted the options.
5999
6000         * connect.c (iread): Set errno to ETIMEDOUT only if it was left
6001         uninitialized by select().
6002
6003         * http.c (http_loop): Print the time when the connection is
6004         closed.
6005         (gethttp): Debug-print the HTTP request.
6006
6007 1996-10-11  Hrvoje Niksic  <hniksic@srce.hr>
6008
6009         * connect.c (iread): Do not try reading after timeout.
6010
6011         * main.c (main): Would bug out on -T.
6012
6013         * connect.c (select_fd): Do not use exceptfds.
6014         (iread): Set ETIMEDOUT on select_fd <= 0.
6015
6016         * version.c: Changed version to 1.4b26.
6017
6018 1996-10-10  Hrvoje Niksic  <hniksic@srce.hr>
6019
6020         * version.c: "Released" 1.4b25.
6021
6022         * ftp-unix.c (ftp_parse_unix_ls): Ignore lines without file name
6023         or link name.
6024
6025         * http.c (gethttp): Add errcode to struct hstat.
6026         (http_loop): Use it.
6027
6028         * url.c (no_proxy_match): Simplify using char** for no_proxy.
6029
6030         * options.h (struct options): Make opt.no_proxy a vector.
6031
6032         * utils.c (sepstring): Use !*s instead of !strlen(s).
6033
6034         * init.c (setval): Set opt.maxreclevel to 0 on --mirror.
6035         (getperms): Use ISODIGIT instead of isdigit.
6036
6037         * ftp.c (getftp): Print time.
6038
6039         * main.c (main): Use legible output of downloaded quantity.
6040
6041         * ftp.c (getftp): Use elapsed_time().
6042         (ftp_loop_internal): Use rate().
6043
6044         * http.c (http_loop): Add download ratio output; Use rate().
6045
6046         * utils.c (rate): New function.
6047
6048 1996-10-09  Hrvoje Niksic  <hniksic@srce.hr>
6049
6050         * http.c (http_loop): Use timer.
6051
6052         * ftp.c: Split to ftp-basic.c and ftp.c
6053
6054         * utils.c (reset_timer): New function.
6055         (elapsed_time): New function.
6056
6057         * retr.c (show_progress): Make bytes_in_line and offs long; should
6058         work on 16-bit machines.
6059
6060 1996-10-08  Hrvoje Niksic  <hniksic@srce.hr>
6061
6062         * url.c (in_acclist): New argument backward.
6063
6064         * ftp.c (ftp_retrieve_glob): Use acceptable() to determine whether
6065         a file should be retrieved according to suffix.
6066         (ftp_get_listing): Check the return value of unlink; Do not call
6067         ftp_retrieve_dirs if depth reached maxreclevel.
6068         (ftp_retrieve_dirs): Check whether the directory is in
6069         exclude-list.
6070
6071         * main.c (main): Print the version number at the beginning of
6072         DEBUG output.
6073         (main): Use strrchr when creating exec_name.
6074
6075         * ftp.c (ftp_retrieve_glob): Do not close control connection.
6076
6077         * version.c: Changed version to 1.4b25.
6078
6079 1996-10-07  Hrvoje Niksic  <hniksic@srce.hr>
6080
6081         * version.c: "Released" 1.4b24.
6082
6083         * Makefile.in: Rewrite.
6084
6085         * ftp.c (ftp_loop_internal): Likewise.
6086
6087         * retr.c (time_str): Check for failed time().
6088
6089         * html.c (htmlfindurl): Recognize <fig src> and <overlay src> from
6090         HTML3.0.
6091
6092         * retr.c (time_str): Return time_t *.
6093
6094         * connect.c (bindport): Close msock on unsuccesful bind.
6095         (bindport): The same for getsockname and listen.
6096
6097         * retr.c (retrieve_url): Allow any number of retries on
6098         proxy.
6099
6100         * http.c (gethttp): Do not treat errno == 0 as timeout.
6101         (http_loop): Likewise.
6102         (http_loop): Cosmetic changes.
6103
6104         * connect.c (iread): Set errno to ETIMEDOUT in case of timeout.
6105
6106         * retr.c (get_contents): Reset errno.
6107
6108         * ftp.c (getftp): Minor fixes.
6109
6110 1996-10-06  Hrvoje Niksic  <hniksic@srce.hr>
6111
6112         * http.c: Do not use backups.
6113
6114         * geturl.1 (WARNING): Warn that man-page could be obsolete.
6115
6116         * getopt.c (getopt_long): Moved to getopt.c
6117
6118         * geturl.texi: Enhanced.
6119
6120         * main.c (main): Use it.
6121
6122         * recur.c (convert_all_links): New function.
6123
6124         * utils.c (add_slist): New argument flags.
6125
6126         * recur.c (recursive_retrieve): Update a list of downloaded URLs.
6127         (parse_robots): Do not chuck out empty value fields.
6128         (parse_robots): Make yourself welcome on empty Disallow.
6129
6130         * version.c: Changed version to 1.4b24.
6131
6132 1996-10-06  Hrvoje Niksic  <hniksic@srce.hr>
6133
6134         * version.c: "Released" 1.4b23.
6135
6136         * ftp.c (ftp_loop_internal): Get the time after getftp.
6137
6138         * Makefile.in (install.info): New target.
6139         (install): Use it.
6140
6141         * http.c (http_loop): Fix output when doing -O.
6142
6143 1996-10-05  Hrvoje Niksic  <hniksic@srce.hr>
6144
6145         * geturl.texi: New file.
6146
6147         * main.c (main): Do not print the warnings and download summary if
6148         opt.quiet is set.
6149
6150         * version.c: Changed version to 1.4b23.
6151
6152 1996-10-05  Hrvoje Niksic  <hniksic@srce.hr>
6153
6154         * "Released" 1.4b22.
6155
6156         * atotm.c (atotm): Use True and False instead of TRUE and FALSE,
6157         to avoid redefinition warnings.
6158
6159         * host.c (store_hostaddress): Use memcpy() to copy the address
6160         returned by inet_addr.
6161
6162         * version.c: Changed version to 1.4b22.
6163
6164 1996-10-04  Hrvoje Niksic  <hniksic@srce.hr>
6165
6166         * version.c: "Released" 1.4b21.
6167
6168         * ftp-unix.c (ftp_parse_ls): Renamed to ftp_parse_unix_ls.
6169
6170         * ftp.c (ftp_port): Use conaddr.
6171         (getftp): Print the file length.
6172         (ftp_retrieve_list): Check the stamps of plain files only.
6173
6174         * connect.c (closeport): Do not call shutdown().
6175         (conaddr): New function.
6176
6177         * html.c (ftp_index): Made it dfp-aware.
6178
6179         * init.c (cleanup): New name of freemem. Close opt.dfp.
6180
6181         * ftp.c (getftp): Use opt.dfp if it is set.
6182
6183         * ftp-unix.c (ftp_parse_ls): Recognize time in h:mm format.
6184
6185         * ftp.c (ftp_retrieve_dirs): Fixed a bug that caused incorrect
6186         CWDs to be sent with recursive FTP retrievals.
6187
6188 1996-10-03  Hrvoje Niksic  <hniksic@srce.hr>
6189
6190         * recur.c (parse_robots): Made it more compliant with "official"
6191         specifications.
6192
6193         * http.c: New function.
6194
6195         * ftp-unix.c (ftp_parse_ls): Added better debug output.
6196
6197         * ftp.c (getftp): Print out the LIST in case of
6198         opt.print_server_response.
6199
6200         * version.c: Changed version to 1.4b21.
6201
6202 1996-10-01  Hrvoje Niksic  <hniksic@srce.hr>
6203
6204         * version.c: "Released" 1.4b20.
6205
6206         * README: Update.
6207
6208         * http.c (gethttp): Preset lengths of various headers instead of
6209         calculating them dynamically.
6210         (gethttp): Check for 206 partial contents.
6211
6212 1996-09-30  Hrvoje Niksic  <hniksic@srce.hr>
6213
6214         * configure.in: Set SYSTEM_GETURLRC to $libdir/geturlrc
6215
6216         * http.c (gethttp): Send the port number in the Host: header.
6217
6218 1996-09-29  Hrvoje Niksic  <hniksic@srce.hr>
6219
6220         * http.c (gethttp): Send host: header.
6221         (gethttp): Add the possibility of user-defined headers.
6222         (gethttp): Move decision about pragma: no-cache to http_loop,
6223         where it belongs.
6224         (gethttp): Pass a struct instead of enormous argument list.
6225         (http_loop): Use a new, fancier display format.
6226         (ftp_loop): Likewise.
6227
6228         * main.c: (hangup): Turn off buffering of the new log file.
6229
6230         * install-sh: Likewise.
6231
6232         * config.sub: Replace with the one in autoconf-2.10
6233
6234         * geturl.1: Update.
6235
6236         * init.c: New options httpuser and httppasswd.
6237
6238         * http.c: (base64_encode_line): New function.
6239         (gethttp): Send authentication.
6240
6241         * connect.c (make_connection): Use store_hostaddress.
6242
6243 1996-09-28  Hrvoje Niksic  <hniksic@srce.hr>
6244
6245         * host.c (store_hostaddress): New function.
6246
6247         * NEWS: Update.
6248
6249         * http.c (hgetrange): New function.
6250         (gethttp): Use ranges.
6251
6252         * utils.c (numdigit): Accept long instead of int.
6253
6254         * http.c (http_loop): Add restart capabilities.
6255
6256         * ftp.c (ftp_retrieve_glob): Fixed a bug that could cause matchres
6257         being used uninitialized.
6258         (ftp_retrieve_list): Similar fix.
6259
6260         * host.c (add_hlist): Fixed a bug that could cause cmp being used
6261         uninitialized.
6262
6263         * url.c (construct_relative): New function.
6264
6265         * recur.c (recursive_retrieve): Use it.
6266
6267         * retr.c (convert_links): New function.
6268
6269 1996-09-27  Hrvoje Niksic  <hniksic@srce.hr>
6270
6271         * url.c (free_urlpos): New function.
6272
6273         * recur.c (recursive_retrieve): Adapt.
6274
6275         * url.c (get_urls_html): Return a linked list instead of a vector.
6276
6277         * url.c (get_urls_file): Return a linked list instead of a vector.
6278
6279         * geturl.1: Update.
6280
6281         * http.c (gethttp): Implement it.
6282
6283         * init.c (setval): New option: SAVEHEADERS
6284
6285         * ftp.c (ftp_loop_internal): Do not set restval if listing is to
6286         be retrieved. Lack of this test caused bugs when the connection
6287         was lost during listing.
6288
6289         * retr.c (retrieve_url): Fixed a bug that caused
6290         coredumps. *newloc is now reset by default.
6291         (retrieve_url): Lift the twenty-tries limit on proxies.
6292
6293         * version.c: Changed version to 1.4b20.
6294
6295 1996-09-20  Hrvoje Niksic  <hniksic@srce.hr>
6296
6297         * version.c: "Released" 1.4b19.
6298
6299 1996-09-19  Hrvoje Niksic  <hniksic@srce.hr>
6300
6301         * ftp.c (ftp_loop_internal): Renamed from ftp_1fl_loop.
6302         (getftp): Changed prototype to accept ccon *.
6303
6304 1996-09-17  Hrvoje Niksic  <hniksic@srce.hr>
6305
6306         * ftp.c (ftp_retrieve_list): Fixed a bug that caused setting
6307         incorrect values to files pointed to by symbolic links.
6308         (ftp_1fl_loop): Do not count listings among the downloaded URL-s.
6309
6310 1996-09-16  Hrvoje Niksic  <hniksic@srce.hr>
6311
6312         * url.c (mkstruct): Do not prepend "./" in front of a pathname.
6313
6314         * main.c (main): New option: --user-agent.
6315
6316         * geturl.1: Ditto.
6317
6318         * init.h: Ditto.
6319
6320         * init.c (setval): Ditto.
6321
6322         * main.c (main): Rename "server-headers" to "server-response".
6323
6324         * ftp-unix.c (ftp_parse_ls): Check for asterisks at the end of
6325         executables in 'ls -F' listings.
6326
6327 1996-09-15  Hrvoje Niksic  <hniksic@srce.hr>
6328
6329         * url.c (parseurl): Remove realloc() and sprintf().
6330         (str_url): Get rid of sprintf().
6331
6332         * recur.c (recursive_retrieve): Enable FTP recursion through proxy
6333         servers.
6334
6335         * url.h (URL_CLEANSE): Made it else-resistant.
6336         (USE_PROXY): New macro.
6337
6338 1996-09-14  Hrvoje Niksic  <hniksic@srce.hr>
6339
6340         * NEWS: Update.
6341
6342         * version.c: Changed version to 1.4b19.
6343
6344 1996-09-14  Hrvoje Niksic  <hniksic@srce.hr>
6345
6346         * version.c: "Released" 1.4b18.
6347
6348         * url.c: Made it reallocate space exponentially.
6349
6350 1996-09-14  Drazen Kacar  <dave@fly.cc.fer.hr>
6351
6352         * html.c (htmlfindurl): Added <frame src> and <iframe src> among
6353         the list of stuff to fetch.
6354
6355 1996-09-13  Hrvoje Niksic  <hniksic@srce.hr>
6356
6357         * url.c (get_urls_html): Fixed a bug that caused SIGSEGV's with
6358         -Fi.
6359
6360         * html.c (htmlfindurl): Rewrite.
6361
6362         * http.c (gethttp): Use opt.proxy_cache.
6363
6364         * main.c (main): Added --cache option.
6365
6366         * ftp.c (ftp_response): Print server response if opt.print_server
6367         response is set.
6368         (getftp): Print newlines after each request if the server response
6369         is to be printed.
6370         (ftp_response): Copy the last response line to last_respline.
6371
6372         * http.c (gethttp): Add Pragma: nocache for retried
6373         proxy-retrievals.
6374
6375         * ftp.c (getftp): Use it.
6376
6377         * retr.c (buf_discard): New function.
6378
6379         * ftp.c (ftp_response): Use buf_readchar().
6380         (getftp): Flush the control connection buffer before calling
6381         get_contents().
6382
6383         * retr.c (buf_readchar): New function.
6384         (buf_flush): New function.
6385         (get_contents): Use buf_readchar() instead of read(x, x, 1).
6386         (get_contents): Use buf_flush.
6387
6388 1996-09-12  Hrvoje Niksic  <hniksic@srce.hr>
6389
6390         * ftp.c: Incorporate changes to ftp_response.
6391
6392         * ftp.c (ftp_response): Allocate the server response dynamically,
6393         as in read_whole_line and fetch_next_header.
6394
6395         * utils.c (read_whole_line): Fixed a bug that prevented reading
6396         the last line if it is not \n-terminated. Also fixed a possible
6397         memory overflow.
6398
6399         * http.c (fetch_next_header): Return malloc-ed string as large as
6400         needed.
6401         (gethttp): Use new fetch_next_header.
6402
6403 1996-09-12  Hrvoje Niksic  <hniksic@srce.hr>
6404
6405         * http.c (hgetlen): Compute the header length the first time only.
6406         (hgettype): Ditto.
6407         (hgetlocation): Ditto.
6408         (hgetmodified): Ditto.
6409
6410 1996-09-11  Hrvoje Niksic  <hniksic@srce.hr>
6411
6412         * sample.geturlrc: Update.
6413
6414 1996-09-10  Hrvoje Niksic  <hniksic@srce.hr>
6415
6416         * http.c (http_loop): Ditto.
6417
6418         * ftp.c (getftp): Open the output file as binary.
6419
6420         * version.c: Changed version to 1.4b18.
6421
6422 1996-09-10  Hrvoje Niksic  <hniksic@srce.hr>
6423
6424         * version.c: "Released" 1.4b17.
6425
6426         * ftp-unix.c (ftp_parse_ls): If unable to open file, return NULL
6427         instead of failed assertion.
6428
6429 1996-09-09  Hrvoje Niksic  <hniksic@srce.hr>
6430
6431         * ftp.c (ftp_get_listing): Add a numbered suffix to LIST_FILENAME
6432         if a file of that name already exists.
6433
6434 1996-09-05  Hrvoje Niksic  <hniksic@srce.hr>
6435
6436         * ftp.c (ftp_1fl_loop): Handler FTPPORTERR and FOPENERR correctly.
6437
6438         * config.h.in: Define gethostbyname as Rgethostbyname when using
6439         Socks.
6440
6441         * configure.in: Check for -lresolv if using Socks.
6442
6443         * version.c: Changed version to 1.4b17.
6444
6445 1996-07-15  Hrvoje Niksic  <hniksic@srce.hr>
6446
6447         * version.c: "Released" 1.4b16.
6448
6449         * http.c (gethttp): More intelligent check for first line of HTTP
6450         response.
6451         (gethttp): Would bug out on time-stamping.
6452
6453         * version.c: Changed version to 1.4b16.
6454
6455 1996-07-11  Hrvoje Niksic  <hniksic@srce.hr>
6456
6457         * version.c: Released 1.4b15.
6458
6459         * http.c (http_loop): Print \n after the loop entry, not before.
6460
6461         * url.c (url_filename): Use ISDOT.
6462
6463         * url.h (ISDOT): New macro.
6464
6465         * recur.c (recursive_retrieve): Change only opt.recursive for
6466         following FTP.
6467
6468 1996-07-11  Antonio Rosella <antonio.rosella@agip.it>
6469
6470         * socks/geturl.cgi: Fixed version No.
6471
6472         * socks/download-netscape.html: Ditto.
6473
6474         * socks/download.html: Changed socks.html to download.html.
6475
6476 1996-07-11  Hrvoje Niksic  <hniksic@srce.hr>
6477
6478         * url.c (url_filename): Check for opt.dirstruct instead for
6479         opt.recursive && opt.dirstruct.
6480
6481         * init.c (defaults): Ditto.
6482         (defaults): Reset dirstruct by default.
6483         (setval): Set opt.dirstruct whenever setting recursive.
6484
6485         * init.h: Removed FORCEDIRHIER.
6486
6487         * INSTALL: Added -L to socks-description.
6488
6489         * version.c: Changed version to 1.4b15.
6490
6491 1996-07-10  Hrvoje Niksic  <hniksic@srce.hr>
6492
6493         * version.c: "Released" 1.4b14.
6494
6495         * geturl.1: Update AUTHOR to include Rosella as contributor.
6496
6497         * NEWS: Update.
6498
6499         * socks/geturl.cgi: Simplified command creation, nuked <blink>.
6500
6501         * socks/geturl.cgi: Wrap nutscape extensions within if $netscape.
6502         (cal_time): Fix == to eq.
6503
6504         * socks/geturl.cgi: GPL-ized with permission of A. Rosella.
6505
6506         * geturl.1 (hostname): Moved URL CONVENTIONS to the beginning.
6507
6508         * Makefile.in: Use @VERSION@.
6509
6510         * configure.in: Check version from version.c.
6511
6512         * socks/geturl.cgi: Changed /pub/bin/perl to /usr/bin/perl.
6513
6514         * socks/download.html: Created from download-netscape.html, made
6515         HTML-2.0 compliant.
6516
6517         * recur.c (recursive_retrieve): Set opt.force_dir_hier when
6518         following FTP links from recursions.
6519
6520 1996-07-09  Hrvoje Niksic  <hniksic@srce.hr>
6521
6522         * url.c (mymkdir): Fixed a bug that prevented mymkdir() to create
6523         absolute directories correctly.
6524
6525         * version.c: Changed version to 1.4b14.
6526
6527 1996-07-09  Hrvoje Niksic  <hniksic@srce.hr>
6528
6529         * version.c: "Released" 1.4b13.
6530
6531         * url.c (make_backup): New function.
6532
6533         * http.c (http_loop): Make a backup copy of the local file (using
6534         rename(2)) before opening it.
6535
6536         * main.c (main): Added --backups.
6537
6538         * host.c (ftp_getaddress): Bail out on failed mycuserid().
6539         (ftp_getaddress): Check for leading dot on MY_DOMAIN.
6540         (ftp_getaddress): Check for empty, null or (null) domain.
6541
6542         * url.c (get_urls_html): If this_url is NULL, the base must have a
6543         protocol.
6544         (parseurl): Use has_proto.
6545
6546         * retr.c (retrieve_url): Warn when proxy is used with more than 20
6547         retries.
6548
6549         * url.c (mkstruct): Create the directory (calling mymkdir()) only
6550         if it is not already there.
6551         (has_proto): New function.
6552         (get_urls_html): Eliminate the remaining call to findurl -- use
6553         has_proto.
6554
6555         * geturl.1: Ditto.
6556
6557         * main.c: Change -X to -x.
6558
6559         * url.c (url_filename): Simplify creation of filename if
6560         prefix_files is set.
6561         (url_filename): Simplify everything. And I do mean *everything*.
6562         (mkstruct): Add dir_prefix before hostname.
6563         (path_simplify): Fixed a bug that caused writing outside the path
6564         string in case of "." and ".." path strings.
6565
6566 1996-07-06  Hrvoje Niksic  <hniksic@srce.hr>
6567
6568         * init.c: Added --mirror.
6569
6570         * main.c (main): Added -X to force saving of directory hierarchy.
6571
6572         * ftp.c (ftp_retrieve_list): Added recursion depth counter.
6573         (ftp_retrieve_list): Check whether quota is exceeded.
6574
6575         * url.c (get_urls_html): Skip leading blanks for absolute URIs.
6576
6577         * http.c (gethttp): Use referer if present.
6578
6579         * recur.c (recursive_retrieve): Set u->referer before calling
6580         retrieve_url.
6581
6582         * url.c (newurl): Use memset to nullify the struct members.
6583         (freeurl): Free the referer field too.
6584
6585         * url.h: Added referer to urlinfo.
6586
6587         * geturl.1: Updated the manual to document some of the new features.
6588
6589         * utils.c (numdigit): Moved from url.c.
6590
6591         * README: Rewritten.
6592
6593         * config.h.in: Add the support for socks.
6594
6595         * configure.in: Add the support for socks.
6596
6597         * url.c (url_filename): If the dir_prefix is ".", work with just
6598         the file name.
6599         (url_filename): Do not look for .n extensions if timestamping if
6600         turned on.
6601
6602         * retr.c (show_progress): Skip the over-abundant restval data, and
6603         print the rest of it with ',' instead of '.'.
6604
6605 1996-07-05  Hrvoje Niksic  <hniksic@srce.hr>
6606
6607         * retr.c (show_progress): Changed second arg. to long (as it
6608         should be).
6609         (show_progress): Moved to retr.c.
6610         (get_contents): Moved to retr.c.
6611
6612         * version.c: Change version to 1.4b13.
6613
6614 1996-07-05  Hrvoje Lacko <hlacko@fly.cc.fer.hr>
6615
6616         * url.c (in_acclist): Would return after the first suffix.
6617
6618 1996-07-04  Hrvoje Niksic  <hniksic@srce.hr>
6619
6620         * version.c: "Released" 1.4b12.
6621
6622         * url.c (path_simplify): More kludgifications.
6623         (get_urls_html): Use new parameters for htmlfindurl.
6624
6625         * html.c: Removed memorizing "parser states", since the new
6626         organization does not require them.
6627
6628         * init.c (run_geturlrc): Use read_whole_line.
6629
6630         * ftp-unix.c (ftp_parse_ls): Use read_whole_line.
6631
6632         * recur.c (parse_robots): Use read_whole_line.
6633
6634         * utils.c (read_whole_line): New function.
6635
6636         * recur.c (tried_robots): Use add_slist/in_slist, *much* cleaner.
6637
6638         * host.c (ngethostbyname): Call inet_addr just once. Yet to be
6639         tested on OSF and Ultrix.
6640         (add_hlist): New function.
6641         (free_hlist): New function.
6642         (search_host): New function.
6643         (search_address): New function.
6644         (realhost): Use search_host, search_address and add_hlist.
6645         (same_host): Replaced realloc() with strdupdelim(), made
6646         case-insensitive, fixed a memory leak.
6647
6648         * html.c (ftp_index): Fixed tm_min and tm_sec to be tm_hour and
6649         tm_min, like intended.
6650
6651         * version.c: Change user agent information to
6652         Geturl/version.
6653
6654 1996-07-03  Hrvoje Niksic  <hniksic@srce.hr>
6655
6656         * utils.c: Renamed nmalloc.c to utils.c, .h likewise.
6657
6658         * url.c (acceptable): Always accept directories.
6659
6660         * ftp-unix.c (ftp_parse_ls): Support brain-damaged "ls -F"-loving
6661         servers by stripping trailing @ from symlinks and trailing / from
6662         directories.
6663
6664         * ftp.c (ftp_loop): Debugged the "enhanced" heuristics. :-)
6665
6666         * url.c (skip_url): Use toupper instead of UCASE.
6667
6668         * host.c (sufmatch): Made it case-insensitive.
6669
6670         * url.c (match_backwards_or_pattern): Fixed i == -1 to j == -1.
6671         (match_backwards): New function, instead of
6672         match_backwards_or_pattern.
6673
6674         * recur.c (recursive_retrieve): Increased performance by
6675         introducing inl, which reduces number of calls to in_slist to only
6676         one.
6677
6678         * ftp.c (ftp_loop): Enhanced the heuristics that decides which
6679         routine to use.
6680
6681         * main.c (printhelp): Removed the warranty stuff.
6682
6683 1996-07-02  Hrvoje Niksic  <hniksic@srce.hr>
6684
6685         * url.c (add_slist): Simplify.
6686         (match_backwards_or_pattern): New function.
6687         (in_acclist): Use match_backwards_or_pattern.
6688         (matches): Remove.
6689
6690 1996-06-30  Hrvoje Niksic  <hniksic@srce.hr>
6691
6692         * ftp.c (ftp_loop): Call ftp_index on empty file names, if not
6693         recursive.
6694
6695         * html.c (ftp_index): Fixed to work. Beautified the output.
6696
6697         * ftp.c (ftp_retrieve_glob): Another argument to control whether
6698         globbing is to be used.
6699         (ftp_retrieve_list): Compare the time-stamps of local and remote
6700         files to determine whether to download.
6701
6702 1996-06-29  Hrvoje Niksic  <hniksic@srce.hr>
6703
6704         * ftp.c (rel_constr): New function.
6705
6706         * retr.c (retrieve_from_file): Check for text/html before
6707         retrieving recursively.
6708
6709         * main.c (main): Check whether the file is HTML before going into
6710         recursive HTML retrieving.
6711
6712         * ftp.c (ftp_retrieve_list): Manage directories.
6713         (ftp_retrieve_glob): Pass all the file-types to ftp_retrieve_list.
6714         (ftp_1fl_loop): Fixed a bug that caused con->com to be incorrectly
6715         initialized, causing bugchecks in getftp to fail.
6716
6717         * configure.in: Check for symlink.
6718
6719         * ftp.c (ftp_retrieve_list): Added support for symlinks.
6720
6721         * version.c: "Released" 1.4b10.
6722
6723         * atotm.c (atotm): Redeclared as time_t.
6724
6725         * init.c: New variable "timestamping".
6726
6727         * main.c (main): New option 'N'.
6728
6729         * http.c (hgetlocation): Case-insensitive match.
6730         (hgetmodified): New function.
6731         (http_loop): Implement time-stamping.
6732
6733 1996-06-28  Hrvoje Niksic  <hniksic@srce.hr>
6734
6735         * version.c: Changed version to 1.4b10
6736
6737         * atotm.c: New file, from phttpd.
6738
6739         * options.h (struct options): New parameter timestamping.
6740
6741         * version.c: 1.4b9 "released".
6742
6743         * recur.c (recursive_retrieve): Used linked list (ulist) for
6744         faster storing of URLs.
6745
6746         * url.c (get_urls_html): Removed the old kludge with comparing the
6747         outputs of htmlfindurl and findurl.
6748         (get_urls_html): Added better protocol support here.
6749         (create_hash): Removed, as well as add_hash and in_hash.
6750         (addslist): New function.
6751         (in_slist): ditto
6752
6753         * version.c: Released 1.4b8, changed version to b9.
6754
6755 1996-06-27  Hrvoje Niksic  <hniksic@srce.hr>
6756
6757         * ftp.c (freefileinfo): New function.
6758         (delelement): New function.
6759
6760         * everywhere: GPL!
6761
6762         * ftp.c (ftp_loop): Use ccon.
6763         (ftp_retrieve_glob): Likewise.
6764
6765         * ftp.h: Define ccon, to define status of control connection.
6766
6767         * ftp.c (ftp_get_listing): New function.
6768         (ftp_retrieve_more): New function.
6769         (ftp_retrieve_glob): New function.
6770
6771 1996-06-25  Hrvoje Niksic  <hniksic@srce.hr>
6772
6773         * configure.in: Removed the search for cuserid().
6774
6775         * init.c (getmode): Renamed to getperms.
6776
6777 1996-06-24  Hrvoje Niksic  <hniksic@srce.hr>
6778
6779         * version.c: New version.
6780
6781         * main.c (hangup): New function, that handles hangup. Hangup
6782         signal now causes geturl to stop writing on stdout, and to write
6783         to a log file.
6784
6785         * ftp.c (getftp): "Released" 1.4b7.
6786
6787         * html.c (htmlfindurl): Ignore everything inside <head>...</head>.
6788         (ftp_index): Use fileinfo/urlinfo.
6789
6790         * ftp-unix.c (ftp_parse_ls): New function.
6791         (symperms): New function.
6792
6793         * ftp.c (ftp_1fl_loop): New function, to handle 1-file loops.
6794
6795         * retr.c (retrieve_url): Added FTP support.
6796
6797 1996-06-23  Hrvoje Niksic  <hniksic@srce.hr>
6798
6799         * geturl.h: Removed NOTFTP2HTML enum.
6800         Added DO_LOGIN, DO_CWD and DO_LIST. LIST_ONLY is obsolete.
6801
6802         * ftp.c (getftp): Resynched with urlinfo.
6803         (getftp): Removed HMTL-ization of index.html from getftp.
6804
6805         * version.c: 1.4b6 "released".
6806
6807         * options.h (options): New struct, to keep options in.
6808
6809         * http.c (http_loop,gethttp): Synched with proxy.
6810
6811         * retr.c (retrieve_url): Implemented proxy retrieval.
6812
6813         * main.c (main): Use retrieve_from_file.
6814
6815 1996-06-22  Hrvoje Niksic  <hniksic@srce.hr>
6816
6817         * retr.c (retrieve_from_file): New function.
6818
6819         * url.c (parseurl): Modified to return URLOK if all OK. Protocol
6820         can be found in u->proto.
6821
6822         * ftp.c (ftp_response): Fixed to accept multi-line responses as
6823         per RFC 959.
6824
6825         * recr.c (recursive_retrieve): Take newloc from retrieve_url.
6826
6827         * url.c (mymkdir): Removed the file of the same name, if one
6828         exists.
6829         (isfile): New function.
6830         (mkstruct): Fixed the '/' glitches.
6831         (path_simplify): Hacked to treat something/.. correctly.
6832
6833 1996-06-21  Hrvoje Niksic  <hniksic@srce.hr>
6834
6835         * http.c (gethttp): Close the socket after error in headers.
6836         (http_loop): HEOF no longer a fatal header.
6837
6838         * loop.c (retrieve_url): When dt is NULL, do not modify it. This
6839         simplifies the syntax of calling retrieve_url.
6840
6841         * recr.c (recursive_retrieve): Modified to use get_urls_html.
6842
6843         * url.c (get_urls_file): New function.
6844         (get_urls_html): New function.
6845
6846         * recr.c (recursive_retrieve): Patched up to conform to the
6847         standards.
6848
6849         * http.c (gethttp): Synched with the rest...
6850         (gethttp): Treat only CONREFUSED specially, with connection
6851         errors.
6852
6853         * init.c,geturl.1,http.c (http_loop): Removed kill_error.
6854
6855 1996-06-20  Hrvoje Niksic  <hniksic@srce.hr>
6856
6857         * http.c (http_loop): New function.
6858
6859         * loop.c: Removed *lots* of stuff from retrieve_url.
6860
6861         * url.c (parseurl): Changed to work with urlinfo. Integrated
6862         username finding and path parsing.
6863         (newurl): New function.
6864         (freeurl): New function.
6865         (mkstruct): Removed the old bogosities, made it urlinfo-compliant.
6866         (url_filename): Likewise.
6867         (path_simplify): Accept relative paths too.
6868         (opt_url): Made urlinfo-compliant, removed bogosities.
6869         (path_simplify): Expanded to accept relative paths.
6870         (str_url): A replacement for hide_url
6871         (decode_string): Fixed a bug that caused malfunctioning when
6872         encountering an illegal %.. combination.
6873         (opt_url): Removed the argument. Dot-optimizations are now default.
6874
6875         * nmalloc.c (strdupdelim): New function.
6876
6877         * url.h: Added the urlinfo structure
6878
6879 1996-06-19  Hrvoje Niksic  <hniksic@srce.hr>
6880
6881         * url.c (hide_url): Thrown out the protocol assertion. Do not
6882         change the URL if the protocol if not recognized.
6883         (findurl): Put continue instead of break.
6884
6885 1996-06-18  Hrvoje Niksic  <hniksic@srce.hr>
6886
6887         * sample.geturlrc: Changed the defaults to be commented out and
6888         harmless (previous defaults caused pains if copied to
6889         ~/.geturlrc).
6890
6891         * http.c (gethttp): Print the HTTP request in debug mode.
6892
6893         * connect.c (iread): Added EINTR check loop to select-ing
6894         too. EINTR is now correctly handled with select().
6895
6896         * TODO: new file
6897
6898 1996-05-07  Hrvoje Niksic  <hniksic@srce.hr>
6899
6900         * host.c (same_host): Made the function a little bit more
6901         intelligent regarding diversified URL syntaxes.
6902
6903         * url.c (skip_url): Spaces are now skipped after URL:
6904
6905         * Released 1.3.1 with the patch to prevent crashing when sending
6906         NULL to robot* functions and the patch to compile "out of the box"
6907         on AIX.
6908
6909         * recr.c (recursive_retrieve): Added checking whether this_url is
6910         NULL when calling the robot functions.
6911
6912         * ChangeLog: New file.