~ubuntu-branches/ubuntu/lucid/wget/lucid-security

« back to all changes in this revision

Viewing changes to src/ChangeLog

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-05-27 11:49:54 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080527114954-ame070pjhqtofeaf
Tags: 1.11.2-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Add wget-udeb to ship wget.gnu as alternative to busybox wget
    implementation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
2008-04-30  Micah Cowan  <micah@cowan.name>
 
2
 
 
3
        * version.c: Bumped version to 1.11.2.
 
4
 
 
5
        * progress.c (create_image): Fix glitch where too many spaces are
 
6
        printed on lines that don't display the ETA, in multibyte
 
7
        locales.
 
8
 
 
9
2008-04-27  Rabin Vincent  <rabin@rab.in>
 
10
 
 
11
        * ftp.c (ftp_retrieve_glob): Prevent attempted retrieval of an
 
12
        empty filename when --recursive hits an empty directory.  Fixes
 
13
        bug #22968. [Thanks also to Steven M. Schweda, who also
 
14
        submitted this fix. -mjc]
 
15
 
 
16
2008-04-27  Rabin Vincent  <rabin@rab.in>
 
17
 
 
18
        * http.c (http_loop): Fix return for the case where we don't
 
19
        download a file because of -nc.
 
20
 
 
21
2008-04-27  Micah Cowan  <micah@cowan.name>
 
22
 
 
23
        * url.c (path_simplify): Go back to allowing leading ".." in
 
24
        paths, but only for FTP URLs.
 
25
        (test_path_simplify): Add scheme-specificness to tests, adapt for
 
26
        mu_run_test.
 
27
 
 
28
        * test.c (all_tests): Add test_path_simplify.
 
29
 
 
30
        * main.c (main): Downgrade -r, -p with -O to a warning rather than
 
31
        an error; elaborate just a bit more for other -O combination
 
32
        cases.
 
33
 
 
34
2008-04-26  Micah Cowan  <micah@cowan.name>
 
35
 
 
36
        * http.c (gethttp): Move proxy CONNECT handling to below the
 
37
        retry_with_auth label, to deal with properly reconnecting to
 
38
        proxies when we need to authenticate.
 
39
        * version.c: Forgot to move version to a "-devel" one again.
 
40
 
 
41
2008-04-11  Micah Cowan  <micah@cowan.name>
 
42
 
 
43
        * ftp.c (getftp, ftp_loop_internal): Don't append to an existing
 
44
        .listing when --continue is used.  Fixes bug #22825. Thanks to
 
45
        Rabin Vincent <rabin@rab.in> for pointing the way with a
 
46
        suggested fix!
 
47
 
 
48
2008-03-19  Micah Cowan  <micah@cowan.name>
 
49
 
 
50
        * utils.c (test_dir_matches_p): More tests related for
 
51
        dir_matches_p.
 
52
 
 
53
2008-03-17  Micah Cowan  <micah@cowan.name>
 
54
 
 
55
        * connect.c: Include sys/time.h to support use of the select
 
56
        function on older systems.
 
57
 
 
58
2008-02-11  Benno Schulenberg  <bensberg@justemail.net>
 
59
 
 
60
        * http.c: More accurate and descriptive messages for when a file
 
61
        won't be retrieved during spider-mode.
 
62
 
 
63
2008-02-10  Micah Cowan  <micah@cowan.name>
 
64
 
 
65
        * http.c: Added existence_checked member to the http_stat
 
66
        struct.
 
67
        (gethttp): Mark hs->existence_checked when we've checked whether
 
68
        a file-to-download exists; so we don't check it again if the
 
69
        connection gets lost (and potentially pick a new "unique" name).
 
70
        This fixes bug 22251.
 
71
        * progress.c (create_image): Add space for an extra column in
 
72
        the "eta" portion of the progress bar image; to deal with
 
73
        too-long Czech translation.
 
74
        * main.c, http.c, init.c: Added --auth-no-challenge option, to
 
75
        bring back 1.10.2 unsafe auth behavior when needed. This fixes
 
76
        bug #22242.
 
77
 
 
78
2007-02-10  Hrvoje Niksic  <hniksic@xemacs.org>
 
79
 
 
80
        * ftp.c (ftp_retrieve_glob): Print both arguments of fnmatch in
 
81
        fnmatch error message.
 
82
        (ftp_retrieve_glob): Don't match with fnmatch if we're only
 
83
        supposed to get one file.
 
84
 
 
85
2008-02-07  Micah Cowan  <micah@cowan.name>
 
86
 
 
87
        * progress.c (create_image): Remove assertion on exceeding
 
88
        screen width, which given the less-than-robust code there, can
 
89
        be broken by a number of factors (such as large file downloads).
 
90
 
 
91
2008-02-06  Micah Cowan  <micah@cowan.name>
 
92
 
 
93
        * progress.c (countcols): Use strlen() when mbtowc or wcwidth
 
94
        not available (or not using NLS).
 
95
        * utils.c: Ensure we use single-byte separators when not doing
 
96
        NLS progress-bars.
 
97
        * wget.h: Determine whether to use NLS for progress-bars, based
 
98
        on whether wcwidth and mbtowc are available.
 
99
 
 
100
2008-02-03  Micah Cowan  <micah@cowan.name>
 
101
 
 
102
        * progress.c (create_image): Use number of characters/columns
 
103
        consumed, rather than number of bytes, to determine how much of
 
104
        a line we've used. Fixes assertion errors and field alignment
 
