"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "wget-1.11.4/src/ChangeLog" of archive wget-1.11.4.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 2008-06-29  Micah Cowan  <micah@cowan.name>
    2 
    3 	* version.c: Bumped version to 1.11.4.
    4 
    5 2008-06-24  Micah Cowan  <micah@cowan.name>
    6 
    7 	* ftp-ls.c (ftp_index): Don't assume time_t* is compatible with
    8 	long*. Fixes crash on Windows, and probably other systems.
    9 
   10 2008-06-16  Micah Cowan  <micah@cowan.name>
   11 
   12 	* http.c (http_loop): When hstat.len is higher than the
   13 	successfully completed content's length, but it's because we
   14 	_set_ it that way, don't abort.
   15 
   16 2008-05-28  Micah Cowan  <micah@cowan.name>
   17 
   18 	* version.c: Bumped version to 1.11.3.
   19 
   20 2008-05-14  Joao Ferreira  <joao@joaoff.com>
   21 
   22 	* main.c, http.c, ftp.c: -nc is now working in conjunction with
   23 	'-O file'.
   24 
   25 2008-05-12  Micah Cowan  <micah@cowan.name>
   26 
   27 	* main.c (main): Downgrade "-N with -O" to a warning, and switch
   28 	it off to avoid confusing messages.
   29 
   30 2008-04-30  Micah Cowan  <micah@cowan.name>
   31 
   32 	* version.c: Bumped version to 1.11.2.
   33 
   34 	* progress.c (create_image): Fix glitch where too many spaces are
   35 	printed on lines that don't display the ETA, in multibyte
   36 	locales.
   37 
   38 2008-04-27  Rabin Vincent  <rabin@rab.in>
   39 
   40 	* ftp.c (ftp_retrieve_glob): Prevent attempted retrieval of an
   41 	empty filename when --recursive hits an empty directory.  Fixes
   42 	bug #22968. [Thanks also to Steven M. Schweda, who also
   43 	submitted this fix. -mjc]
   44 
   45 2008-04-27  Rabin Vincent  <rabin@rab.in>
   46 
   47 	* http.c (http_loop): Fix return for the case where we don't
   48 	download a file because of -nc.
   49 
   50 2008-04-27  Micah Cowan  <micah@cowan.name>
   51 
   52 	* url.c (path_simplify): Go back to allowing leading ".." in
   53 	paths, but only for FTP URLs.
   54 	(test_path_simplify): Add scheme-specificness to tests, adapt for
   55 	mu_run_test.
   56 
   57 	* test.c (all_tests): Add test_path_simplify.
   58 
   59 	* main.c (main): Downgrade -r, -p with -O to a warning rather than
   60 	an error; elaborate just a bit more for other -O combination
   61 	cases.
   62 
   63 2008-04-26  Micah Cowan  <micah@cowan.name>
   64 
   65 	* http.c (gethttp): Move proxy CONNECT handling to below the
   66 	retry_with_auth label, to deal with properly reconnecting to
   67 	proxies when we need to authenticate.
   68 	* version.c: Forgot to move version to a "-devel" one again.
   69 
   70 2008-04-11  Micah Cowan  <micah@cowan.name>
   71 
   72 	* ftp.c (getftp, ftp_loop_internal): Don't append to an existing
   73 	.listing when --continue is used.  Fixes bug #22825. Thanks to
   74 	Rabin Vincent <rabin@rab.in> for pointing the way with a
   75 	suggested fix!
   76 
   77 2008-03-19  Micah Cowan  <micah@cowan.name>
   78 
   79 	* utils.c (test_dir_matches_p): More tests related for
   80 	dir_matches_p.
   81 
   82 2008-03-17  Micah Cowan  <micah@cowan.name>
   83 
   84 	* connect.c: Include sys/time.h to support use of the select
   85 	function on older systems.
   86 
   87 2008-02-11  Benno Schulenberg  <bensberg@justemail.net>
   88 
   89 	* http.c: More accurate and descriptive messages for when a file
   90 	won't be retrieved during spider-mode.
   91 
   92 2008-02-10  Micah Cowan  <micah@cowan.name>
   93 
   94 	* http.c: Added existence_checked member to the http_stat
   95 	struct.
   96 	(gethttp): Mark hs->existence_checked when we've checked whether
   97 	a file-to-download exists; so we don't check it again if the
   98 	connection gets lost (and potentially pick a new "unique" name).
   99 	This fixes bug 22251.
  100 	* progress.c (create_image): Add space for an extra column in
  101 	the "eta" portion of the progress bar image; to deal with
  102 	too-long Czech translation.
  103 	* main.c, http.c, init.c: Added --auth-no-challenge option, to
  104 	bring back 1.10.2 unsafe auth behavior when needed. This fixes
  105 	bug #22242.
  106 
  107 2007-02-10  Hrvoje Niksic  <hniksic@xemacs.org>
  108 
  109 	* ftp.c (ftp_retrieve_glob): Print both arguments of fnmatch in
  110 	fnmatch error message.
  111 	(ftp_retrieve_glob): Don't match with fnmatch if we're only
  112 	supposed to get one file.
  113 
  114 2008-02-07  Micah Cowan  <micah@cowan.name>
  115 
  116 	* progress.c (create_image): Remove assertion on exceeding
  117 	screen width, which given the less-than-robust code there, can
  118 	be broken by a number of factors (such as large file downloads).
  119 
  120 2008-02-06  Micah Cowan  <micah@cowan.name>
  121 
  122 	* progress.c (countcols): Use strlen() when mbtowc or wcwidth
  123 	not available (or not using NLS).
  124 	* utils.c: Ensure we use single-byte separators when not doing
  125 	NLS progress-bars.
  126 	* wget.h: Determine whether to use NLS for progress-bars, based
  127 	on whether wcwidth and mbtowc are available.
  128 
  129 2008-02-03  Micah Cowan  <micah@cowan.name>
  130 
  131 	* progress.c (create_image): Use number of characters/columns
  132 	consumed, rather than number of bytes, to determine how much of
  133 	a line we've used. Fixes assertion errors and field alignment
  134 	bugs (#22161, #20481)
  135 	(get_eta, count_cols): Added to support the changes for
  136 	create_image.
  137 	* http.c (http_loop): Put no-clobber logic back into http_loop,
  138 	before starting to fetch, for when we're not doing
  139 	content-disposition.
  140 
  141 2008-01-31  Micah Cowan  <micah@cowan.name>
  142 
  143 	* http.c (gethttp): Don't derive hs->contlen from possibly
  144 	invalid/missing Content-Length; instead, get the appropriate
  145 	value from the Content-Range header values.
  146 	(parse_content_range): Handle '*' instance-length field.
  147 
  148 2008-01-30  Micah Cowan  <micah@cowan.name>
  149 
  150 	* version.c: Bumped version number to 1.11.1-devel.
  151 
  152 2008-01-25  Micah Cowan  <micah@cowan.name>
  153 
  154 	* Makefile.in, cmpt.c, connect.c, connect.h, convert.c,
  155 	cookies.c, cookies.h, ftp-basic.c, ftp-ls.c, ftp-opie.c, ftp.c,
  156 	ftp.h, gen-md5.c, gen-md5.h, gnu-md5.c, gnu-md5.h, gnutls.c,
  157 	hash.c, hash.h, host.c, host.h, html-parse.c, html-parse.h,
  158 	html-url.c, http-ntlm.c, http-ntlm.h, http.c, http.h, init.c,
  159 	init.h, log.c, log.h, main.c, mswindows.c, mswindows.h, netrc.c,
  160 	netrc.h, openssl.c, options.h, progress.c, progress.h, ptimer.c,
  161 	ptimer.h, recur.c, recur.h, res.c, res.h, retr.c, retr.h,
  162 	spider.c, spider.h, ssl.h, sysdep.h, test.c, test.h, url.c,
  163 	url.h, utils.c, utils.h, wget.h, xmalloc.c, xmalloc.h: Updated
  164 	copyright year.
  165 	* version.c: Bumped version number to 1.11.
  166 
  167 2007-12-10  Micah Cowan  <micah@cowan.name>
  168 
  169 	* main.c: The option is --content-disposition, not
  170 	--no-content-disposition (at the moment).
  171 
  172 2007-12-05  Micah Cowan  <micah@cowan.name>
  173 
  174 	* utils.c (subdir_p): Handle the case where d1 is "".
  175 	* convert.c (convert_all_links): Don't return without
  176 	deallocating timer.
  177 
  178 2007-11-28  Micah Cowan  <micah@cowan.name>
  179 
  180 	* Makefile.in, cmpt.c, connect.c, connect.h, convert.c,
  181 	convert.h, cookies.c, cookies.h, ftp-basic.c, ftp-ls.c,
  182 	ftp-opie.c, ftp.c, ftp.h, gen-md5.c, gen-md5.h, gnutls.c,
  183 	hash.c, hash.h, host.c, host.h, html-parse.c, html-parse.h,
  184 	html-url.c, http-ntlm.c, http-ntlm.h, http.c, http.h, init.c,
  185 	init.h, log.c, log.h, main.c, mswindows.c, mswindows.h,
  186 	netrc.c, netrc.h, openssl.c, options.h, progress.c, progress.h,
  187 	ptimer.c, ptimer.h, recur.c, recur.h, res.c, res.h, retr.c,
  188 	retr.h, safe-ctype.c, safe-ctype.h, spider.c, spider.h, ssl.h,
  189 	sysdep.h, test.c, test.h, url.c, url.h, utils.c, utils.h,
  190 	wget.h, xmalloc.c, xmalloc.h: Updated license exception for
  191 	OpenSSL, per the SFLC.
  192 
  193 2007-10-10  Micah Cowan  <micah@cowan.name>
  194 
  195 	* http-ntlm.c: Include openssl/opensslv.h explicitly, instead of
  196 	hoping it'll be included by accident in openssl/des.h.
  197 
  198 2007-10-09  Gisle Vanem  <gvanem@broadpark.no>
  199 
  200 	* mswindows.c: 'argc' and 'argv' in 'windows_main()' are no longer
  201 	needed.  Hence simply the prototype. Free 'exec_name' at exit.
  202 
  203 2007-10-08  Micah Cowan  <micah@cowan.name>
  204 
  205 	* http.c (http_loop): Add send_head_first conditional back
  206 	around code that needs it, but not around the last-modified
  207 	header-parsing stuff this time. Removed no-longer-useful (was it
  208 	ever?) restart_loop boolean, continuing unconditionally at end
  209 	of send_head_first conditional block (if we haven't jumped out).
  210 
  211 2007-10-04  Micah Cowan  <micah@cowan.name>
  212 
  213 	* http.c (http_loop): We've got_name if content_disposition
  214 	support isn't on; make sure we continue properly in that case,
  215 	even though we're not sending HEAD.
  216 
  217 2007-10-02  Gisle Vanem  <gvanem@broadpark.no>
  218 	
  219 	* ftp.c: Use "_listing" for MSDOS (".listing" is illegal).
  220 
  221 	* url.c: Update comment for 'filechr_not_windows'.
  222 
  223 	* utils.c: Include <process.h> for 'getpid()' on Watcom.
  224 
  225 2007-10-02  Micah Cowan  <micah@cowan.name>
  226 
  227 	* ftp.c (getftp, ftp_loop_internal), http.c (http_loop), main
  228 	(main): Use datetime_str instead of time_str, for those who have
  229 	potentially long-running sessions. Based on suggestions by Saso
  230 	Tomat <miskox@hotmail.com> and Steven M. Schweda
  231 	<sms@antinode.org>.
  232 	* http.c (gethttp): Warn about host lookup failures. Adjusted
  233 	from Stephen Gildea's patch.
  234 
  235 2007-10-02  Stephen Gildea  <stepheng+wget@gildea.com>
  236 
  237 	* connect.c (connect_to_host): Warn about host lookup failures.
  238 
  239 2007-09-25  Micah Cowan  <micah@cowan.name>
  240 
  241 	* Makefile.in: Use EXEEXT instead of exeext.
  242 
  243 2007-09-24  Gisle Vanem  <giva@bgnett.no>
  244 
  245 	* connect.c, init.c, main.c, openssl.c, options.h, sysdep.h,
  246 	url.c, utils.c: Added support for building on MS-DOS.
  247 
  248 2007-09-24  Jochen Roderburg  <roderburg@uni-koeln.de>
  249 
  250 	* http.c (http_zero): Remove no-longer-used local_size variable.
  251 	Fixes bug #21057.
  252 
  253 2007-09-12  Micah Cowan  <micah@cowan.name>
  254 
  255 	* http.c (http_loop): Remove send_head_first from condition for
  256 	parsing timestamp.
  257 
  258 2007-08-29  Micah Cowan  <micah@cowan.name>
  259 
  260 	* openssl.c (ssl_init): Re un-const-ified the meth local
  261 	variable, to match current versions of openssl.
  262 	* spider.c: Removed visited_url function, as it may be very
  263 	inefficient.
  264 	(print_broken_links): Removed traversal of referrers, until such
  265 	time as a more efficient implementation can be written.
  266 	* spider.h: Replaced declaration of visited_url with an
  267 	empty-bodied, function-like macro.
  268 
  269 2007-08-27  Gisle Vanem	 <giva@bgnett.no>
  270 
  271 	* mswindows.c (run_with_timeout): Ensure that the correct
  272 	conversion specification is used for the return result of
  273 	the GetLastError function.
  274 	* getopt.c: Fix missing (but, accidentally, legal) comment
  275 	delimiter after licensing text.
  276 	* recur.c (retrieve_tree): Inserted missing cast for strip_auth.
  277 	Includes adjustment by Ralf Wildenhues.
  278 	* openssl.c (ssl_init): const-ified the meth local variable.
  279 	* main.c: Include all the static function definitions in the
  280 	"#ifndef TESTING" clause, leaving just the definitions for
  281 	exec_name (not set), and opt.
  282 	* utils.c (run_with_timeout): Now returns bool, to align with
  283 	declaration in utils.h.
  284 
  285 2007-08-27  Micah Cowan  <micah@cowan.name>
  286 
  287 	* wget.h: Added macro replacement for ngettext, for environs
  288 	that lack NLS.
  289 
  290 2007-08-26  Micah Cowan  <micah@cowan.name>
  291 
  292 	* spider.c (print_broken_links): Fixed incorrect plurals msgid
  293 	usage, switched to use ngettext function.
  294 
  295 2007-08-24  Micah Cowan  <micah@cowan.name>
  296 
  297 	* http.c (http_loop): Introduced time_came_from_head boolean
  298 	flag, to help avoid parsing the same Last-Modified header twice.
  299 	Replaced spidering returns of RETRUNNEEDED for some situations,
  300 	to RETROK, as otherwise it will be interpreted as an error.
  301 	RETRUNNEEDED appears never to be referenced outside of
  302 	http.c (and wget.h), and, when returned by gethttp, is
  303 	translated by http_loop to RETROK.
  304 	* url.c (are_urls_equal): Don't call getchar_from_escaped_string
  305 	if u2 is shorter than u1.
  306 	(getchar_from_escaped_string): Don't decode reserved characters.
  307 	Handle illegally appearing '%'s as literal '%'s. Ensure hex
  308 	digits before attempting to decode.
  309 	(test_are_urls_equal): Added tests to handle u2 shorter than u1,
  310 	and %2f not treated the same as /.
  311 	* spider.c (in_url_list_p): Don't call are_urls_equal if one of
  312 	them is NULL.
  313 
  314 2007-08-23  Joshua David Williams  <yurimxpxman@gmail.com>
  315 
  316 	* spider.c (in_url_list_p): Removed the bool verbose argument
  317 
  318 2007-08-22  Mauro Tortonesi  <mauro@ferrara.linux.it>
  319 
  320 	* http.c (http_loop): Fall back to GET if HEAD fails with a 500 or 501
  321 	error code.
  322 
  323 2007-08-21  Mauro Tortonesi  <mauro@ferrara.linux.it>
  324 	
  325 	* http.c (http_loop): Send preliminary HEAD request if -N is given and
  326 	the destination file exists already.
  327 
  328 2007-08-10  Mauro Tortonesi  <mauro@ferrara.linux.it>
  329 
  330 	* http.c (http_loop): Fixed HTTP HEAD requests logic when --spider is
  331 	given.
  332 
  333 2007-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
  334 
  335 	* url.c (append_uri_pathel): Do not assume dest string to be
  336 	zero-terminated.
  337 	(test_append_uri_pathel): Terminate string to fix test failure.
  338 
  339 2007-08-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
  340 
  341 	* url.c (url_string): Use comparison, not assignment, in
  342 	check for auth_mode == URL_AUTH_HIDE_PASSWD.
  343 
  344 2007-08-09  Micah Cowan  <micah@cowan.name>
  345 
  346 	* http.c (http_loop): If we got a HEAD and then a GET, and the
  347 	GET had a timestamp, use that one, not any we may have gotten
  348 	from the HEAD.
  349 
  350 2007-08-08  Micah Cowan  <micah@cowan.name>
  351 
  352 	* init.c (defaults): Content disposition will not be default,
  353 	since it currently results in extra round-trips.
  354 
  355 2007-07-31  Micah Cowan  <micah@cowan.name>
  356 
  357 	* http.c (gethttp): Set contlen = -1 when we encounter a
  358 	negative-valued Content-Length header, so we don't consider it
  359 	an internal error later on and call abort().
  360 
  361 2007-07-29  Micah Cowan  <micah@cowan.name>
  362 
  363 	* url.h, url.c (url_string): Replaced bool arg of the url_string
  364 	function with enum url_auth_mode, with added option to
  365 	completely remove user/pass auth information.
  366 	* http.c, ftp.c, url.c, recur.c: Adapted call to url_string
  367 	function to fit new usage.
  368 	* recur.c (retrieve_tree): Remove auth info from Referer header.
  369 
  370 2007-07-28  Micah Cowan  <micah@cowan.name>
  371 
  372 	* options.h, init.c, retr.c, main.c: renamed opt maxredirect
  373 	field to max_redirect, for improved consistency.
  374 	* init.c: changed max_redirect parser from cmd_number_inf to
  375 	cmd_number, as infinite redirects may not be appropriate.
  376 	Alternatively, if cmd_number_inf should be used, then
  377 	opt.max_redirect's value should be checked a bit differently in
  378 	retr.c, to allow for the "infinite" meaning of zero.
  379 
  380 2007-07-25  Micah Cowan  <micah@cowan.name>
  381 
  382 	* http.c (create_authorization_line)
  383 	(basic_authentication_encode, known_authentication_scheme_p)
  384 	(load_cookies): Moved declarations up.
  385 	(basic_authed_hosts): Added. Tracks what hosts have issued Basic
  386 	challenge and been given the global username, password.
  387 	(maybe_send_basic_creds): Added. Sends Basic creds for hosts that
  388 	have issued Basic challenges.
  389 	(register_basic_auth_host): Added. Instantiates
  390 	basic_authed_hosts if necessary, then registers the host that
  391 	has issued a challenge.
  392 	(gethttp) <auth>: Only send authentication credentials after
  393 	we've received a challenge from that host. This is a stop-gap
  394 	fix until a proper fix can be implemented; still isn't quite
  395 	right, as we should only be sending credentials automatically
  396 	for authenticated paths and below, and not for the entire host.
  397 
  398 2007-07-16  Joshua David Williams  <yurimxpxman@gmail.com>
  399 
  400 	* options.h: added maxredirect to options struct
  401 	* init.c: added maxredirect to list of variables
  402 	* retr.c (retrieve_url): replaced MAX_REDIRECTIONS with opt.maxredirect
  403 	* main.c: added option --max-redirect
  404 
  405 2007-07-16  Joshua David Williams  <yurimxpxman@gmail.com>
  406 
  407 	* test.h: tests made more verbose; now displays the name
  408 	of each test run.
  409 
  410 2007-07-10  Mauro Tortonesi  <mauro@ferrara.linux.it>
  411 
  412 	* http.c (http_loop): Fixed the HTTP requests logic. Now it skips the 
  413 	preliminary HEAD request if either -O or --no-content-disposition are 
  414 	given, and neither --spider and -N are given.
  415 
  416 2007-07-05  Micah Cowan  <micah@cowan.name>
  417 
  418 	* cmpt.c, connect.c, connect.h, convert.c, convert.h:
  419 	* cookies.c, cookies.h, ftp-basic.c, ftp.c, ftp.h, ftp-ls.c:
  420 	* ftp-opie.c, gen-md5.c, gen-md5.h, getopt.c, getopt.h, gnu-md5.c:
  421 	* gnu-md5.h, gnutls.c, hash.c, hash.h, host.c, host.h:
  422 	* html-parse.c, html-parse.h, html-url.c, http.c, http.h:
  423 	* http-ntlm.c, http-ntlm.h, init.c, init.h, log.c, log.h, main.c:
  424 	* Makefile.in, mswindows.c, mswindows.h, netrc.c, netrc.h:
  425 	* openssl.c, options.h, progress.c, progress.h, ptimer.c:
  426 	* ptimer.h, recur.c, recur.h, res.c, res.h, retr.c, retr.h:
  427 	* safe-ctype.c, safe-ctype.h, spider.c, spider.h, ssl.h, sysdep.h:
  428 	* test.c, test.h, url.c, url.h, utils.c, utils.h, wget.h:
  429 	* xmalloc.c, xmalloc.h:
  430 	Updated GPL reference to version 3 or later, removed FSF
  431 	address.
  432 
  433 2007-07-04  Mauro Tortonesi  <mauro@ferrara.linux.it>
  434 
  435 	* http.c (http_loop): Skip HEAD request and start immediately with GET
  436 	if -O is given.
  437 
  438 2007-02-02  Hrvoje Niksic  <hniksic@xemacs.org>
  439 
  440 	* http.c (print_server_response): Escape non-printable characters
  441 	in server respone.
  442 
  443 2007-02-02  Hrvoje Niksic  <hniksic@xemacs.org>
  444 
  445 	* netrc.c: Don't make netrc_list static, as it prevents
  446 	compilation with DEBUG_MALLOC.
  447 
  448 	* utils.c (aprintf): Don't use vasprintf when DEBUG_MALLOC is
  449 	requested because, in that case, we want the calls to malloc to be
  450 	coming from us.
  451 
  452 2007-01-23  Hrvoje Niksic  <hniksic@xemacs.org>
  453 
  454 	* cookies.c (parse_set_cookie): Would erroneously discard cookies
  455 	with unparsable expiry time.
  456 
  457 2007-01-23  Hrvoje Niksic  <hniksic@xemacs.org>
  458 
  459 	* progress.c (create_image): Check for ETA overflow.
  460 	(print_row_stats): Ditto.
  461 
  462 2007-01-09  Mauro Tortonesi  <mauro@ferrara.linux.it>
  463 
  464 	* init.c (cmd_spec_prefer_family): Small fix to get rid of a gcc
  465 	warning about strict-aliasing violation.
  466 
  467 2007-01-09  Steven M. Schweda  <sms@antinode.org>
  468 
  469 	* ftp-basic.c (ftp_syst): Fixed segfault if response text is missing.
  470 
  471 2006-12-29  Gisle Vanem  <giva@bgnett.no>
  472 
  473 	* mswindows.c: Avoid a warning if 'ws_hangup()' is unused.
  474 
  475 2006-12-27  Mauro Tortonesi  <mauro@ferrara.linux.it>
  476 
  477 	* http.c (parse_content_disposition): Consider directory prefix, if
  478 	specified.
  479 
  480 2006-11-21  Hrvoje Niksic  <hniksic@xemacs.org>
  481 
  482 	* retr.c (retrieve_from_file): Ditto.
  483 	(url_uses_proxy): New function.
  484 
  485 	* main.c (main): Don't check for opt.use_proxy when deciding
  486 	whether to call retrieve_url or retrieve_tree; check whether the
  487 	proxy would be used for *this* URL.
  488 
  489 2006-10-17  Mike Grant  <mggr@pml.ac.uk>
  490 
  491 	* ftp.c (ftp_loop_internal): Would incorrectly skip changing
  492 	working directory when retrying after a failed FTP attempt.
  493 	Originally reported by Nate Eldredge.
  494 
  495 2006-10-12  Mauro Tortonesi  <mauro@ferrara.linux.it>
  496 
  497 	* convert.c (downloaded_file): Fixed bug which used to break -E -k -K 
  498 	mode.
  499 
  500 2006-08-28  Mauro Tortonesi  <mauro@ferrara.linux.it>
  501 
  502 	* http.c: #include'd spider.h to get rid of compiler warnings.
  503 
  504 	* main.c: Ditto.
  505 
  506 	* recur.c: Ditto.
  507 
  508 2006-08-24  Mauro Tortonesi  <mauro@ferrara.linux.it>
  509 
  510 	* Makefile.in: Added spider.c to the list of files to compile and
  511 	spider.h to the list of header files. Updated copyright information.
  512 
  513 	* http.c: Major changes to recursive spider mode. Now for every
  514 	resource we are supposed to check, we send a HEAD request to find out
  515 	if it exists. If the resource is a HTML file, we retrieve it and parse
  516 	it to discover links to other resources.
  517 
  518 	* recur.c: Ditto.
  519 
  520 	* res.c (res_retrieve_file): Disable opt.timestamping and opt.spider
  521 	when retrieving robots.txt. Updated copyright information.
  522 
  523 	* convert.c: Moved code tracking broken links to spider.c.
  524 
  525 	* convert.h: Ditto.
  526 
  527 	* spider.c: Created new file to keep track of visited URLs in spider
  528 	mode.
  529 
  530 	* spider.h: Ditto.
  531 
  532 2006-08-21  Mauro Tortonesi  <mauro@ferrara.linux.it>
  533 
  534 	* http.c: Fixed timestamping-related bug.
  535 
  536 2006-08-16  Mauro Tortonesi  <mauro@ferrara.linux.it>
  537 
  538 	* http.c: Fixed bug which broke --continue feature. Now if -c is
  539 	given, http_loop sends a HEAD request to find out the destination
  540 	filename before resuming download.
  541 
  542 2006-08-08  Hrvoje Niksic  <hniksic@xemacs.org>
  543 
  544 	* utils.c (datetime_str): Avoid code repetition with time_str.
  545 
  546 2006-07-21  Hrvoje Niksic  <hniksic@xemacs.org>
  547 
  548 	* init.c (commands): Correctly place "contentdisposition".
  549 
  550 2006-07-14  Mauro Tortonesi  <mauro@ferrara.linux.it>
  551 	
  552 	* sysdep.h: If intptr_t isn't defined, simply typedef it to long.
  553 
  554 	* http.c: Added explicit cast to int in logprintf call to remove
  555 	compiler warnings on 64-bit platforms.
  556 
  557 	* connect.c: Added a few casts to intptr_t to remove compiler warnings
  558 	on 64-bit platforms.
  559 	
  560 	* main.c: Disable -r, -p and -N when -O is used. Disable -k when -O is
  561 	used and multiple URLs are given. Update maintainer information.
  562 	
  563 	* all: Update copyright information.
  564 	
  565 2006-07-10  KJKHyperion  <hackbunny@reactos.com>
  566 
  567 	* url.c (filechr_table): Mark DEL (0x7f) as a control character
  568 	and | as a character Windows can't handle.
  569 
  570 2006-06-28  Mauro Tortonesi  <mauro@ferrara.linux.it>
  571 
  572 	* res.c: Implemented is_robots_txt_url function for detection of
  573 	robots.txt URLs and related test routine.
  574 
  575 	* res.h: Ditto.
  576 
  577 	* url.c: Implemented are_urls_equal function for URL comparison and
  578 	related testing routine.
  579 
  580 	* url.h: Ditto.
  581 
  582 	* convert.c: Fixes for recursive spider mode: don't consider
  583 	non-existing robots.txt as a broken link, and use are_urls_equal
  584 	instead of strcasecmp for referrer URLs comparison.
  585 
  586 	* test.c: Call tests routines for are_urls_equal and 
  587 	is_robots_txt_url.
  588 
  589 2006-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
  590 
  591 	* wget.h (wgint): Typedef to any 64-bit (or larger) type we can
  592 	find, not necessarily off_t or long.
  593 
  594 2006-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
  595 
  596 	* cmpt.c (strtoll): Check for overflow and underflow without
  597 	relying on (technically) undefined behavior.  Don't assume that
  598 	strtoll_type is 64 bits wide.
  599 
  600 2006-06-21  Hrvoje Niksic  <hniksic@xemacs.org>
  601 
  602 	* utils.c (base64_encode): Cast void pointer to char * before
  603 	doing arithmetic.
  604 
  605 2006-06-20  Hrvoje Niksic  <hniksic@xemacs.org>
  606 
  607 	* utils.c (base64_encode): Made TBL const.
  608 	(base64_decode): Made the base64_char_to_value table const.
  609 
  610 2006-06-19  Hrvoje Niksic  <hniksic@xemacs.org>
  611 
  612 	* utils.c (base64_encode): Made the DATA pointer void * so the
  613 	callers can pass it any kind of pointer (including both signed and
  614 	unsigned char pointers).
  615 	(base64_decode): Ditto for DEST.
  616 
  617 2006-06-19  Hrvoje Niksic  <hniksic@xemacs.org>
  618 
  619 	* utils.c (base64_encode): Would read past end of STR.
  620 	Reported by rick@eckle.org.
  621 
  622 2006-06-13  Mauro Tortonesi  <mauro@ferrara.linux.it>
  623 
  624 	* options.h (struct options): Introduced member restrict_files_case to
  625 	keep track of preferences on character case restrictions for
  626 	filenames.
  627 
  628 	* init.c: Modified defaults and cmd_spec_restrict_file_names to
  629 	support character case restrictions for filenames. Added
  630 	test_cmd_spec_restrict_file_names unit test.
  631 
  632 	* url.c: Modified append_uri_pathel to support character case
  633 	restrictions for filenames. Added test_append_uri_pathel unit test.
  634 
  635 	* test.c: Added test_cmd_spec_restrict_file_names and
  636 	test_append_uri_pathel to the list of unit tests to run.
  637 
  638 2006-06-12  Mauro Tortonesi  <mauro@ferrara.linux.it>
  639 
  640 	* retr.c (retrieve_from_file): Use retrieve_tree and automatically
  641 	turn on opt.follow_ftp in case of recursive FTP retrieval through HTTP
  642 	proxy.
  643 
  644 	* main.c: Automatically turn on opt.follow_ftp in case of recursive
  645 	FTP retrieval through HTTP proxy.
  646 
  647 2006-06-12  Tony Lewis  <tlewis@exelana.com>
  648 
  649 	* main.c: Improved CHEN Peng's patch by proposing a simpler logic.
  650 
  651 2006-06-12  CHEN Peng  <chenpeng@alumni.nus.edu.sg>
  652 
  653 	* main.c: Use retrieve_tree in case of recursive FTP retrieval through
  654 	HTTP proxy.
  655 
  656 2006-05-25  Mauro Tortonesi  <mauro@ferrara.linux.it>
  657 
  658 	* convert.c: Added mechanisms to keep track broken links.
  659 
  660 	* convert.h: Ditto.
  661 
  662 	* wget.h: Reordered and enumerated uerr_t constants.
  663 
  664 	* recur.c: Fixes to support recursive spider mode.
  665 
  666 	* http.c: Ditto.
  667 
  668 	* main.c: Print broken links in case of recursive spider mode.
  669 
  670 	* retr.c: Changed interface of retrieve_url.
  671 
  672 	* retr.h: Ditto.
  673 
  674 	* ftp.c: Changed interface of ftp_loop.
  675 
  676 	* ftp.h: Ditto.
  677 
  678 	* res.c: Minor change to reflect changes in interface of retrieve_url.
  679 
  680 2006-05-18  Lawrence Jones  <lawrence.jones@ugs.com>
  681 
  682 	* ftp-ls.c (ftp_parse_unix_ls): Correct size parsing, add size
  683 	and filename debugging output.
  684 
  685 2006-04-28  Mauro Tortonesi  <mauro@ferrara.linux.it>
  686 
  687 	* http.c: If Content-Disposition header is present, allow unique
  688 	filename generation unless -nc is given. Permit to disable parsing of
  689 	Content-Disposition header.
  690 
  691 	* options.h: Added option --no-content-disposition to disable parsing
  692 	of HTTP Content-Disposition header.
  693 
  694 	* init.c: Ditto.
  695 	
  696 	* main.c: Ditto.
  697 
  698 2006-04-11  Hrvoje Niksic  <hniksic@xemacs.org>
  699 
  700 	* hash.c (TOLOWER): Wrap macro arg in parentheses.
  701 
  702 2006-04-08  Hrvoje Niksic  <hniksic@xemacs.org>
  703 
  704 	* http.c (parse_content_disposition): Doc fix.
  705 
  706 2006-03-15  Mauro Tortonesi  <mauro@ferrara.linux.it>
  707 
  708 	* utils.c: Restricted operational semantics of frontcmp and proclist
  709 	from generic strings to directory names and them to subdir_p and
  710 	dir_matches_p respectively.  Applied George Ogata's one line patch to
  711 	restrict algorithm of subdir_p to full directory name matching.  Added
  712 	testcases for subdir_p and dir_matches_p.
  713 
  714 	* utils.h: Changed all frontcmp occurrences to subdir_p.
  715 	
  716 	* recur.c: Ditto.
  717 	
  718 	* test.c: Changed type returned by test functions from char * to const
  719 	char *.  Added test_subdir_p and test_dir_matches_p to the list of
  720 	tests to run.
  721 
  722 	* http.c (test_parse_content_disposition): Changed return type from
  723 	char * to const char *. 
  724 
  725 2006-03-14  Mauro Tortonesi  <mauro@ferrara.linux.it>
  726 
  727 	* recur.c (struct queue_element): Changed type of html_allowed member
  728 	to bool.
  729 	
  730 2006-03-09  Mauro Tortonesi  <mauro@ferrara.linux.it>
  731 
  732 	* ftp.c (ftp_list): Try `LIST -a' command first and revert to `LIST'
  733 	in case of failure.
  734 
  735 2006-03-06  Hrvoje Niksic  <hniksic@xemacs.org>
  736 
  737 	* hash.c (TOLOWER): Fix definition when STANDALONE.
  738 	Reported by Beni Serfaty.
  739 
  740 2006-03-02  Mauro Tortonesi  <mauro@ferrara.linux.it>
  741 
  742 	* http.c (http_loop): Fixed recursive HTTP retrieval.
  743 
  744 2006-02-28  Hrvoje Niksic  <hniksic@xemacs.org>
  745 
  746 	* http.c (extract_param): Declare extern so it can be used from
  747 	other files.
  748 	(extract_param): Return error for empty name.
  749 
  750 2006-02-28  Hrvoje Niksic  <hniksic@xemacs.org>
  751 
  752 	* url.c (find_last_char): Define in terms of memrchr.
  753 
  754 	* cmpt.c (memrchr): Define it on systems that don't have it.
  755 
  756 	* http.c (extract_param): New function for parsing header values
  757 	with parameters.
  758 	(parse_content_disposition): Use it.  Don't allow slashes and
  759 	backslashes in the file name.
  760 
  761 2006-02-27  Hrvoje Niksic  <hniksic@xemacs.org>
  762 
  763 	* url.c (path_simplify): Don't preserve ".." at beginning of path.
  764 	Suggested by Frank McCown.
  765 
  766 2006-02-25  Hrvoje Niksic  <hniksic@xemacs.org>
  767 
  768 	* http.c (gethttp): Only use FILE.N.html if FILE.html exists.
  769 
  770 2006-02-09  Hrvoje Niksic  <hniksic@xemacs.org>
  771 
  772 	* mswindows.c (run_with_timeout): Made thread_hnd non-static.
  773 
  774 2006-02-05  Hrvoje Niksic  <hniksic@xemacs.org>
  775 
  776 	* retr.c (sleep_between_retrievals): Sleep at a minimum of 1/2 of
  777 	the specified wait period.
  778 
  779 2006-02-03  Hrvoje Niksic  <hniksic@xemacs.org>
  780 
  781 	* utils.c (number_to_string): Don't use sprintf for printing
  782 	WGINT_MIN; simply divide n by 10 and defer printing the last
  783 	digit.
  784 	(number_to_string): Removed the SPRINTF_WGINT macro.
  785 
  786 2006-02-03  Mauro Tortonesi  <mauro@ferrara.linux.it>
  787 
  788 	* http.c: Fixed support for Content-Disposition header.
  789 
  790 	* test.c: Added test_parse_content_disposition to the list of unit
  791 	tests to run.
  792 
  793 2006-02-02  Hrvoje Niksic  <hniksic@xemacs.org>
  794 
  795 	* hash.c: Don't define countof if it's already defined.
  796 
  797 	* hash.c: Obtain the definition of uintptr_t when standalone.
  798 
  799 2006-01-30  Mauro Tortonesi  <mauro@ferrara.linux.it>
  800 
  801 	* http.c: Changed output format. Removed excessively verbose debugging
  802 	output.
  803 
  804 2005-12-07  Mauro Tortonesi  <mauro@ferrara.linux.it>
  805 
  806 	* http.c: Fixed pre-download verbose output which was broken by 
  807 	HTTP code refactoring.
  808 
  809 2005-11-23  Mauro Tortonesi  <mauro@ferrara.linux.it>
  810 
  811 	* http.c: Refactored HTTP code.  If -O is not used, the new code
  812 	delays the choice of the file name where the downloaded resource
  813 	will be saved until the HTTP headers have been retrieved.
  814 	Added support for Content-Disposition header. 
  815 
  816 2005-11-19  Hrvoje Niksic  <hniksic@xemacs.org>
  817 
  818 	* hash.c (INVALID_PTR): Use uintptr_t instead of unsigned long.
  819 	(hash_pointer): Don't assume a pointer fits in `unsigned long'.
  820 
  821 2005-11-02  Mauro Tortonesi  <mauro@ferrara.linux.it>
  822 
  823 	* Makefile.in: Removed support for unit testing (now it is in
  824 	tests/Makefile.in).
  825 
  826 2005-10-27  Mauro Tortonesi  <mauro@ferrara.linux.it>
  827 
  828 	* Makefile.in: Added basic support for unit testing.
  829 
  830 	* test.c: Ditto.
  831 	
  832 	* test.h: Ditto.
  833 	
  834 2005-10-13  Daniel Stenberg  <daniel@haxx.se>
  835 
  836 	* http-ntlm.c (ntlm_output): Fixed buffer overflow vulnerability.
  837 
  838 2005-10-09  Russ Allbery  <rra@stanford.edu>
  839 
  840 	* snprintf.c: Remove round to round_int and pow10 to pow10_int, to
  841 	avoid warnings from GCC 4.0.
  842 
  843 2005-10-05  Mauro Tortonesi  <mauro@ferrara.linux.it>
  844 
  845 	* retr.c: Changed semantics of no_proxy_match.
  846 
  847 2005-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
  848 
  849 	* main.c (main): Don't print the summary if nothing has been downloaded.
  850 
  851 2005-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
  852 
  853 	* retr.c (retr_rate): Rename parameter from MSECS to SECS since it
  854 	no longer holds milliseconds.
  855 
  856 2005-09-01  Hrvoje Niksic  <hniksic@xemacs.org>
  857 
  858 	* progress.c: Introduce symbolic constants for "magic" values of
  859 	0.2 and 0.9, REFRESH_INTERVAL and ETA_REFRESH_INTERVAL.
  860 
  861 2005-08-27  Hrvoje Niksic  <hniksic@xemacs.org>
  862 
  863 	* cmpt.c (strtoll): Correctly handle strtoll("0x", ptr, 0) and
  864 	strtoll("0x<nonhexchar>", ptr, 0) -- in both cases *ptr must be
  865 	set to the position of 'x', not after it.
  866 
  867 2005-08-27  Hrvoje Niksic  <hniksic@xemacs.org>
  868 
  869 	* hash.c (hash_table_map): Rename to hash_table_for_each and
  870 	update callers.
  871 	Document the meaning of the callback's return value.
  872 	(hash_table_iterate): New function.
  873 	(hash_table_iter_next): Likewise.
  874 	Update most places that used hash_table_for_each to use the
  875 	iteration, which doesn't require a temporary function with
  876 	explicit state management.
  877 
  878 2005-08-26  Albert Chin  <wget@mlists.thewrittenword.com>
  879 
  880 	* Makefile.in: Use @datadir@.  Define localedir as $(datadir)/locale.
  881 
  882 2005-08-26  Jeremy Shapiro  <jnshapiro@gmail.com>
  883 
  884 	* openssl.c (ssl_init): Set SSL_MODE_AUTO_RETRY.
  885 
  886 2005-08-23  Hrvoje Niksic  <hniksic@xemacs.org>
  887 
  888 	* host.c (address_list_from_ipv4_addresses): Use IP_INADDR_DATA.
  889 
  890 2005-08-12  Hrvoje Niksic  <hniksic@xemacs.org>
  891 
  892 	* wget.h: Renamed strtoll_return to strtoll_type.
  893 
  894 2005-08-11  Hrvoje Niksic  <hniksic@xemacs.org>
  895 
  896 	* progress.c (eta_to_human_short): Switch to days when printing
  897 	more than 48h rather than 100h.  (It's not immediately apparent
  898 	how many days there are in 83h.)
  899 
  900 2005-08-11  Hrvoje Niksic  <hniksic@xemacs.org>
  901 
  902 	* cmpt.c (strtoll): Define it if missing on the system and if Wget
  903 	needs it.
  904 
  905 	* mswindows.c (str_to_int64): Move to cmpt.c and rename to strtoll.
  906 
  907 2005-08-10  Hrvoje Niksic  <hniksic@xemacs.org>
  908 
  909 	* host.c (print_address): Always use inet_ntop when IPv6 is
  910 	enabled.
  911 
  912 	* host.h (ip_address): Simplify the data union.
  913 
  914 2005-08-09  Hrvoje Niksic  <hniksic@xemacs.org>
  915 
  916 	* mswindows.c (inet_ntop): Also handle IPv4 addresses for
  917 	completeness.
  918 
  919 2005-08-09  Hrvoje Niksic  <hniksic@xemacs.org>
  920 
  921 	* http.c (gethttp): Don't read more than the amount of data
  922 	specified by the content-length header.
  923 
  924 2005-08-09  Vasil Dimov  <vd@datamax.bg>
  925 
  926 	* ftp.c (getftp): Don't free RESPLINE if ftp_response returns a
  927 	status other than FTPOK.
  928 
  929 2005-08-04  Giuseppe Bonacci  <g.bonacci@libero.it>
  930 
  931 	* ftp-ls.c (ftp_parse_unix_ls): Remember the position of the
  932 	previous token instead of backtracking back to it.
  933 
  934 2005-07-08  Gisle Vanem  <giva@bgnett.no>
  935 
  936 	* mswindows.h: Include process.h to get getpid() declaration.
  937 
  938 2005-07-08  Hrvoje Niksic  <hniksic@xemacs.org>
  939 
  940 	* utils.c (aprintf): Use vasprintf where available.
  941 
  942 2005-07-08  Hrvoje Niksic  <hniksic@xemacs.org>
  943 
  944 	* url.c (rewrite_shorthand_url): Simplify code using aprintf and
  945 	strspn.
  946 
  947 2005-07-07  Hrvoje Niksic  <hniksic@xemacs.org>
  948 
  949 	* gnutls.c (ssl_check_certificate): Check for the validity of the
  950 	presented X509 certificate.
  951 
  952 2005-07-07  Hrvoje Niksic  <hniksic@xemacs.org>
  953 
  954 	* openssl.c (ssl_check_certificate): Print custom error messages
  955 	for frequent X509 certificate problems.
  956 
  957 2005-07-07  Hrvoje Niksic  <hniksic@xemacs.org>
  958 
  959 	* mswindows.h: Define an alias for stat and fstat, as requested by
  960 	config-compiler.h.
  961 	(gai_strerror): Define to windows_strerror if NEED_GAI_STRERROR is
  962 	defined.
  963 
  964 2005-07-06  Hrvoje Niksic  <hniksic@xemacs.org>
  965 
  966 	* mswindows.h: Use strtoll where available.
  967 
  968 2005-07-06  Hrvoje Niksic  <hniksic@xemacs.org>
  969 
  970 	* sysdep.h: Add a full declaration of fnmatch.h.
  971 
  972 2005-07-06  Hrvoje Niksic  <hniksic@xemacs.org>
  973 
  974 	* utils.c: Unconditionally include <setjmp.h>.
  975 
  976 2005-07-06  Hrvoje Niksic  <hniksic@xemacs.org>
  977 
  978 	* utils.c (fnmatch_nocase): New function.
  979 	(proclist): Use it instead of fnmatch when opt.ignore_case is
  980 	requested.
  981 	(in_acclist): Respect opt.ignore_case.
  982 	(frontcmp): Respect opt.ignore_case.
  983 
  984 	* options.h (struct options): New flag opt.ignore_case.
  985 
  986 2005-07-06  Hrvoje Niksic  <hniksic@xemacs.org>
  987 
  988 	* ptimer.c: Measure time in seconds rather than milliseconds.
  989 	Adjusted all callers.
  990 
  991 2005-07-06  Hrvoje Niksic  <hniksic@xemacs.org>
  992 
  993 	* http.c (gethttp): When freeing MESSAGE, take into account that
  994 	it can be NULL.
  995 
  996 2005-07-05  Hrvoje Niksic  <hniksic@xemacs.org>
  997 
  998 	* cmpt.c (timegm): Handle years after 2099.
  999 
 1000 2005-07-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1001 
 1002 	* cmpt.c (timegm): Remove unused variable.
 1003 
 1004 2005-07-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1005 
 1006 	* cmpt.c (timegm): Don't call mktime; simply count the seconds
 1007 	between 1970-01-01 and the specified date.
 1008 
 1009 2005-07-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1010 
 1011 	* wget.h (or): Define HAVE_SSL when either HAVE_OPENSSL or
 1012 	HAVE_GNUTLS are defined.
 1013 
 1014 	* gnutls.c: New file.
 1015 
 1016 2005-07-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1017 
 1018 	* http.c (gethttp): Don't print the request write error message
 1019 	twice.
 1020 
 1021 2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 1022 
 1023 	* openssl.c (openssl_errstr): Instead of always using a large
 1024 	static buffer, only allocate the error string when there is an
 1025 	actual error.
 1026 
 1027 2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 1028 
 1029 	* xmalloc.c (debugging_free): Prefix hex pointer value with "0x"
 1030 	when printing.
 1031 
 1032 2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 1033 
 1034 	* utils.c (NEXT_BASE64_CHAR): Rename to NEXT_CHAR and simplify to
 1035 	get the next non-whitespace character.
 1036 
 1037 2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 1038 
 1039 	* utils.c (base64_decode): Don't silently tolerate non-base64
 1040 	non-white-space characters in the base64 stream.
 1041 
 1042 2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 1043 
 1044 	* connect.c (LAZY_RETRIEVE_INFO): Make last_tick unsigned to match
 1045 	transport_map_modified_tick.
 1046 
 1047 2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 1048 
 1049 	* config-post.h (alloca): Updated declaration to not enumerate all
 1050 	Windows compilers.
 1051 
 1052 2005-07-04  Hrvoje Niksic  <hniksic@xemacs.org>
 1053 
 1054 	* openssl.c (openssl_errstr): Separate error messages with "; ".
 1055 
 1056 2005-07-03  Hrvoje Niksic  <hniksic@xemacs.org>
 1057 
 1058 	* ftp.c (getftp): Ditto.
 1059 
 1060 	* http.c (gethttp): Use fd_errstr.
 1061 
 1062 	* connect.c (fd_register_transport): Restructure parameters to
 1063 	include only a single structure that describes transport
 1064 	implementation.
 1065 
 1066 	* openssl.c (openssl_errstr): New function: dump SSL error strings
 1067 	into a static buffer and return a pointer to the buffer.
 1068 
 1069 	* connect.c (fd_errstr): New function; returns transport-specific
 1070 	error message, or strerror(errno) if transport doesn't supply one.
 1071 
 1072 2005-07-03  Hrvoje Niksic  <hniksic@xemacs.org>
 1073 
 1074 	* mswindows.h: Also wrap accept() and listen().
 1075 
 1076 2005-07-03  Hrvoje Niksic  <hniksic@xemacs.org>
 1077 
 1078 	* url.c (path_end): Skip separators appropriate for the scheme.
 1079 	(strpbrk_or_eos): Remove gcc-specific version, as the optimization
 1080 	it tried to perform no longer applies.
 1081 
 1082 2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
 1083 
 1084 	* host.c: Don't include "connect.h" now that we no longer have
 1085 	socket_has_inet6.
 1086 
 1087 2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
 1088 
 1089 	* host.c: Remove extraneous definition of netdb.h.
 1090 
 1091 2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
 1092 
 1093 	* http.c (gethttp): Skip error message body in the keep-alive
 1094 	case.
 1095 
 1096 2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
 1097 
 1098 	* url.c (url_parse): Would crash when parsing fragments.  Support
 1099 	fragments for FTP URLs too.
 1100 
 1101 2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
 1102 
 1103 	* version.c: Don't use "cvs" in version name, since we're not
 1104 	using CVS anymore.
 1105 
 1106 2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
 1107 
 1108 	* progress.c (create_image): Ditto.
 1109 
 1110 	* retr.c (retr_rate): Display smaller rate numbers with greater
 1111 	precision.
 1112 
 1113 2005-07-02  Hrvoje Niksic  <hniksic@xemacs.org>
 1114 
 1115 	* http.c (response_head_terminator): Minor optimization.
 1116 
 1117 	* retr.c (fd_read_hunk): Call terminator with pointer to the start
 1118 	of the data and the pointer to the current data.  Changed all
 1119 	callers.
 1120 
 1121 2005-07-01  Hrvoje Niksic  <hniksic@xemacs.org>
 1122 
 1123 	* url.c (url_parse): Make sure u->params is not initialized for
 1124 	http/https URLs.
 1125 	(url_parse): Don't crash on garbage following []-delimited IPv6
 1126 	addresses.
 1127 
 1128 2005-07-01  Hrvoje Niksic  <hniksic@xemacs.org>
 1129 
 1130 	* main.c (print_help): Don't refer to the non-existent -nr in
 1131 	description of --mirror.
 1132 
 1133 2005-06-30  Hrvoje Niksic  <hniksic@xemacs.org>
 1134 
 1135 	* host.c (pretty_print_address): Renamed to just print_address.
 1136 	Clarify documentation.
 1137 
 1138 2005-06-30  Hrvoje Niksic  <hniksic@xemacs.org>
 1139 
 1140 	* http.c (gethttp): Explicitly document the different cases when
 1141 	generating the Host header.
 1142 
 1143 2005-06-30  Hrvoje Niksic  <hniksic@xemacs.org>
 1144 
 1145 	* host.c (pretty_print_address): Handle error result from
 1146 	inet_ntop.
 1147 
 1148 2005-06-30  Gisle Vanem  <giva@bgnett.no>
 1149 
 1150 	* mswindows.c (inet_ntop): New function.  Print IPv6 addresses
 1151 	using WSAAddressToString.
 1152 
 1153 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1154 
 1155 	* progress.c (dot_update): Remove unused variable row_qty.
 1156 
 1157 2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 1158 
 1159 	* main.c: Check for both SIGHUP and SIGUSR1 before using them.
 1160 
 1161 2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 1162 
 1163 	* utils.c: Unconditionally include locale.h.
 1164 
 1165 2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 1166 
 1167 	* ptimer.c: Include sys/time.h to get struct timeval.
 1168 
 1169 2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 1170 
 1171 	* wget.h: Remove obsolete definition of with_thousand_seps_sum.
 1172 
 1173 2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 1174 
 1175 	* gnu-md5.h: Unconditionally include limits.h.
 1176 
 1177 2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 1178 
 1179 	* utils.c (random_number): Use lrand48 if available.
 1180 	(random_float): Use drand48 if available.
 1181 
 1182 2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 1183 
 1184 	* main.c (secs_to_human_time): Use print_decimal when printing
 1185 	total download time in seconds.
 1186 
 1187 	* progress.c (print_row_stats): Use it to print total download
 1188 	time at the end of the download.
 1189 	(create_image): Ditto.
 1190 
 1191 	* utils.c (print_decimal): New function; print small decimal
 1192 	numbers with more precision than large ones.
 1193 
 1194 	* progress.c (print_row_stats): New function.  Print ETA after the
 1195 	download rate at the end of each row.
 1196 
 1197 2005-06-28  Hrvoje Niksic  <hniksic@xemacs.org>
 1198 
 1199 	* init.c (parse_line): Check for alphanumerics.
 1200 
 1201 2005-06-28  Hrvoje Niksic  <hniksic@xemacs.org>
 1202 
 1203 	* (dot_create): Remove unnecessary casts.
 1204 
 1205 2005-06-28  Hrvoje Niksic  <hniksic@xemacs.org>
 1206 
 1207 	* ftp.c (getftp): Delete trailing newlines from LIST output so
 1208 	lines don't come out with trailing \015\012 with -S.
 1209 
 1210 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1211 
 1212 	* mswindows.h: Remove superfluous includes.
 1213 
 1214 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1215 
 1216 	* config-post.h (alloca): Amend alloca declaration to take care of
 1217 	all Win32 compilers, not just MSVC and MinGW.
 1218 
 1219 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1220 
 1221 	* utils.c (get_grouping_data): Force separator to "." rather than
 1222 	" " when "," is taken.
 1223 
 1224 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1225 
 1226 	* wget.h (PTR_FORMAT): Cast the result of sizeof to int before
 1227 	passing it to printf's %*.
 1228 
 1229 	* retr.h: Declare output_stream and output_stream_regular.
 1230 
 1231 	* ftp.h: Declare ftp_last_respline.
 1232 
 1233 	* convert.h: Declare dl_url_file_map.
 1234 
 1235 	* http.h: New file.
 1236 
 1237 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1238 
 1239 	* cookies.c: Make cookies_now static.
 1240 
 1241 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1242 
 1243 	* utils.c (human_readable): Remove intermediary cast to long; MSVC
 1244 	has problems casting *unsigned* __int64 to double.
 1245 
 1246 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1247 
 1248 	* sysdep.h: Use the system-provided fnmatch by default.
 1249 
 1250 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1251 
 1252 	* http.c (mktime_from_utc): Renamed to timegm and moved to cmpt.c.
 1253 	Don't compile it if GNU timegm is available.
 1254 	(http_atotm): Use timegm.
 1255 
 1256 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1257 
 1258 	* http.c (http_atotm): Correctly query the old locale value.
 1259 
 1260 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1261 
 1262 	* config-post.h (alloca): Don't #define alloca under MinGW32,
 1263 	which defines it in malloc.h, included from mswindows.h.
 1264 
 1265 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1266 
 1267 	* utils.c (get_grouping_data): Force the use of separators in C
 1268 	locale.
 1269 
 1270 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1271 
 1272 	* main.c (i18n_initialize): Set all locale categories.
 1273 
 1274 	* http.c (http_atotm): Temporarily set locale to "C".
 1275 
 1276 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1277 
 1278 	* http.c (gethttp): Improve "POST data file missing" error
 1279 	message.
 1280 
 1281 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1282 
 1283 	* progress.c (set_progress_implementation): Type COLON as const
 1284 	char *.
 1285 
 1286 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 1287 
 1288 	* utils.c (with_thousand_seps): Handle negative numbers.
 1289 
 1290 2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 1291 
 1292 	* progress.c (create_image): Mark the "eta" string for translation.
 1293 
 1294 2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 1295 
 1296 	* html-url.c (get_urls_file): Don't explicitly set entry->next to
 1297 	NULL since entry is already zeroed out.
 1298 
 1299 2005-06-26  Gisle Vanem  <giva@bgnett.no>
 1300 
 1301 	* mswindows.h: Define gai_strerror under MinGW.
 1302 
 1303 2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 1304 
 1305 	* utils.c (with_thousand_seps): Correctly implement thousand seps
 1306 	consisting of more than one character.
 1307 
 1308 2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 1309 
 1310 	* main.c (secs_to_human_time): Ditto.
 1311 
 1312 	* progress.c (create_image): Print more exact duration of very
 1313 	short downloads.
 1314 
 1315 	* main.c (secs_to_human_time): Don't translate time suffixes "h",
 1316 	"m", and "s", which are not strictly SI, but are "accepted for use
 1317 	with SI".
 1318 	(secs_to_human_time): Print really small intervals as 0s, not
 1319 	0.00s.
 1320 
 1321 2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 1322 
 1323 	* config-post.h: Replace the alloca declaration with the one from
 1324 	the latest Autoconf manual.  This should remove a warning with GCC
 1325 	on AIX.
 1326 
 1327 2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 1328 
 1329 	* ftp.c (getftp): Always invoke SIZE, not only when continuing a
 1330 	download.
 1331 
 1332 	* main.c (main): Ditto here.
 1333 
 1334 	* progress.c (create_image): When the download is finished, print
 1335 	how long it took.
 1336 
 1337 2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 1338 
 1339 	* main.c (main): Print the downloaded and quota amounts with the
 1340 	"human_readable" function.
 1341 
 1342 	* ftp.c (print_length): Ditto.
 1343 
 1344 	* http.c (gethttp): Don't display thousand separators.
 1345 
 1346 	* utils.c (with_thousand_seps): Rewritten to respect locale
 1347 	settings and to be type size agnostic.
 1348 
 1349 2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
 1350 
 1351 	* utils.c (human_readable): Divide with 1024 instead of shifting
 1352 	so the operation can work with non-integer N.
 1353 
 1354 2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
 1355 
 1356 	* progress.c (eta_to_human): New logic for more human-readable
 1357 	ETA.
 1358 
 1359 2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
 1360 
 1361 	* utils.c (with_thousand_seps_sum): Decrease buffer size so it
 1362 	cannot overrun add_thousand_seps's buffer.
 1363 
 1364 2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
 1365 
 1366 	* utils.c (SPRINTF_WGINT): The correct format is %I64d, not just
 1367 	%I64.
 1368 
 1369 2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
 1370 
 1371 	* http.c (http_loop): Don't warn about wildcards in HTTP URLs if
 1372 	globbing isn't requested in the first place.
 1373 
 1374 	* retr.c (retrieve_url): Temporarily turn off globbing when
 1375 	processing HTTP->FTP redirects.
 1376 
 1377 2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
 1378 
 1379 	* utils.c (with_thousand_seps_sum): Now defined only if
 1380 	SUM_SIZE_INT is double.
 1381 
 1382 	* wget.h (SUM_SIZE_INT): Instead of bothering with long, long
 1383 	long, __int64, and friends, simply either use wgint or double, end
 1384 	of story.  Since we know how to print either, we no longer need
 1385 	LARGE_INT_FMT.
 1386 
 1387 	* sysdeps.h (LARGE_INT): Renamed to SUM_SIZE_INT to better reflect
 1388 	its intent, and moved to wget.h.
 1389 
 1390 2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
 1391 
 1392 	* Makefile.in: No need to clean .libs.
 1393 
 1394 2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
 1395 
 1396 	* cookies.c (parse_set_cookies): Cast pointer subtraction to int
 1397 	before using it with %d; AIX compiler warns on this.
 1398 	Reported by Jens Schleusener.
 1399 
 1400 2005-06-24  Hrvoje Niksic  <hniksic@xemacs.org>
 1401 
 1402 	* http.c (gethttp): Don't prepend / here.
 1403 
 1404 	* cookies.c (cookie_handle_set_cookie): Prepend / to PATH.
 1405 	(cookie_header): Ditto.
 1406 
 1407 2005-06-24  Hrvoje Niksic  <hniksic@xemacs.org>
 1408 
 1409 	* init.c: opt.verbose must be declared as int.
 1410 
 1411 2005-06-23  Hrvoje Niksic  <hniksic@xemacs.org>
 1412 
 1413 	* cmpt.c (strpbrk): Removed.
 1414 	(mktime): Removed.
 1415 	Include <time.h>.
 1416 
 1417 2005-06-23  Hrvoje Niksic  <hniksic@xemacs.org>
 1418 
 1419 	* utils.c (read_file): Ditto.
 1420 
 1421 	* main.c (main): Use struct_fstat.
 1422 
 1423 	* mswindows.h (struct_fstat): Define a struct_fstat to deal with
 1424 	the fact that Borland 5.5 has 64-bit stat, but not 64-bit fstat!
 1425 
 1426 2005-06-23  Hrvoje Niksic  <hniksic@xemacs.org>
 1427 
 1428 	* sysdep.h: Remove code that deals with Watcom.
 1429 
 1430 2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 1431 
 1432 	* all: Use bool instead of int and false/true instead of 0/non-0
 1433 	for boolean variables and values.
 1434 
 1435 2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 1436 
 1437 	* sysdep.h: Include the stdbool.h/_Bool/bool blurb from Autoconf.
 1438 
 1439 2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 1440 
 1441 	* init.c (cmd_lockable_boolean): Removed.
 1442 
 1443 2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 1444 
 1445 	* cookies.c (struct cookie): Use 1-bit bitfields for booleans
 1446 	which makes the structure takes less space at no cost in
 1447 	complexity.
 1448 
 1449 2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 1450 
 1451 	* Makefile.in ($(OBJ)): Add the config.h dependency.
 1452 
 1453 2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 1454 
 1455 	* openssl.c, connect.c, host.c: Replace instances of #ifdef
 1456 	ENABLE_DEBUG if (opt.debug) {...} #endif with IF_DEBUG {...}.
 1457 
 1458 	* main.c: Rename the IF_DEBUG defined here to WHEN_DEBUG.
 1459 
 1460 	* wget.h (IF_DEBUG): New macro.
 1461 	(DEBUGP): Define in terms of IF_DEBUG.
 1462 
 1463 2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 1464 
 1465 	* http.c (gethttp): Only handle --set-cookies (and assert that
 1466 	cookie jar exists) if opt.cookies is true.  Failure to do so
 1467 	triggered the assert when --no-cookies was used and the server
 1468 	sent a Set-Cookie header.  Ouch!
 1469 
 1470 2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 1471 
 1472 	* connect.c (select_fd): Expect select() to exist.
 1473 
 1474 	* utils.c (xsleep): Always use select() as sleep fallback on
 1475 	non-Windows platforms.
 1476 
 1477 	* ptimer.c: Delete the implementation of PTIMER_TIME.
 1478 
 1479 	* main.c: Assume existence of signal(), test for different signal
 1480 	names instead.
 1481 
 1482 	* cmpt.c: Better document reasons why certain functions are
 1483 	included.
 1484 
 1485 2005-06-22  Hrvoje Niksic  <hniksic@xemacs.org>
 1486 
 1487 	* Makefile.in: Remove the manually maintained dependency list;
 1488 	make all object files depend on every header.
 1489 
 1490 2005-06-20  Hrvoje Niksic  <hniksic@xemacs.org>
 1491 
 1492 	* hash.c: Rename "mapping" to "cell" to avoid confusion with the
 1493 	term "mapping" (or "map") sometimes being used for the entire hash
 1494 	table.  Also rename "non-empty" to "occupied" for easier reading
 1495 	of if (!NON_EMPTY (...)) ... .
 1496 
 1497 2005-06-20  Hrvoje Niksic  <hniksic@xemacs.org>
 1498 
 1499 	* main.c, ptimer.c, sysdep.h, utils.c: Use #elif to simplify reading of
 1500 	chained if-else-else-else-... statements.
 1501 
 1502 2005-06-20  Hrvoje Niksic  <hniksic@xemacs.org>
 1503 
 1504 	* all: Return type of signal handlers is `void'.  Include signal.h
 1505 	unconditionally.
 1506 
 1507 	* all: Don't explicitly cast values returned by malloc.  We no
 1508 	longer support ancient compilers that don't declare malloc, and we
 1509 	never supported C++ builds.
 1510 
 1511 2005-06-19  Hrvoje Niksic  <hniksic@xemacs.org>
 1512 
 1513 	* all: Don't declare errno.  Include both time.h and sys/time.h,
 1514 	as long as sys/time.h exists.  Don't dereference function pointers
 1515 	when invoking the functions they point to.
 1516 
 1517 	* cmpt.c (memmove): Remove function mandated by C89.
 1518 	(strerror): Ditto.
 1519 	(strstr): Ditto.
 1520 
 1521 	* all: Undo the K&R-ization changes from 2005-05-03.
 1522 
 1523 	* all: Remove support for K&R compilers: use C89 function
 1524 	declarations, remove definition of PARAMS, remove support for
 1525 	varargs, and remove ansi2knr.  Assume the presence of time.h,
 1526 	string.h, and other headers mandated by C89.
 1527 
 1528 2005-06-19  Hrvoje Niksic  <hniksic@xemacs.org>
 1529 
 1530 	* init.c (cmd_lockable_boolean): Don't recognize literal "2" and
 1531 	"-1" values; unlike 0 and 1, those should never be exposed to the
 1532 	user.  Update the error message to be more self-consistent, as
 1533 	proposed by Benno Schulenberg.
 1534 
 1535 2005-06-18  Hrvoje Niksic  <hniksic@xemacs.org>
 1536 
 1537 	* http.c (gethttp): Don't free "head" before using it to save
 1538 	headers.
 1539 
 1540 2005-06-18  Hrvoje Niksic  <hniksic@xemacs.org>
 1541 
 1542 	* http.c (gethttp): When -E is in use, check for file existence
 1543 	after appending ".html" to the name and modify the file name if
 1544 	necessary.
 1545 
 1546 2005-06-17  Hrvoje Niksic  <hniksic@xemacs.org>
 1547 
 1548 	* connect.c (socket_has_inet6): Removed.
 1549 
 1550 	* host.c (lookup_host): Don't use the AI_ADDRCONFIG getaddrinfo
 1551 	hint.
 1552 
 1553 2005-06-16  Hrvoje Niksic  <hniksic@xemacs.org>
 1554 
 1555 	* init.c (cmd_lockable_boolean): Improve the error message so it
 1556 	lists the more useful values first.
 1557 
 1558 2005-06-15  Hrvoje Niksic  <hniksic@xemacs.org>
 1559 
 1560 	* http.c (gethttp): Also report the system error when the POST
 1561 	data file is missing.
 1562 
 1563 2005-06-15  Benno Schulenberg  <benno@nietvergeten.nl>
 1564 
 1565 	* ftp.c, http.c, connect.c, cookies.c, html-url.c, init.c, res.c:
 1566 	Gettext-ize messages that were previously missed.
 1567 
 1568 2005-06-15  Hrvoje Niksic  <hniksic@xemacs.org>
 1569 
 1570 	* host.h (ip_address): Remove the trailing comma from the type
 1571 	enum in the no-IPv6 case.
 1572 
 1573 	* main.c (struct cmdline_option): Remove the trailing comma from
 1574 	the enum.
 1575 
 1576 	Reported by Jens Schleusener.
 1577 
 1578 2005-05-30  Hrvoje Niksic  <hniksic@xemacs.org>
 1579 
 1580 	* url.c (strpbrk_or_eos): Check for a recent GCC version before
 1581 	using the statement-as-expression extension.
 1582 
 1583 2005-05-30  Hrvoje Niksic  <hniksic@xemacs.org>
 1584 
 1585 	* http.c (gethttp): Don't attempt to "skip short body" if we're
 1586 	issuing a HEAD request (in which case the response head is not
 1587 	followed by a body).
 1588 
 1589 2005-05-30  Hrvoje Niksic  <hniksic@xemacs.org>
 1590 
 1591 	* init.c (cmd_spec_header): Don't split the string along the
 1592 	commas using cmd_vector; just append the new value using
 1593 	vec_append instead.
 1594 
 1595 	* utils.c (vec_append): New function.
 1596 
 1597 2005-05-27  Andreas Beckmann  <debian@abeckmann.de>
 1598 
 1599 	* html-url.c (tag_handle_link): Mark the content from the <link
 1600 	src="..."> tag as expecting HTML.
 1601 
 1602 2005-05-24  Hrvoje Niksic  <hniksic@xemacs.org>
 1603 
 1604 	* http.c (http_atotm): Document the origin of the "cookie date"
 1605 	format.
 1606 
 1607 2005-05-21  Hrvoje Niksic  <hniksic@xemacs.org>
 1608 
 1609 	* init.c (setval_internal): Report exact command name alongside
 1610 	the "display name".
 1611 
 1612 2005-05-18  Hrvoje Niksic  <hniksic@xemacs.org>
 1613 
 1614 	* cookies.c (update_cookie_field): Explicitly cast -1 to time_t to
 1615 	cope with systems where time_t is unsigned.
 1616 
 1617 	* cookies.c: Remove unnecessary casts to time_t from values
 1618 	already of that type.
 1619 
 1620 2005-05-17  Hrvoje Niksic  <hniksic@xemacs.org>
 1621 
 1622 	* ftp.c (ftp_loop_internal): Same here.
 1623 
 1624 	* http.c (http_loop): Don't clobber the file when -c is specified
 1625 	and the first attempt to retrieve the file fails.
 1626 
 1627 2005-05-16  Hrvoje Niksic  <hniksic@xemacs.org>
 1628 
 1629 	* openssl.c (ssl_check_certificate): Print all issues with a
 1630 	certificate.
 1631 
 1632 2005-05-16  Hrvoje Niksic  <hniksic@xemacs.org>
 1633 
 1634 	* ftp-basic.c: Don't xfree() the line returned by ftp_response if
 1635 	the returned code is not FTPOK.
 1636 
 1637 2005-05-16  Hrvoje Niksic  <hniksic@xemacs.org>
 1638 
 1639 	* init.c (cleanup): Don't free the non-existent opt.ftp_acc.  Free
 1640 	the SSL-related stuff.
 1641 
 1642 2005-05-16  Hrvoje Niksic  <hniksic@xemacs.org>
 1643 
 1644 	* ftp.c (print_length): Consistently print \n at end of the
 1645 	"Length" line.
 1646 
 1647 2005-05-14  Hrvoje Niksic  <hniksic@xemacs.org>
 1648 
 1649 	* openssl.c (ssl_connect): Announce the beginning and the end of
 1650 	the SSL handshake when in debug mode.
 1651 
 1652 	* wget.h (PTR_FORMAT): New macro for easier printing of pointer
 1653 	values.  Use %0*lx along with PTR_FORMAT instead of %p.
 1654 
 1655 2005-05-14  Hrvoje Niksic  <hniksic@xemacs.org>
 1656 
 1657 	* http.c (gethttp): Would forget to close the connection when
 1658 	keep_alive was not used.
 1659 
 1660 2005-05-13  Hrvoje Niksic  <hniksic@xemacs.org>
 1661 
 1662 	* openssl.c (pattern_match): Document the code that decides
 1663 	whether "*" matches ".".
 1664 
 1665 2005-05-12  Hrvoje Niksic  <hniksic@xemacs.org>
 1666 
 1667 	* ftp-ls.c (ftp_index): Use %d to print the port number, which is
 1668 	now int.
 1669 	From Steven M. Schweda's VMS patches.
 1670 
 1671 2005-05-12  Hrvoje Niksic  <hniksic@xemacs.org>
 1672 
 1673 	* url.c (rewrite_shorthand_url): Don't rewrite "https://host" to
 1674 	"ftp://https//host" when SSL is not used.
 1675 
 1676 2005-05-11  Hrvoje Niksic  <hniksic@xemacs.org>
 1677 
 1678 	* openssl.c (ssl_check_server_identity): Renamed to
 1679 	ssl_check_certificate because it does more than just checking the
 1680 	server's identity.
 1681 	(ssl_check_certificate): Tell the user about
 1682 	--no-check-certificate.
 1683 
 1684 2005-05-11  Hrvoje Niksic  <hniksic@xemacs.org>
 1685 
 1686 	* openssl.c (ssl_init): Always use SSL_VERIFY_NONE, so that the
 1687 	handshake finishes even if the certificate is invalid.  That way
 1688 	ssl_check_server_identity can provide better diagnostics on why
 1689 	the verification failed.
 1690 
 1691 2005-05-11  Hrvoje Niksic  <hniksic@xemacs.org>
 1692 
 1693 	* openssl.c (pattern_match): New function.
 1694 	(ssl_check_server_identity): Treat peer certificate common name as
 1695 	wildcard.
 1696 
 1697 2005-05-10  Hrvoje Niksic  <hniksic@xemacs.org>
 1698 
 1699 	* openssl.c (ssl_check_server_identity): Print certificate subject
 1700 	and issuer.
 1701 
 1702 2005-05-10  Hrvoje Niksic  <hniksic@xemacs.org>
 1703 
 1704 	* res.c (res_register_specs): Correctly pass pointers to
 1705 	hash_table_get_pair.
 1706 
 1707 2005-05-10  Hrvoje Niksic  <hniksic@xemacs.org>
 1708 
 1709 	* http.c (gethttp): Call ssl_check_server_identity.
 1710 
 1711 	* openssl.c (ssl_check_server_identity): New function, verifies
 1712 	that the host name in the certificate matches the actual host
 1713 	name.
 1714 	(verify_cert_callback): Removed, since it didn't do anything
 1715 	except returning the preverify_ok argument.
 1716 
 1717 	* connect.c (fd_transport_context): Allow retrieval of the context
 1718 	pointer registered with fd_register_transport.
 1719 
 1720 2005-05-09  Hrvoje Niksic  <hniksic@xemacs.org>
 1721 
 1722 	* openssl.c (verify_cert_callback): Renamed from verify_callback.
 1723 	Always return the received "ok" value.  Print the X509 name in
 1724 	debug mode.
 1725 	(ssl_init): Enable partial writes in SSL context.
 1726 
 1727 2005-05-08  Hrvoje Niksic  <hniksic@xemacs.org>
 1728 
 1729 	* http.c (http_loop): Check for wildcards in the URL path
 1730 	component, not in the whole URL.
 1731 
 1732 	* ftp.c (ftp_loop): Check for wildcards in URL path before
 1733 	unescaping, so the users can escape globbing metacharacters with %
 1734 	escapes.
 1735 
 1736 2005-05-08  Hrvoje Niksic  <hniksic@xemacs.org>
 1737 
 1738 	* init.c (run_command): Correctly interpret the return value of
 1739 	parse_line.
 1740 	(commands): Re-alphabetize.
 1741 
 1742 2005-05-08  Hrvoje Niksic  <hniksic@xemacs.org>
 1743 
 1744 	* netrc.c (parse_netrc): Explicitly check for assignment != NULL
 1745 	to silence warning from Borland C.
 1746 
 1747 	* url.c (sync_path): Don't unnecessarily increment p.
 1748 	(url_parse): Don't unnecessarily set url_encode to NULL just
 1749 	prior to return from the function.
 1750 
 1751 2005-05-08  Hrvoje Niksic  <hniksic@xemacs.org>
 1752 
 1753 	* log.c (escnonprint_internal): Place variable declarations
 1754 	before other statements.
 1755 
 1756 2005-05-08  Hrvoje Niksic  <hniksic@xemacs.org>
 1757 
 1758 	* html-url.c: Include recur.h.
 1759 
 1760 	* http.c (request_new): Define as accepting no args.
 1761 
 1762 2005-05-07  Hrvoje Niksic  <hniksic@xemacs.org>
 1763 
 1764 	* url.c (strpbrk_or_eos): Made inline.  Use strchr(s, '\0') for
 1765 	finding the NUL char position.
 1766 
 1767 2005-05-07  Hrvoje Niksic  <hniksic@xemacs.org>
 1768 
 1769 	* url.c (decide_copy_method): Renamed to char_needs_escaping.
 1770 	Since it now returns only two possible values, change it to return
 1771 	boolean (int).
 1772 
 1773 2005-05-07  Hrvoje Niksic  <hniksic@xemacs.org>
 1774 
 1775 	* ftp-basic.c (ftp_request): Prevent newlines in VALUE causing
 1776 	inadvertent sending of multiple FTP commands.
 1777 
 1778 2005-05-07  Hrvoje Niksic  <hniksic@xemacs.org>
 1779 
 1780 	* url.c (decide_copy_method): Never cause reencode_escapes to
 1781 	decode % escapes; it is too intrusive and breaks some servers.
 1782 
 1783 2005-05-07  Hrvoje Niksic  <hniksic@xemacs.org>
 1784 
 1785 	* http.c (gethttp): When tunnelling SSL traffic over proxy with
 1786 	CONNECT, we're really talking to the remote server directly.
 1787 	Because of this, the request-line argument must be the URL path
 1788 	rather than the whole URL, as it would be when using regular
 1789 	proxies.
 1790 	Reported by Charles Lane.
 1791 
 1792 2005-05-06  Hrvoje Niksic  <hniksic@xemacs.org>
 1793 
 1794 	* init.c (cmd_spec_useragent): Allow empty User-Agent.
 1795 
 1796 	* http.c (gethttp): Don't print "unknown authentication scheme"
 1797 	for failed Basic authentication.
 1798 	(SET_USER_AGENT): Don't set user-agent if opt.useragent is empty.
 1799 	(gethttp): Use alloca for allocation of www_authenticate.
 1800 
 1801 2005-05-06  Hrvoje Niksic  <hniksic@xemacs.org>
 1802 
 1803 	* main.c (print_help): Fix wording of --secure-protocol help text.
 1804 
 1805 2005-05-06  Hrvoje Niksic  <hniksic@xemacs.org>
 1806 
 1807 	* cmpt.c (strstr): Updated from glibc 2.3.5.
 1808 
 1809 2005-05-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1810 
 1811 	* http.c (http_atotm): Zero out the whole struct tm being passed
 1812 	to strptime.
 1813 
 1814 2005-05-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1815 
 1816 	* main.c (main): Propagate option name to setoptval.
 1817 
 1818 	* init.c (setoptval): Accept another argument, OPTNAME.  Propagate
 1819 	that argument as the option name independently of the actual
 1820 	command, determined by command_by_name(com).
 1821 
 1822 2005-05-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1823 
 1824 	* init.c (parse_line): Make the return value indicate whether
 1825 	there was a syntax error or a setter failed.
 1826 	(run_wgetrc): Return an indication on whether an error has been
 1827 	encountered.
 1828 	(initialize): Abort if there have been errors running either
 1829 	.wgetrc file.
 1830 
 1831 2005-05-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1832 
 1833 	* log.c (copy_and_escape): Slightly reduce code repetition between
 1834 	the two loops.
 1835 
 1836 2005-05-05  Charles C.Fu  <ccwf@bacchus.com>
 1837 
 1838 	* utils.c (proclist): Strip leading slash when calling fnmatch
 1839 	too, otherwise wildcard comparisons always fail.
 1840 
 1841 2005-05-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1842 
 1843 	* utils.c (touch): Set access time to current time.
 1844 
 1845 2005-05-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1846 
 1847 	* url.c (url_unescape): Don't unescape %00, it effectively
 1848 	truncates the string.
 1849 
 1850 2005-05-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1851 
 1852 	* log.c (copy_and_escape): Replace the FOR_URI argument with a
 1853 	slightly more general mechanism for specifying different kinds of
 1854 	escape.
 1855 
 1856 2005-05-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1857 
 1858 	* ftp-basic.c (ftp_response): Fix printing FTP server response.
 1859 
 1860 2005-05-05  Hrvoje Niksic  <hniksic@xemacs.org>
 1861 
 1862 	* retr.c (limit_bandwidth_reset): Reset sleep_adjust.
 1863 	(limit_bandwidth): Don't allow huge "adjustment" values that
 1864 	result from being suspended for a while.
 1865 
 1866 2005-05-04  Hrvoje Niksic  <hniksic@xemacs.org>
 1867 
 1868 	* wget.h: If gettext was found but libtintl.h wasn't, declare
 1869 	gettext's return type to avoid type mismatches.
 1870 
 1871 2005-05-03  Hrvoje Niksic  <hniksic@xemacs.org>
 1872 
 1873 	* url.c (url_parse): Rename label `error' to avoid conflict with
 1874 	identifier.
 1875 
 1876 	* retr.c (fd_read_body): Rename label `out' to avoid conflict with
 1877 	identifier.
 1878 	(fd_read_hunk): Use explicit double constant.
 1879 	(retrieve_from_file): Don't use string concatenation.
 1880 	(sleep_between_retrievals): Make sure xsleep is called with a
 1881 	`double' argument.
 1882 	(no_proxy_match): Define as static, like it is declared.
 1883 
 1884 	* progress.c (bar_create): Use 0.0 instead of 0 because K&R
 1885 	compilers can't automatically promote it.
 1886 
 1887 	* http-ntlm.c (ntlm_output): Replace \xHH sequences with \OOO for
 1888 	the sake of old compilers.
 1889 
 1890 	* ftp.c (ftp_loop_internal): Don't use string concatenation.
 1891 
 1892 	* http.c (request_send): Use explicit double constants when
 1893 	calling fd_read and fd_write.
 1894 	(post_file): Ditto.
 1895 	(gethttp): Ditto.
 1896 	(skip_short_body): Ditto.
 1897 
 1898 	* ftp-basic.c: When callin