105
        bugs (#22161, #20481)
 
106
        (get_eta, count_cols): Added to support the changes for
 
107
        create_image.
 
108
        * http.c (http_loop): Put no-clobber logic back into http_loop,
 
109
        before starting to fetch, for when we're not doing
 
110
        content-disposition.
 
111
 
 
112
2008-01-31  Micah Cowan  <micah@cowan.name>
 
113
 
 
114
        * http.c (gethttp): Don't derive hs->contlen from possibly
 
115
        invalid/missing Content-Length; instead, get the appropriate
 
116
        value from the Content-Range header values.
 
117
        (parse_content_range): Handle '*' instance-length field.
 
118
 
 
119
2008-01-30  Micah Cowan  <micah@cowan.name>
 
120
 
 
121
        * version.c: Bumped version number to 1.11.1-devel.
 
122
 
 
123
2008-01-25  Micah Cowan  <micah@cowan.name>
 
124
 
 
125
        * Makefile.in, cmpt.c, connect.c, connect.h, convert.c,
 
126
        cookies.c, cookies.h, ftp-basic.c, ftp-ls.c, ftp-opie.c, ftp.c,
 
127
        ftp.h, gen-md5.c, gen-md5.h, gnu-md5.c, gnu-md5.h, gnutls.c,
 
128
        hash.c, hash.h, host.c, host.h, html-parse.c, html-parse.h,
 
129
        html-url.c, http-ntlm.c, http-ntlm.h, http.c, http.h, init.c,
 
130
        init.h, log.c, log.h, main.c, mswindows.c, mswindows.h, netrc.c,
 
131
        netrc.h, openssl.c, options.h, progress.c, progress.h, ptimer.c,
 
132
        ptimer.h, recur.c, recur.h, res.c, res.h, retr.c, retr.h,
 
133
        spider.c, spider.h, ssl.h, sysdep.h, test.c, test.h, url.c,
 
134
        url.h, utils.c, utils.h, wget.h, xmalloc.c, xmalloc.h: Updated
 
135
        copyright year.
 
136
        * version.c: Bumped version number to 1.11.
 
137
 
 
138
2007-12-10  Micah Cowan  <micah@cowan.name>
 
139
 
 
140
        * main.c: The option is --content-disposition, not
 
141
        --no-content-disposition (at the moment).
 
142
 
 
143
2007-12-05  Micah Cowan  <micah@cowan.name>
 
144
 
 
145
        * utils.c (subdir_p): Handle the case where d1 is "".
 
146
        * convert.c (convert_all_links): Don't return without
 
147
        deallocating timer.
 
148
 
 
149
2007-11-28  Micah Cowan  <micah@cowan.name>
 
150
 
 
151
        * Makefile.in, cmpt.c, connect.c, connect.h, convert.c,
 
152
        convert.h, cookies.c, cookies.h, ftp-basic.c, ftp-ls.c,
 
153
        ftp-opie.c, ftp.c, ftp.h, gen-md5.c, gen-md5.h, gnutls.c,
 
154
        hash.c, hash.h, host.c, host.h, html-parse.c, html-parse.h,
 
155
        html-url.c, http-ntlm.c, http-ntlm.h, http.c, http.h, init.c,
 
156
        init.h, log.c, log.h, main.c, mswindows.c, mswindows.h,
 
157
        netrc.c, netrc.h, openssl.c, options.h, progress.c, progress.h,
 
158
        ptimer.c, ptimer.h, recur.c, recur.h, res.c, res.h, retr.c,
 
159
        retr.h, safe-ctype.c, safe-ctype.h, spider.c, spider.h, ssl.h,
 
160
        sysdep.h, test.c, test.h, url.c, url.h, utils.c, utils.h,
 
161
        wget.h, xmalloc.c, xmalloc.h: Updated license exception for
 
162
        OpenSSL, per the SFLC.
 
163
 
 
164
2007-10-10  Micah Cowan  <micah@cowan.name>
 
165
 
 
166
        * http-ntlm.c: Include openssl/opensslv.h explicitly, instead of
 
167
        hoping it'll be included by accident in openssl/des.h.
 
168
 
 
169
2007-10-09  Gisle Vanem  <gvanem@broadpark.no>
 
170
 
 
171
        * mswindows.c: 'argc' and 'argv' in 'windows_main()' are no longer
 
172
        needed.  Hence simply the prototype. Free 'exec_name' at exit.
 
173
 
 
174
2007-10-08  Micah Cowan  <micah@cowan.name>
 
175
 
 
176
        * http.c (http_loop): Add send_head_first conditional back
 
177
        around code that needs it, but not around the last-modified
 
178
        header-parsing stuff this time. Removed no-longer-useful (was it
 
179
        ever?) restart_loop boolean, continuing unconditionally at end
 
180
        of send_head_first conditional block (if we haven't jumped out).
 
181
 
 
182
2007-10-04  Micah Cowan  <micah@cowan.name>
 
183
 
 
184
        * http.c (http_loop): We've got_name if content_disposition
 
185
        support isn't on; make sure we continue properly in that case,
 
186
        even though we're not sending HEAD.
 
187
 
 
188
2007-10-02  Gisle Vanem  <gvanem@broadpark.no>
 
189
        
 
190
        * ftp.c: Use "_listing" for MSDOS (".listing" is illegal).
 
191
 
 
192
        * url.c: Update comment for 'filechr_not_windows'.
 
193
 
 
194
        * utils.c: Include <process.h> for 'getpid()' on Watcom.
 
195
 
 
196
2007-10-02  Micah Cowan  <micah@cowan.name>
 
197
 
 
198
        * ftp.c (getftp, ftp_loop_internal), http.c (http_loop), main
 
199
        (main): Use datetime_str instead of time_str, for those who have
 
200
        potentially long-running sessions. Based on suggestions by Saso
 
201
        Tomat <miskox@hotmail.com> and Steven M. Schweda
 
202
        <sms@antinode.org>.
 
203
        * http.c (gethttp): Warn about host lookup failures. Adjusted
 
204
        from Stephen Gildea's patch.
 
205
 
 
206
2007-10-02  Stephen Gildea  <stepheng+wget@gildea.com>
 
207
 
 
208
        * connect.c (connect_to_host): Warn about host lookup failures.
 
209
 
 
210
2007-09-25  Micah Cowan  <micah@cowan.name>
 
211
 
 
212
        * Makefile.in: Use EXEEXT instead of exeext.
 
213
 
 
214
2007-09-24  Gisle Vanem  <giva@bgnett.no>
 
215
 
 
216
        * connect.c, init.c, main.c, openssl.c, options.h, sysdep.h,
 
217
        url.c, utils.c: Added support for building on MS-DOS.
 
218
 
 
219
2007-09-24  Jochen Roderburg  <roderburg@uni-koeln.de>
 
220
 
 
221
        * http.c (http_zero): Remove no-longer-used local_size variable.
 
222
        Fixes bug #21057.
 
223
 
 
224
2007-09-12  Micah Cowan  <micah@cowan.name>
 
225
 
 
226
        * http.c (http_loop): Remove send_head_first from condition for
 
227
        parsing timestamp.
 
228
 
 
229
2007-08-29  Micah Cowan  <micah@cowan.name>
 
230
 
 
231
        * openssl.c (ssl_init): Re un-const-ified the meth local
 
232
        variable, to match current versions of openssl.
 
233
        * spider.c: Removed visited_url function, as it may be very
 
234
        inefficient.
 
235
        (print_broken_links): Removed traversal of referrers, until such
 
236
        time as a more efficient implementation can be written.
 
237
        * spider.h: Replaced declaration of visited_url with an
 
238
        empty-bodied, function-like macro.
 
239
 
 
240
2007-08-27  Gisle Vanem  <giva@bgnett.no>
 
241
 
 
242
        * mswindows.c (run_with_timeout): Ensure that the correct
 
243
        conversion specification is used for the return result of
 
244
        the GetLastError function.
 
245
        * getopt.c: Fix missing (but, accidentally, legal) comment
 
246
        delimiter after licensing text.
 
247
        * recur.c (retrieve_tree): Inserted missing cast for strip_auth.
 
248
        Includes adjustment by Ralf Wildenhues.
 
249
        * openssl.c (ssl_init): const-ified the meth local variable.
 
250
        * main.c: Include all the static function definitions in the
 
251
        "#ifndef TESTING" clause, leaving just the definitions for
 
252
        exec_name (not set), and opt.
 
253
        * utils.c (run_with_timeout): Now returns bool, to align with
 
254
        declaration in utils.h.
 
255
 
 
256
2007-08-27  Micah Cowan  <micah@cowan.name>
 
257
 
 
258
        * wget.h: Added macro replacement for ngettext, for environs
 
259
        that lack NLS.
 
260
 
 
261
2007-08-26  Micah Cowan  <micah@cowan.name>
 
262
 
 
263
        * spider.c (print_broken_links): Fixed incorrect plurals msgid
 
264
        usage, switched to use ngettext function.
 
265
 
 
266
2007-08-24  Micah Cowan  <micah@cowan.name>
 
267
 
 
268
        * http.c (http_loop): Introduced time_came_from_head boolean
 
269
        flag, to help avoid parsing the same Last-Modified header twice.
 
270
        Replaced spidering returns of RETRUNNEEDED for some situations,
 
271
        to RETROK, as otherwise it will be interpreted as an error.
 
272
        RETRUNNEEDED appears never to be referenced outside of
 
273
        http.c (and wget.h), and, when returned by gethttp, is
 
274
        translated by http_loop to RETROK.
 
275
        * url.c (are_urls_equal): Don't call getchar_from_escaped_string
 
276
        if u2 is shorter than u1.
 
277
        (getchar_from_escaped_string): Don't decode reserved characters.
 
278
        Handle illegally appearing '%'s as literal '%'s. Ensure hex
 
279
        digits before attempting to decode.
 
280
        (test_are_urls_equal): Added tests to handle u2 shorter than u1,
 
281
        and %2f not treated the same as /.
 
282
        * spider.c (in_url_list_p): Don't call are_urls_equal if one of
 
283
        them is NULL.
 
284
 
 
285
2007-08-23  Joshua David Williams  <yurimxpxman@gmail.com>
 
286
 
 
287
        * spider.c (in_url_list_p): Removed the bool verbose argument
 
288
 
 
289
2007-08-22  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
290
 
 
291
        * http.c (http_loop): Fall back to GET if HEAD fails with a 500 or 501
 
292
        error code.
 
293
 
 
294
2007-08-21  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
295
        
 
296
        * http.c (http_loop): Send preliminary HEAD request if -N is given and
 
297
        the destination file exists already.
 
298
 
 
299
2007-08-10  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
300
 
 
301
        * http.c (http_loop): Fixed HTTP HEAD requests logic when --spider is
 
302
        given.
 
303
 
 
304
2007-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
305
 
 
306
        * url.c (append_uri_pathel): Do not assume dest string to be
 
307
        zero-terminated.
 
308
        (test_append_uri_pathel): Terminate string to fix test failure.
 
309
 
 
310
2007-08-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
311
 
 
312
        * url.c (url_string): Use comparison, not assignment, in
 
313
        check for auth_mode == URL_AUTH_HIDE_PASSWD.
 
314
 
 
315
2007-08-09  Micah Cowan  <micah@cowan.name>
 
316
 
 
317
        * http.c (http_loop): If we got a HEAD and then a GET, and the
 
318
        GET had a timestamp, use that one, not any we may have gotten
 
319
        from the HEAD.
 
320
 
 
321
2007-08-08  Micah Cowan  <micah@cowan.name>
 
322
 
 
323
        * init.c (defaults): Content disposition will not be default,
 
324
        since it currently results in extra round-trips.
 
325
 
 
326
2007-07-31  Micah Cowan  <micah@cowan.name>
 
327
 
 
328
        * http.c (gethttp): Set contlen = -1 when we encounter a
 
329
        negative-valued Content-Length header, so we don't consider it
 
330
        an internal error later on and call abort().
 
331
 
 
332
2007-07-29  Micah Cowan  <micah@cowan.name>
 
333
 
 
334
        * url.h, url.c (url_string): Replaced bool arg of the url_string
 
335
        function with enum url_auth_mode, with added option to
 
336
        completely remove user/pass auth information.
 
337
        * http.c, ftp.c, url.c, recur.c: Adapted call to url_string
 
338
        function to fit new usage.
 
339
        * recur.c (retrieve_tree): Remove auth info from Referer header.
 
340
 
 
341
2007-07-28  Micah Cowan  <micah@cowan.name>
 
342
 
 
343
        * options.h, init.c, retr.c, main.c: renamed opt maxredirect
 
344
        field to max_redirect, for improved consistency.
 
345
        * init.c: changed max_redirect parser from cmd_number_inf to
 
346
        cmd_number, as infinite redirects may not be appropriate.
 
347
        Alternatively, if cmd_number_inf should be used, then
 
348
        opt.max_redirect's value should be checked a bit differently in
 
349
        retr.c, to allow for the "infinite" meaning of zero.
 
350
 
 
351
2007-07-25  Micah Cowan  <micah@cowan.name>
 
352
 
 
353
        * http.c (create_authorization_line)
 
354
        (basic_authentication_encode, known_authentication_scheme_p)
 
355
        (load_cookies): Moved declarations up.
 
356
        (basic_authed_hosts): Added. Tracks what hosts have issued Basic
 
357
        challenge and been given the global username, password.
 
358
        (maybe_send_basic_creds): Added. Sends Basic creds for hosts that
 
359
        have issued Basic challenges.
 
360
        (register_basic_auth_host): Added. Instantiates
 
361
        basic_authed_hosts if necessary, then registers the host that
 
362
        has issued a challenge.
 
363
        (gethttp) <auth>: Only send authentication credentials after
 
364
        we've received a challenge from that host. This is a stop-gap
 
365
        fix until a proper fix can be implemented; still isn't quite
 
366
        right, as we should only be sending credentials automatically
 
367
        for authenticated paths and below, and not for the entire host.
 
368
 
 
369
2007-07-16  Joshua David Williams  <yurimxpxman@gmail.com>
 
370
 
 
371
        * options.h: added maxredirect to options struct
 
372
        * init.c: added maxredirect to list of variables
 
373
        * retr.c (retrieve_url): replaced MAX_REDIRECTIONS with opt.maxredirect
 
374
        * main.c: added option --max-redirect
 
375
 
 
376
2007-07-16  Joshua David Williams  <yurimxpxman@gmail.com>
 
377
 
 
378
        * test.h: tests made more verbose; now displays the name
 
379
        of each test run.
 
380
 
 
381
2007-07-10  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
382
 
 
383
        * http.c (http_loop): Fixed the HTTP requests logic. Now it skips the 
 
384
        preliminary HEAD request if either -O or --no-content-disposition are 
 
385
        given, and neither --spider and -N are given.
 
386
 
 
387
2007-07-05  Micah Cowan  <micah@cowan.name>
 
388
 
 
389
        * cmpt.c, connect.c, connect.h, convert.c, convert.h:
 
390
        * cookies.c, cookies.h, ftp-basic.c, ftp.c, ftp.h, ftp-ls.c:
 
391
        * ftp-opie.c, gen-md5.c, gen-md5.h, getopt.c, getopt.h, gnu-md5.c:
 
392
        * gnu-md5.h, gnutls.c, hash.c, hash.h, host.c, host.h:
 
393
        * html-parse.c, html-parse.h, html-url.c, http.c, http.h:
 
394
        * http-ntlm.c, http-ntlm.h, init.c, init.h, log.c, log.h, main.c:
 
395
        * Makefile.in, mswindows.c, mswindows.h, netrc.c, netrc.h:
 
396
        * openssl.c, options.h, progress.c, progress.h, ptimer.c:
 
397
        * ptimer.h, recur.c, recur.h, res.c, res.h, retr.c, retr.h:
 
398
        * safe-ctype.c, safe-ctype.h, spider.c, spider.h, ssl.h, sysdep.h:
 
399
        * test.c, test.h, url.c, url.h, utils.c, utils.h, wget.h:
 
400
        * xmalloc.c, xmalloc.h:
 
401
        Updated GPL reference to version 3 or later, removed FSF
 
402
        address.
 
403
 
 
404
2007-07-04  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
405
 
 
406
        * http.c (http_loop): Skip HEAD request and start immediately with GET
 
407
        if -O is given.
 
408
 
 
409
2007-02-02  Hrvoje Niksic  <hniksic@xemacs.org>
 
410
 
 
411
        * http.c (print_server_response): Escape non-printable characters
 
412
        in server respone.
 
413
 
 
414
2007-02-02  Hrvoje Niksic  <hniksic@xemacs.org>
 
415
 
 
416
        * netrc.c: Don't make netrc_list static, as it prevents
 
417
        compilation with DEBUG_MALLOC.
 
418
 
 
419
        * utils.c (aprintf): Don't use vasprintf when DEBUG_MALLOC is
 
420
        requested because, in that case, we want the calls to malloc to be
 
421
        coming from us.
 
422
 
 
423
2007-01-23  Hrvoje Niksic  <hniksic@xemacs.org>
 
424
 
 
425
        * cookies.c (parse_set_cookie): Would erroneously discard cookies
 
426
        with unparsable expiry time.
 
427
 
 
428
2007-01-23  Hrvoje Niksic  <hniksic@xemacs.org>
 
429
 
 
430
        * progress.c (create_image): Check for ETA overflow.
 
431
        (print_row_stats): Ditto.
 
432
 
 
433
2007-01-09  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
434
 
 
435
        * init.c (cmd_spec_prefer_family): Small fix to get rid of a gcc
 
436
        warning about strict-aliasing violation.
 
437
 
 
438
2007-01-09  Steven M. Schweda  <sms@antinode.org>
 
439
 
 
440
        * ftp-basic.c (ftp_syst): Fixed segfault if response text is missing.
 
441
 
 
442
2006-12-29  Gisle Vanem  <giva@bgnett.no>
 
443
 
 
444
        * mswindows.c: Avoid a warning if 'ws_hangup()' is unused.
 
445
 
 
446
2006-12-27  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
447
 
 
448
        * http.c (parse_content_disposition): Consider directory prefix, if
 
449
        specified.
 
450
 
 
451
2006-11-21  Hrvoje Niksic  <hniksic@xemacs.org>
 
452
 
 
453
        * retr.c (retrieve_from_file): Ditto.
 
454
        (url_uses_proxy): New function.
 
455
 
 
456
        * main.c (main): Don't check for opt.use_proxy when deciding
 
457
        whether to call retrieve_url or retrieve_tree; check whether the
 
458
        proxy would be used for *this* URL.
 
459
 
 
460
2006-10-17  Mike Grant  <mggr@pml.ac.uk>
 
461
 
 
462
        * ftp.c (ftp_loop_internal): Would incorrectly skip changing
 
463
        working directory when retrying after a failed FTP attempt.
 
464
        Originally reported by Nate Eldredge.
 
465
 
 
466
2006-10-12  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
467
 
 
468
        * convert.c (downloaded_file): Fixed bug which used to break -E -k -K 
 
469
        mode.
 
470
 
 
471
2006-08-28  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
472
 
 
473
        * http.c: #include'd spider.h to get rid of compiler warnings.
 
474
 
 
475
        * main.c: Ditto.
 
476
 
 
477
        * recur.c: Ditto.
 
478
 
 
479
2006-08-24  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
480
 
 
481
        * Makefile.in: Added spider.c to the list of files to compile and
 
482
        spider.h to the list of header files. Updated copyright information.
 
483
 
 
484
        * http.c: Major changes to recursive spider mode. Now for every
 
485
        resource we are supposed to check, we send a HEAD request to find out
 
486
        if it exists. If the resource is a HTML file, we retrieve it and parse
 
487
        it to discover links to other resources.
 
488
 
 
489
        * recur.c: Ditto.
 
490
 
 
491
        * res.c (res_retrieve_file): Disable opt.timestamping and opt.spider
 
492
        when retrieving robots.txt. Updated copyright information.
 
493
 
 
494
        * convert.c: Moved code tracking broken links to spider.c.
 
495
 
 
496
        * convert.h: Ditto.
 
497
 
 
498
        * spider.c: Created new file to keep track of visited URLs in spider
 
499
        mode.
 
500
 
 
501
        * spider.h: Ditto.
 
502
 
 
503
2006-08-21  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
504
 
 
505
        * http.c: Fixed timestamping-related bug.
 
506
 
 
507
2006-08-16  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
508
 
 
509
        * http.c: Fixed bug which broke --continue feature. Now if -c is
 
510
        given, http_loop sends a HEAD request to find out the destination
 
511
        filename before resuming download.
 
512
 
 
513
2006-08-08  Hrvoje Niksic  <hniksic@xemacs.org>
 
514
 
 
515
        * utils.c (datetime_str): Avoid code repetition with time_str.
 
516
 
 
517
2006-07-21  Hrvoje Niksic  <hniksic@xemacs.org>
 
518
 
 
519
        * init.c (commands): Correctly place "contentdisposition".
 
520
 
 
521
2006-07-14  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
522
        
 
523
        * sysdep.h: If intptr_t isn't defined, simply typedef it to long.
 
524
 
 
525
        * http.c: Added explicit cast to int in logprintf call to remove
 
526
        compiler warnings on 64-bit platforms.
 
527
 
 
528
        * connect.c: Added a few casts to intptr_t to remove compiler warnings
 
529
        on 64-bit platforms.
 
530
        
 
531
        * main.c: Disable -r, -p and -N when -O is used. Disable -k when -O is
 
532
        used and multiple URLs are given. Update maintainer information.
 
533
        
 
534
        * all: Update copyright information.
 
535
        
 
536
2006-07-10  KJKHyperion  <hackbunny@reactos.com>
 
537
 
 
538
        * url.c (filechr_table): Mark DEL (0x7f) as a control character
 
539
        and | as a character Windows can't handle.
 
540
 
 
541
2006-06-28  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
542
 
 
543
        * res.c: Implemented is_robots_txt_url function for detection of
 
544
        robots.txt URLs and related test routine.
 
545
 
 
546
        * res.h: Ditto.
 
547
 
 
548
        * url.c: Implemented are_urls_equal function for URL comparison and
 
549
        related testing routine.
 
550
 
 
551
        * url.h: Ditto.
 
552
 
 
553
        * convert.c: Fixes for recursive spider mode: don't consider
 
554
        non-existing robots.txt as a broken link, and use are_urls_equal
 
555
        instead of strcasecmp for referrer URLs comparison.
 
556
 
 
557
        * test.c: Call tests routines for are_urls_equal and 
 
558
        is_robots_txt_url.
 
559
 
 
560
2006-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 
561
 
 
562
        * wget.h (wgint): Typedef to any 64-bit (or larger) type we can
 
563
        find, not necessarily off_t or long.
 
564
 
 
565
2006-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 
566
 
 
567
        * cmpt.c (strtoll): Check for overflow and underflow without
 
568
        relying on (technically) undefined behavior.  Don't assume that
 
569
        strtoll_type is 64 bits wide.
 
570
 
 
571
2006-06-21  Hrvoje Niksic  <hniksic@xemacs.org>
 
572
 
 
573
        * utils.c (base64_encode): Cast void pointer to char * before
 
574
        doing arithmetic.
 
575
 
 
576
2006-06-20  Hrvoje Niksic  <hniksic@xemacs.org>
 
577
 
 
578
        * utils.c (base64_encode): Made TBL const.
 
579
        (base64_decode): Made the base64_char_to_value table const.
 
580
 
 
581
2006-06-19  Hrvoje Niksic  <hniksic@xemacs.org>
 
582
 
 
583
        * utils.c (base64_encode): Made the DATA pointer void * so the
 
584
        callers can pass it any kind of pointer (including both signed and
 
585
        unsigned char pointers).
 
586
        (base64_decode): Ditto for DEST.
 
587
 
 
588
2006-06-19  Hrvoje Niksic  <hniksic@xemacs.org>
 
589
 
 
590
        * utils.c (base64_encode): Would read past end of STR.
 
591
        Reported by rick@eckle.org.
 
592
 
 
593
2006-06-13  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
594
 
 
595
        * options.h (struct options): Introduced member restrict_files_case to
 
596
        keep track of preferences on character case restrictions for
 
597
        filenames.
 
598
 
 
599
        * init.c: Modified defaults and cmd_spec_restrict_file_names to
 
600
        support character case restrictions for filenames. Added
 
601
        test_cmd_spec_restrict_file_names unit test.
 
602
 
 
603
        * url.c: Modified append_uri_pathel to support character case
 
604
        restrictions for filenames. Added test_append_uri_pathel unit test.
 
605
 
 
606
        * test.c: Added test_cmd_spec_restrict_file_names and
 
607
        test_append_uri_pathel to the list of unit tests to run.
 
608
 
 
609
2006-06-12  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
610
 
 
611
        * retr.c (retrieve_from_file): Use retrieve_tree and automatically
 
612
        turn on opt.follow_ftp in case of recursive FTP retrieval through HTTP
 
613
        proxy.
 
614
 
 
615
        * main.c: Automatically turn on opt.follow_ftp in case of recursive
 
616
        FTP retrieval through HTTP proxy.
 
617
 
 
618
2006-06-12  Tony Lewis  <tlewis@exelana.com>
 
619
 
 
620
        * main.c: Improved CHEN Peng's patch by proposing a simpler logic.
 
621
 
 
622
2006-06-12  CHEN Peng  <chenpeng@alumni.nus.edu.sg>
 
623
 
 
624
        * main.c: Use retrieve_tree in case of recursive FTP retrieval through
 
625
        HTTP proxy.
 
626
 
 
627
2006-05-25  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
628
 
 
629
        * convert.c: Added mechanisms to keep track broken links.
 
630
 
 
631
        * convert.h: Ditto.
 
632
 
 
633
        * wget.h: Reordered and enumerated uerr_t constants.
 
634
 
 
635
        * recur.c: Fixes to support recursive spider mode.
 
636
 
 
637
        * http.c: Ditto.
 
638
 
 
639
        * main.c: Print broken links in case of recursive spider mode.
 
640
 
 
641
        * retr.c: Changed interface of retrieve_url.
 
642
 
 
643
        * retr.h: Ditto.
 
644
 
 
645
        * ftp.c: Changed interface of ftp_loop.
 
646
 
 
647
        * ftp.h: Ditto.
 
648
 
 
649
        * res.c: Minor change to reflect changes in interface of retrieve_url.
 
650
 
 
651
2006-05-18  Lawrence Jones  <lawrence.jones@ugs.com>
 
652
 
 
653
        * ftp-ls.c (ftp_parse_unix_ls): Correct size parsing, add size
 
654
        and filename debugging output.
 
655
 
 
656
2006-04-28  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
657
 
 
658
        * http.c: If Content-Disposition header is present, allow unique
 
659
        filename generation unless -nc is given. Permit to disable parsing of
 
660
        Content-Disposition header.
 
661
 
 
662
        * options.h: Added option --no-content-disposition to disable parsing
 
663
        of HTTP Content-Disposition header.
 
664
 
 
665
        * init.c: Ditto.
 
666
        
 
667
        * main.c: Ditto.
 
668
 
 
669
2006-04-11  Hrvoje Niksic  <hniksic@xemacs.org>
 
670
 
 
671
        * hash.c (TOLOWER): Wrap macro arg in parentheses.
 
672
 
 
673
2006-04-08  Hrvoje Niksic  <hniksic@xemacs.org>
 
674
 
 
675
        * http.c (parse_content_disposition): Doc fix.
 
676
 
 
677
2006-03-15  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
678
 
 
679
        * utils.c: Restricted operational semantics of frontcmp and proclist
 
680
        from generic strings to directory names and them to subdir_p and
 
681
        dir_matches_p respectively.  Applied George Ogata's one line patch to
 
682
        restrict algorithm of subdir_p to full directory name matching.  Added
 
683
        testcases for subdir_p and dir_matches_p.
 
684
 
 
685
        * utils.h: Changed all frontcmp occurrences to subdir_p.
 
686
        
 
687
        * recur.c: Ditto.
 
688
        
 
689
        * test.c: Changed type returned by test functions from char * to const
 
690
        char *.  Added test_subdir_p and test_dir_matches_p to the list of
 
691
        tests to run.
 
692
 
 
693
        * http.c (test_parse_content_disposition): Changed return type from
 
694
        char * to const char *. 
 
695
 
 
696
2006-03-14  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
697
 
 
698
        * recur.c (struct queue_element): Changed type of html_allowed member
 
699
        to bool.
 
700
        
 
701
2006-03-09  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
702
 
 
703
        * ftp.c (ftp_list): Try `LIST -a' command first and revert to `LIST'
 
704
        in case of failure.
 
705
 
 
706
2006-03-06  Hrvoje Niksic  <hniksic@xemacs.org>
 
707
 
 
708
        * hash.c (TOLOWER): Fix definition when STANDALONE.
 
709
        Reported by Beni Serfaty.
 
710
 
 
711
2006-03-02  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
712
 
 
713
        * http.c (http_loop): Fixed recursive HTTP retrieval.
 
714
 
 
715
2006-02-28  Hrvoje Niksic  <hniksic@xemacs.org>
 
716
 
 
717
        * http.c (extract_param): Declare extern so it can be used from
 
718
        other files.
 
719
        (extract_param): Return error for empty name.
 
720
 
 
721
2006-02-28  Hrvoje Niksic  <hniksic@xemacs.org>
 
722
 
 
723
        * url.c (find_last_char): Define in terms of memrchr.
 
724
 
 
725
        * cmpt.c (memrchr): Define it on systems that don't have it.
 
726
 
 
727
        * http.c (extract_param): New function for parsing header values
 
728
        with parameters.
 
729
        (parse_content_disposition): Use it.  Don't allow slashes and
 
730
        backslashes in the file name.
 
731
 
 
732
2006-02-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
733
 
 
734
        * url.c (path_simplify): Don't preserve ".." at beginning of path.
 
735
        Suggested by Frank McCown.
 
736
 
 
737
2006-02-25  Hrvoje Niksic  <hniksic@xemacs.org>
 
738
 
 
739
        * http.c (gethttp): Only use FILE.N.html if FILE.html exists.
 
740
 
 
741
2006-02-09  Hrvoje Niksic  <hniksic@xemacs.org>
 
742
 
 
743
        * mswindows.c (run_with_timeout): Made thread_hnd non-static.
 
744
 
 
745
2006-02-05  Hrvoje Niksic  <hniksic@xemacs.org>
 
746
 
 
747
        * retr.c (sleep_between_retrievals): Sleep at a minimum of 1/2 of
 
748
        the specified wait period.
 
749
 
 
750
2006-02-03  Hrvoje Niksic  <hniksic@xemacs.org>
 
751
 
 
752
        * utils.c (number_to_string): Don't use sprintf for printing
 
753
        WGINT_MIN; simply divide n by 10 and defer printing the last
 
754
        digit.
 
755
        (number_to_string): Removed the SPRINTF_WGINT macro.
 
756
 
 
757
2006-02-03  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
758
 
 
759
        * http.c: Fixed support for Content-Disposition header.
 
760
 
 
761
        * test.c: Added test_parse_content_disposition to the list of unit
 
762
        tests to run.
 
763
 
 
764
2006-02-02  Hrvoje Niksic  <hniksic@xemacs.org>
 
765
 
 
766
        * hash.c: Don't define countof if it's already defined.
 
767
 
 
768
        * hash.c: Obtain the definition of uintptr_t when standalone.
 
769
 
 
770
2006-01-30  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
771
 
 
772
        * http.c: Changed output format. Removed excessively verbose debugging
 
773
        output.
 
774
 
 
775
2005-12-07  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
776
 
 
777
        * http.c: Fixed pre-download verbose output which was broken by 
 
778
        HTTP code refactoring.
 
779
 
 
780
2005-11-23  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
781
 
 
782
        * http.c: Refactored HTTP code.  If -O is not used, the new code
 
783
        delays the choice of the file name where the downloaded resource
 
784
        will be saved until the HTTP headers have been retrieved.
 
785
        Added support for Content-Disposition header. 
 
786
 
 
787
2005-11-19  Hrvoje Niksic  <hniksic@xemacs.org>
 
788
 
 
789
        * hash.c (INVALID_PTR): Use uintptr_t instead of unsigned long.
 
790
        (hash_pointer): Don't assume a pointer fits in `unsigned long'.
 
791
 
 
792
2005-11-02  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
793
 
 
794
        * Makefile.in: Removed support for unit testing (now it is in
 
795
        tests/Makefile.in).
 
796
 
 
797
2005-10-27  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
798
 
 
799
        * Makefile.in: Added basic support for unit testing.
 
800
 
 
801
        * test.c: Ditto.
 
802
        
 
803
        * test.h: Ditto.
 
804
        
1
805
2005-10-13  Daniel Stenberg  <daniel@haxx.se>
2
806
 
3
807
        * http-ntlm.c (ntlm_output): Fixed buffer overflow vulnerability.
4
808
 
 
809
2005-10-09  Russ Allbery  <rra@stanford.edu>
 
810
 
 
811
        * snprintf.c: Remove round to round_int and pow10 to pow10_int, to
 
812
        avoid warnings from GCC 4.0.
 
813
 
 
814
2005-10-05  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
815
 
 
816
        * retr.c: Changed semantics of no_proxy_match.
 
817
 
 
818
2005-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
 
819
 
 
820
        * main.c (main): Don't print the summary if nothing has been downloaded.
 
821
 
 
822
2005-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
 
823
 
 
824
        * retr.c (retr_rate): Rename parameter from MSECS to SECS since it
 
825
        no longer holds milliseconds.
 
826
 
 
827
2005-09-01  Hrvoje Niksic  <hniksic@xemacs.org>
 
828
 
 
829
        * progress.c: Introduce symbolic constants for "magic" values of
 
830
        0.2 and 0.9, REFRESH_INTERVAL and ETA_REFRESH_INTERVAL.
 
831
 
 
832
2005-08-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
833
 
 
834
        * cmpt.c (strtoll): Correctly handle strtoll("0x", ptr, 0) and
 
835
        strtoll("0x<nonhexchar>", ptr, 0) -- in both cases *ptr must be
 
836
        set to the position of 'x', not after it.
 
837
 
 
838
2005-08-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
839
 
 
840
        * hash.c (hash_table_map): Rename to hash_table_for_each and
 
841
        update callers.
 
842
        Document the meaning of the callback's return value.
 
843
        (hash_table_iterate): New function.
 
844
        (hash_table_iter_next): Likewise.
 
845
        Update most places that used hash_table_for_each to use the
 
846
        iteration, which doesn't require a temporary function with
 
847
        explicit state management.
 
848
 
 
849
2005-08-26  Albert Chin  <wget@mlists.thewrittenword.com>
 
850
 
 
851
        * Makefile.in: Use @datadir@.  Define localedir as $(datadir)/locale.
 
852
 
5
853
2005-08-26  Jeremy Shapiro  <jnshapiro@gmail.com>
6
854
 
7
855
        * openssl.c (ssl_init): Set SSL_MODE_AUTO_RETRY.
8
856
 
 
857
2005-08-23  Hrvoje Niksic  <hniksic@xemacs.org>
 
858
 
 
859
        * host.c (address_list_from_ipv4_addresses): Use IP_INADDR_DATA.
 
860
 
 
861
2005-08-12  Hrvoje Niksic  <hniksic@xemacs.org>
 
862
 
 
863
        * wget.h: Renamed strtoll_return to strtoll_type.
 
864
 
 
865
2005-08-11  Hrvoje Niksic  <hniksic@xemacs.org>
 
866
 
 
867
        * progress.c (eta_to_human_short): Switch to days when printing
 
868
        more than 48h rather than 100h.  (It's not immediately apparent
 
869
        how many days there are in 83h.)
 
870
 
9
871
2005-08-11  Hrvoje Niksic  <hniksic@xemacs.org>
10
872
 
11
873
        * cmpt.c (strtoll): Define it if missing on the system and if Wget
13
875
 
14
876
        * mswindows.c (str_to_int64): Move to cmpt.c and rename to strtoll.
15
877
 
 
878
2005-08-10  Hrvoje Niksic  <hniksic@xemacs.org>
 
879
 
 
880
        * host.c (print_address): Always use inet_ntop when IPv6 is
 
881
        enabled.
 
882
 
 
883
        * host.h (ip_address): Simplify the data union.
 
884
 
 
885
2005-08-09  Hrvoje Niksic  <hniksic@xemacs.org>
 
886
 
 
887
        * mswindows.c (inet_ntop): Also handle IPv4 addresses for
 
888
        completeness.
 
889
 
16
890
2005-08-09  Hrvoje Niksic  <hniksic@xemacs.org>
17
891
 
18
892
        * http.c (gethttp): Don't read more than the amount of data
28
902
        * ftp-ls.c (ftp_parse_unix_ls): Remember the position of the
29
903
        previous token instead of backtracking back to it.
30
904
 
 
905
2005-07-08  Gisle Vanem  <giva@bgnett.no>
 
906
 
 
907
        * mswindows.h: Include process.h to get getpid() declaration.
 
908
 
 
909
2005-07-08  Hrvoje Niksic  <hniksic@xemacs.org>
 
910
 
 
911
        * utils.c (aprintf): Use vasprintf where available.
 
912
 
 
913
2005-07-08  Hrvoje Niksic  <hniksic@xemacs.org>
 
914
 
 
915
        * url.c (rewrite_shorthand_url): Simplify code using aprintf and
 
916
        strspn.
 
917
 
 
918
2005-07-07  Hrvoje Niksic  <hniksic@xemacs.org>
 
919
 
 
920
        * gnutls.c (ssl_check_certificate): Check for the validity of the
 
921
        presented X509 certificate.
 
922
 
 
923
2005-07-07  Hrvoje Niksic  <hniksic@xemacs.org>
 
924
 
 
925
        * openssl.c (ssl_check_certificate): Print custom error messages
 
926
        for frequent X509 certificate problems.
 
927
 
 
928
2005-07-07  Hrvoje Niksic  <hniksic@xemacs.org>
 
929
 
 
930
        * mswindows.h: Define an alias for stat and fstat, as requested by
 
931
        config-compiler.h.
 
932
        (gai_strerror): Define to windows_strerror if NEED_GAI_STRERROR is
 
933
        defined.
 
934
 
 
935
2005-07-06  Hrvoje Niksic  <hniksic@xemacs.org>
 
936
 
 
937
        * mswindows.h: Use strtoll where available.
 
938
 
 
939
2005-07-06  Hrvoje Niksic  <hniksic@xemacs.org>
 
940
 
 
941
        * sysdep.h: Add a full declaration of fnmatch.h.
 
942
 
 
943
2005-07-06  Hrvoje Niksic  <hniksic@xemacs.org>
 
944
 
 
945
        * utils.c: Unconditionally include <setjmp.h>.
 
946
 
 
947
2005-07-06  Hrvoje Niksic  <hniksic@xemacs.org>
 
948
 
 
949
        * utils.c (fnmatch_nocase): New function.
 
950
        (proclist): Use it instead of fnmatch when opt.ignore_case is
 
951
        requested.
 
952
        (in_acclist): Respect opt.ignore_case.
 
953
        (frontcmp): Respect opt.ignore_case.
 
954
 
 
955
        * options.h (struct options): New flag opt.ignore_case.
 
956
 
 
957
2005-07-06  Hrvoje Niksic  <hniksic@xemacs.org>
 
958
 
 
959
        * ptimer.c: Measure time in seconds rather than milliseconds.
 
960
        Adjusted all callers.
 
961
 
31
962
2005-07-06  Hrvoje Niksic  <hniksic@xemacs.org>
32
963
 
33
964
        * http.c (gethttp): When freeing MESSAGE, take into account that
39
970
 
40
971
2005-07-05  Hrvoje Niksic  <hniksic@xemacs.org>
41
972
 
42
 
        * cmpt.c (timegm): New function, used where timegm is unavailable.
 
973
        * cmpt.c (timegm): Remove unused variable.
 
974
 
 
975
2005-07-05  Hrvoje Niksic  <hniksic@xemacs.org>
 
976
 
 
977
        * cmpt.c (timegm): Don't call mktime; simply count the seconds
 
978
        between 1970-01-01 and the specified date.
 
979
 
 
980
2005-07-05  Hrvoje Niksic  <hniksic@xemacs.org>
 
981
 
 
982
        * wget.h (or): Define HAVE_SSL when either HAVE_OPENSSL or
 
983
        HAVE_GNUTLS are defined.
 
984
 
 
985
        * gnutls.c: New file.
43
986
 
44
987
2005-07-05  Hrvoje Niksic  <hniksic@xemacs.org>
45
988
 
46
989
        * http.c (gethttp): Don't print the request write error message
47
990
        twice.
48
 
        (http_atotm): Use timegm instead of mktime_from_utc.
 
991
 
 
992
2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 
993
 
 
994
        * openssl.c (openssl_errstr): Instead of always using a large
 
995
        static buffer, only allocate the error string when there is an
 
996
        actual error.
49
997
 
50
998
2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
51
999
 
52
1000
        * xmalloc.c (debugging_free): Prefix hex pointer value with "0x"
53
1001
        when printing.
54
1002
 
 
1003
2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 
1004
 
 
1005
        * utils.c (NEXT_BASE64_CHAR): Rename to NEXT_CHAR and simplify to
 
1006
        get the next non-whitespace character.
 
1007
 
 
1008
2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 
1009
 
 
1010
        * utils.c (base64_decode): Don't silently tolerate non-base64
 
1011
        non-white-space characters in the base64 stream.
 
1012
 
 
1013
2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 
1014
 
 
1015
        * connect.c (LAZY_RETRIEVE_INFO): Make last_tick unsigned to match
 
1016
        transport_map_modified_tick.
 
1017
 
 
1018
2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 
1019
 
 
1020
        * config-post.h (alloca): Updated declaration to not enumerate all
 
1021
        Windows compilers.
 
1022
 
 
1023
2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 
1024
 
 
1025
        * openssl.c (openssl_errstr): Separate error messages with "; ".
 
1026
 
 
1027
2005-07-03  Hrvoje Niksic  <hniksic@xemacs.org>
 
1028
 
 
1029
        * ftp.c (getftp): Ditto.
 
1030
 
 
1031
        * http.c (gethttp): Use fd_errstr.
 
1032
 
 
1033
        * connect.c (fd_register_transport): Restructure parameters to
 
1034
        include only a single structure that describes transport
 
1035
        implementation.
 
1036
 
 
1037
        * openssl.c (openssl_errstr): New function: dump SSL error strings
 
1038
        into a static buffer and return a pointer to the buffer.
 
1039
 
 
1040
        * connect.c (fd_errstr): New function; returns transport-specific
 
1041
        error message, or strerror(errno) if transport doesn't supply one.
 
1042
 
55
1043
2005-07-03  Hrvoje Niksic  <hniksic@xemacs.org>
56
1044
 
57
1045
        * mswindows.h: Also wrap accept() and listen().
58
1046
 
 
1047
2005-07-03  Hrvoje Niksic  <hniksic@xemacs.org>
 
1048
 
 
1049
        * url.c (path_end): Skip separators appropriate for the scheme.
 
1050
        (strpbrk_or_eos): Remove gcc-specific version, as the optimization
 
1051
        it tried to perform no longer applies.
 
1052
 
59
1053
2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
60
1054
 
61
1055
        * host.c: Don't include "connect.h" now that we no longer have
62
1056
        socket_has_inet6.
63
1057
 
64
 
        * host.c: Remove extraneous include of netdb.h.
 
1058
2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
 
1059
 
 
1060
        * host.c: Remove extraneous definition of netdb.h.
65
1061
 
66
1062
2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
67
1063
 
68
1064
        * http.c (gethttp): Skip error message body in the keep-alive
69
1065
        case.
70
1066
 
 
1067
2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
 
1068
 
 
1069
        * url.c (url_parse): Would crash when parsing fragments.  Support
 
1070
        fragments for FTP URLs too.
 
1071
 
 
1072
2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
 
1073
 
 
1074
        * version.c: Don't use "cvs" in version name, since we're not
 
1075
        using CVS anymore.
 
1076
 
 
1077
2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
 
1078
 
 
1079
        * progress.c (create_image): Ditto.
 
1080
 
 
1081
        * retr.c (retr_rate): Display smaller rate numbers with greater
 
1082
        precision.
 
1083
 
 
1084
2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
 
1085
 
 
1086
        * http.c (response_head_terminator): Minor optimization.
 
1087
 
 
1088
        * retr.c (fd_read_hunk): Call terminator with pointer to the start
 
1089
        of the data and the pointer to the current data.  Changed all
 
1090
        callers.
 
1091
 
71
1092
2005-07-01  Hrvoje Niksic  <hniksic@xemacs.org>
72
1093
 
73
 
        * url.c (url_parse): Don't crash on []-delimited IPv6 addresses
74
 
        followed by garbage.
 
1094
        * url.c (url_parse): Make sure u->params is not initialized for
 
1095
        http/https URLs.
 
1096
        (url_parse): Don't crash on garbage following []-delimited IPv6
 
1097
        addresses.
75
1098
 
76
1099
2005-07-01  Hrvoje Niksic  <hniksic@xemacs.org>
77
1100
 
78
1101
        * main.c (print_help): Don't refer to the non-existent -nr in
79
1102
        description of --mirror.
80
1103
 
 
1104
2005-06-30  Hrvoje Niksic  <hniksic@xemacs.org>
 
1105
 
 
1106
        * host.c (pretty_print_address): Renamed to just print_address.
 
1107
        Clarify documentation.
 
1108
 
 
1109
2005-06-30  Hrvoje Niksic  <hniksic@xemacs.org>
 
1110
 
 
1111
        * http.c (gethttp): Explicitly document the different cases when
 
1112
        generating the Host header.
 
1113
 
 
1114
2005-06-30  Hrvoje Niksic  <hniksic@xemacs.org>
 
1115
 
 
1116
        * host.c (pretty_print_address): Handle error result from
 
1117
        inet_ntop.
 
1118
 
 
1119
2005-06-30  Gisle Vanem  <giva@bgnett.no>
 
1120
 
 
1121
        * mswindows.c (inet_ntop): New function.  Print IPv6 addresses
 
1122
        using WSAAddressToString.
 
1123
 
 
1124
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
1125
 
 
1126
        * progress.c (dot_update): Remove unused variable row_qty.
 
1127
 
 
1128
2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 
1129
 
 
1130
        * main.c: Check for both SIGHUP and SIGUSR1 before using them.
 
1131
 
 
1132
2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 
1133
 
 
1134
        * utils.c: Unconditionally include locale.h.
 
1135
 
 
1136
2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 
1137
 
 
1138
        * ptimer.c: Include sys/time.h to get struct timeval.
 
1139
 
 
1140
2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 
1141
 
 
1142
        * wget.h: Remove obsolete definition of with_thousand_seps_sum.
 
1143
 
 
1144
2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 
1145
 
 
1146
        * gnu-md5.h: Unconditionally include limits.h.
 
1147
 
 
1148
2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 
1149
 
 
1150
        * utils.c (random_number): Use lrand48 if available.
 
1151
        (random_float): Use drand48 if available.
 
1152
 
 
1153
2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 
1154
 
 
1155
        * main.c (secs_to_human_time): Use print_decimal when printing
 
1156
        total download time in seconds.
 
1157
 
 
1158
        * progress.c (print_row_stats): Use it to print total download
 
1159
        time at the end of the download.
 
1160
        (create_image): Ditto.
 
1161
 
 
1162
        * utils.c (print_decimal): New function; print small decimal
 
1163
        numbers with more precision than large ones.
 
1164
 
 
1165
        * progress.c (print_row_stats): New function.  Print ETA after the
 
1166
        download rate at the end of each row.
 
1167
 
81
1168
2005-06-28  Hrvoje Niksic  <hniksic@xemacs.org>
82
1169
 
83
1170
        * init.c (parse_line): Check for alphanumerics.
84
1171
 
85
1172
2005-06-28  Hrvoje Niksic  <hniksic@xemacs.org>
86
1173
 
 
1174
        * (dot_create): Remove unnecessary casts.
 
1175
 
 
1176
2005-06-28  Hrvoje Niksic  <hniksic@xemacs.org>
 
1177
 
87
1178
        * ftp.c (getftp): Delete trailing newlines from LIST output so
88
1179
        lines don't come out with trailing \015\012 with -S.
89
1180
 
90
1181
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
91
1182
 
 
1183
        * mswindows.h: Remove superfluous includes.
 
1184
 
 
1185
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
1186
 
 
1187
        * config-post.h (alloca): Amend alloca declaration to take care of
 
1188
        all Win32 compilers, not just MSVC and MinGW.
 
1189
 
 
1190
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
1191
 
 
1192
        * utils.c (get_grouping_data): Force separator to "." rather than
 
1193
        " " when "," is taken.
 
1194
 
 
1195
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
1196
 
 
1197
        * wget.h (PTR_FORMAT): Cast the result of sizeof to int before
 
1198
        passing it to printf's %*.
 
1199
 
 
1200
        * retr.h: Declare output_stream and output_stream_regular.
 
1201
 
 
1202
        * ftp.h: Declare ftp_last_respline.
 
1203
 
 
1204
        * convert.h: Declare dl_url_file_map.
 
1205
 
 
1206
        * http.h: New file.
 
1207
 
 
1208
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
1209
 
92
1210
        * cookies.c: Make cookies_now static.
93
1211
 
94
1212
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
98
1216
 
99
1217
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
100
1218
 
101
 
        (get_grouping_data): Restore LC_NUMERIC after querying thousand
102
 
        grouping info.
103
 
 
104
 
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
105
 
 
106
 
        * utils.c (get_grouping_data): Would omit separators in C locale.
 
1219
        * sysdep.h: Use the system-provided fnmatch by default.
 
1220
 
 
1221
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
1222
 
 
1223
        * http.c (mktime_from_utc): Renamed to timegm and moved to cmpt.c.
 
1224
        Don't compile it if GNU timegm is available.
 
1225
        (http_atotm): Use timegm.
 
1226
 
 
1227
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
1228
 
 
1229
        * http.c (http_atotm): Correctly query the old locale value.
 
1230
 
 
1231
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
1232
 
 
1233
        * config-post.h (alloca): Don't #define alloca under MinGW32,
 
1234
        which defines it in malloc.h, included from mswindows.h.
 
1235
 
 
1236
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
1237
 
 
1238
        * utils.c (get_grouping_data): Force the use of separators in C
 
1239
        locale.
 
1240
 
 
1241
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
1242
 
 
1243
        * main.c (i18n_initialize): Set all locale categories.
 
1244
 
 
1245
        * http.c (http_atotm): Temporarily set locale to "C".
107
1246
 
108
1247
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
109
1248
 
112
1251
 
113
1252
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
114
1253
 
115
 
        * utils.c (add_thousand_seps): Add thousand separators using the
116
 
        character and grouping rules appropriate for the locale, with the
117
 
        exception that "," and 3-digit groups are used in the locales that
118
 
        don't specify thousand separators.  (For compatibility with the
119
 
        output of Wget 1.10.)
120
 
        Based on with_thousand_seps from the trunk.
 
1254
        * progress.c (set_progress_implementation): Type COLON as const
 
1255
        char *.
121
1256
 
122
1257
2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
123
1258
 
124
 
        * Makefile.in: Don't remove .libs; adapt to the use of
125
 
        AC_LIB_HAVE_LINKFLAGS.
 
1259
        * utils.c (with_thousand_seps): Handle negative numbers.
 
1260
 
 
1261
2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 
1262
 
 
1263
        * progress.c (create_image): Mark the "eta" string for translation.
 
1264
 
 
1265
2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 
1266
 
 
1267
        * html-url.c (get_urls_file): Don't explicitly set entry->next to
 
1268
        NULL since entry is already zeroed out.
126
1269
 
127
1270
2005-06-26  Gisle Vanem  <giva@bgnett.no>
128
1271
 
129
1272
        * mswindows.h: Define gai_strerror under MinGW.
130
1273
 
131
 
2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
132
 
 
133
 
        * cookies.c (parse_set_cookies): Cast pointer subtraction to int
134
 
        before using it with %d; AIX compiler warns on this.
135
 
        Reported by Jens Schleusener.
136
 
 
137
 
2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
138
 
 
139
 
        * progress.c (create_image): Don't unnecessarily call
140
 
        with_thousand_seps twice.
 
1274
2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 
1275
 
 
1276
        * utils.c (with_thousand_seps): Correctly implement thousand seps
 
1277
        consisting of more than one character.
 
1278
 
 
1279
2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 
1280
 
 
1281
        * main.c (secs_to_human_time): Ditto.
 
1282
 
 
1283
        * progress.c (create_image): Print more exact duration of very
 
1284
        short downloads.
 
1285
 
 
1286
        * main.c (secs_to_human_time): Don't translate time suffixes "h",
 
1287
        "m", and "s", which are not strictly SI, but are "accepted for use
 
1288
        with SI".
 
1289
        (secs_to_human_time): Print really small intervals as 0s, not
 
1290
        0.00s.
 
1291
 
 
1292
2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 
1293
 
 
1294
        * config-post.h: Replace the alloca declaration with the one from
 
1295
        the latest Autoconf manual.  This should remove a warning with GCC
 
1296
        on AIX.
 
1297
 
 
1298
2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 
1299
 
 
1300
        * ftp.c (getftp): Always invoke SIZE, not only when continuing a
 
1301
        download.
 
1302
 
 
1303
        * main.c (main): Ditto here.
 
1304
 
 
1305
        * progress.c (create_image): When the download is finished, print
 
1306
        how long it took.
 
1307
 
 
1308
2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 
1309
 
 
1310
        * main.c (main): Print the downloaded and quota amounts with the
 
1311
        "human_readable" function.
 
1312
 
 
1313
        * ftp.c (print_length): Ditto.
 
1314
 
 
1315
        * http.c (gethttp): Don't display thousand separators.
 
1316
 
 
1317
        * utils.c (with_thousand_seps): Rewritten to respect locale
 
1318
        settings and to be type size agnostic.
 
1319
 
 
1320
2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
 
1321
 
 
1322
        * utils.c (human_readable): Divide with 1024 instead of shifting
 
1323
        so the operation can work with non-integer N.
 
1324
 
 
1325
2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
 
1326
 
 
1327
        * progress.c (eta_to_human): New logic for more human-readable
 
1328
        ETA.
141
1329
 
142
1330
2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
143
1331
 
170
1358
        * sysdeps.h (LARGE_INT): Renamed to SUM_SIZE_INT to better reflect
171
1359
        its intent, and moved to wget.h.
172
1360
 
 
1361
2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
 
1362
 
 
1363
        * Makefile.in: No need to clean .libs.
 
1364
 
 
1365
2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
 
1366
 
 
1367
        * cookies.c (parse_set_cookies): Cast pointer subtraction to int
 
1368
        before using it with %d; AIX compiler warns on this.
 
1369
        Reported by Jens Schleusener.
 
1370
 
173
1371
2005-06-24  Hrvoje Niksic  <hniksic@xemacs.org>
174
1372
 
175
1373
        * http.c (gethttp): Don't prepend / here.
177
1375
        * cookies.c (cookie_handle_set_cookie): Prepend / to PATH.
178
1376
        (cookie_header): Ditto.
179
1377
 
 
1378
2005-06-24  Hrvoje Niksic  <hniksic@xemacs.org>
 
1379
 
 
1380
        * init.c: opt.verbose must be declared as int.
 
1381
 
 
1382
2005-06-23  Hrvoje Niksic  <hniksic@xemacs.org>
 
1383
 
 
1384
        * cmpt.c (strpbrk): Removed.
 
1385
        (mktime): Removed.
 
1386
        Include <time.h>.
 
1387
 
180
1388
2005-06-23  Hrvoje Niksic  <hniksic@xemacs.org>
181
1389
 
182
1390
        * utils.c (read_file): Ditto.
186
1394
        * mswindows.h (struct_fstat): Define a struct_fstat to deal with
187
1395
        the fact that Borland 5.5 has 64-bit stat, but not 64-bit fstat!
188
1396
 
 
1397
2005-06-23  Hrvoje Niksic  <hniksic@xemacs.org>
 
1398
 
 
1399
        * sysdep.h: Remove code that deals with Watcom.
 
1400
 
 
1401
2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 
1402
 
 
1403
        * all: Use bool instead of int and false/true instead of 0/non-0
 
1404
        for boolean variables and values.
 
1405
 
 
1406
2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 
1407
 
 
1408
        * sysdep.h: Include the stdbool.h/_Bool/bool blurb from Autoconf.
 
1409
 
 
1410
2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 
1411
 
 
1412
        * init.c (cmd_lockable_boolean): Removed.
 
1413
 
 
1414
2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 
1415
 
 
1416
        * cookies.c (struct cookie): Use 1-bit bitfields for booleans
 
1417
        which makes the structure takes less space at no cost in
 
1418
        complexity.
 
1419
 
 
1420
2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 
1421
 
 
1422
        * Makefile.in ($(OBJ)): Add the config.h dependency.
 
1423
 
 
1424
2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 
1425
 
 
1426
        * openssl.c, connect.c, host.c: Replace instances of #ifdef
 
1427
        ENABLE_DEBUG if (opt.debug) {...} #endif with IF_DEBUG {...}.
 
1428
 
 
1429
        * main.c: Rename the IF_DEBUG defined here to WHEN_DEBUG.
 
1430
 
 
1431
        * wget.h (IF_DEBUG): New macro.
 
1432
        (DEBUGP): Define in terms of IF_DEBUG.
 
1433
 
189
1434
2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
190
1435
 
191
1436
        * http.c (gethttp): Only handle --set-cookies (and assert that
195
1440
 
196
1441
2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
197
1442
 
 
1443
        * connect.c (select_fd): Expect select() to exist.
 
1444
 
 
1445
        * utils.c (xsleep): Always use select() as sleep fallback on
 
1446
        non-Windows platforms.
 
1447
 
 
1448
        * ptimer.c: Delete the implementation of PTIMER_TIME.
 
1449
 
 
1450
        * main.c: Assume existence of signal(), test for different signal
 
1451
        names instead.
 
1452
 
 
1453
        * cmpt.c: Better document reasons why certain functions are
 
1454
        included.
 
1455
 
 
1456
2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 
1457
 
198
1458
        * Makefile.in: Remove the manually maintained dependency list;
199
1459
        make all object files depend on every header.
200
1460
 
 
1461
2005-06-20  Hrvoje Niksic  <hniksic@xemacs.org>
 
1462
 
 
1463
        * hash.c: Rename "mapping" to "cell" to avoid confusion with the
 
1464
        term "mapping" (or "map") sometimes being used for the entire hash
 
1465
        table.  Also rename "non-empty" to "occupied" for easier reading
 
1466
        of if (!NON_EMPTY (...)) ... .
 
1467
 
 
1468
2005-06-20  Hrvoje Niksic  <hniksic@xemacs.org>
 
1469
 
 
1470
        * main.c, ptimer.c, sysdep.h, utils.c: Use #elif to simplify reading of
 
1471
        chained if-else-else-else-... statements.
 
1472
 
 
1473
2005-06-20  Hrvoje Niksic  <hniksic@xemacs.org>
 
1474
 
 
1475
        * all: Return type of signal handlers is `void'.  Include signal.h
 
1476
        unconditionally.
 
1477
 
 
1478
        * all: Don't explicitly cast values returned by malloc.  We no
 
1479
        longer support ancient compilers that don't declare malloc, and we
 
1480
        never supported C++ builds.
 
1481
 
 
1482
2005-06-19  Hrvoje Niksic  <hniksic@xemacs.org>
 
1483
 
 
1484
        * all: Don't declare errno.  Include both time.h and sys/time.h,
 
1485
        as long as sys/time.h exists.  Don't dereference function pointers
 
1486
        when invoking the functions they point to.
 
1487
 
 
1488
        * cmpt.c (memmove): Remove function mandated by C89.
 
1489
        (strerror): Ditto.
 
1490
        (strstr): Ditto.
 
1491
 
 
1492
        * all: Undo the K&R-ization changes from 2005-05-03.
 
1493
 
 
1494
        * all: Remove support for K&R compilers: use C89 function
 
1495
        declarations, remove definition of PARAMS, remove support for
 
1496
        varargs, and remove ansi2knr.  Assume the presence of time.h,
 
1497
        string.h, and other headers mandated by C89.
 
1498
 
201
1499
2005-06-19  Hrvoje Niksic  <hniksic@xemacs.org>
202
1500
 
203
1501
        * init.c (cmd_lockable_boolean): Don't recognize literal "2" and