X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2FChangeLog;h=dedc796786c5b214c960ed3a7811c0f00ff26688;hb=4c1a59ea4807d3d27a41d82e7ab37b6ded92b355;hp=c576f1170a12ed43eb5fed6b3ce2e34d33ed0d05;hpb=e4600575bb4e2d2a6b9e2c543d0920b969d98e55;p=wget diff --git a/src/ChangeLog b/src/ChangeLog index c576f117..dedc7967 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,358 @@ +2008-02-10 Micah Cowan + + * http.c: Added existence_checked member to the http_stat + struct. + (gethttp): Mark hs->existence_checked when we've checked whether + a file-to-download exists; so we don't check it again if the + connection gets lost (and potentially pick a new "unique" name). + This fixes bug 22251. + * progress.c (create_image): Add space for an extra column in + the "eta" portion of the progress bar image; to deal with + too-long Czech translation. + * main.c, http.c, init.c: Added --auth-no-challenge option, to + bring back 1.10.2 unsafe auth behavior when needed. This fixes + bug #22242. + +2008-02-07 Micah Cowan + + * progress.c (create_image): Remove assertion on exceeding + screen width, which given the less-than-robust code there, can + be broken by a number of factors (such as large file downloads). + +2008-02-06 Micah Cowan + + * progress.c (countcols): Use strlen() when mbtowc or wcwidth + not available (or not using NLS). + * utils.c: Ensure we use single-byte separators when not doing + NLS progress-bars. + * wget.h: Determine whether to use NLS for progress-bars, based + on whether wcwidth and mbtowc are available. + +2008-02-03 Micah Cowan + + * progress.c (create_image): Use number of characters/columns + consumed, rather than number of bytes, to determine how much of + a line we've used. Fixes assertion errors and field alignment + bugs (#22161, #20481) + (get_eta, count_cols): Added to support the changes for + create_image. + * http.c (http_loop): Put no-clobber logic back into http_loop, + before starting to fetch, for when we're not doing + content-disposition. + +2008-01-31 Micah Cowan + + * http.c (gethttp): Don't derive hs->contlen from possibly + invalid/missing Content-Length; instead, get the appropriate + value from the Content-Range header values. + (parse_content_range): Handle '*' instance-length field. + +2008-01-25 Micah Cowan + + * main.c: Added notes to translators regarding (C), diacritics + in names. + * Makefile.am, cmpt.c, connect.c, connect.h, convert.c, + cookies.c, cookies.h, ftp-basic.c, ftp-ls.c, ftp-opie.c, ftp.c, + ftp.h, gen-md5.c, gen-md5.h, gnutls.c, hash.c, hash.h, host.c, + host.h, html-parse.c, html-parse.h, html-url.c, http-ntlm.c, + http-ntlm.h, http.c, http.h, init.c, init.h, log.c, log.h, + main.c, mswindows.c, mswindows.h, netrc.c, netrc.h, openssl.c, + options.h, progress.c, progress.h, ptimer.c, ptimer.h, recur.c, + recur.h, res.c, res.h, retr.c, retr.h, spider.c, spider.h, + ssl.h, sysdep.h, test.c, test.h, url.c, url.h, utils.c, + utils.h, wget.h, xmalloc.c, xmalloc.h: Updated copyright year. + +2007-12-10 Micah Cowan + + * main.c: The option is --content-disposition, not + --no-content-disposition (at the moment). + +2007-12-08 Hrvoje Niksic + + * ftp.c (ftp_retrieve_glob): Print both arguments of fnmatch in + fnmatch error message. + (ftp_retrieve_glob): Don't match with fnmatch if we're only + supposed to get one file. + +2007-12-07 Micah Cowan + + * Makefile.am: Plug in vars to include stuff from + $(top_srcdir)/md5 when appropriate. + +2007-12-05 Micah Cowan + + * utils.c (subdir_p): Handle the case where d1 is "". + * convert.c (convert_all_links): Don't return without + deallocating timer. + +2007-11-28 Micah Cowan + + * Makefile.am, cmpt.c, connect.c, connect.h, convert.c, + convert.h, cookies.c, cookies.h, ftp-basic.c, ftp-ls.c, + ftp-opie.c, ftp.c, ftp.h, gen-md5.c, gen-md5.h, gnutls.c, + hash.c, hash.h, host.c, host.h, html-parse.c, html-parse.h, + html-url.c, http-ntlm.c, http-ntlm.h, http.c, http.h, init.c, + init.h, log.c, log.h, main.c, mswindows.c, mswindows.h, + netrc.c, netrc.h, openssl.c, options.h, progress.c, progress.h, + ptimer.c, ptimer.h, recur.c, recur.h, res.c, res.h, retr.c, + retr.h, safe-ctype.c, safe-ctype.h, spider.c, spider.h, ssl.h, + sysdep.h, test.c, test.h, url.c, url.h, utils.c, utils.h, + wget.h, xmalloc.c, xmalloc.h: Updated license exception for + OpenSSL, per the SFLC. + +2007-10-30 Micah Cowan + + * main.c (main): Declare argv parameter as char **argv, rather + than char *const *argv. This fixes usage of getopt_long, + regardless of whether getopt_long has a constified argv or not. + +2007-10-22 Gisle Vanem + + * mswindows.c: Move INHIBIT_WRAP macro definition up with wget.h + inclusion. + +2007-10-18 Steven Schweda + + * sysdep.h: #include as well as , to work + around a glitch on Tru64 systems. + +2007-10-18 Micah Cowan + + * Makefile.am: version.c should not be distributed. Removed + config-post.h. Add version.c dependency and gnulib include path + for libunittest.a. + * sysdep.h: Got contents of config-post.h + * config-post.h: Removed. + * wget.h: #include "config.h". + * alloca.c, cmpt.c, connect.c, convert.c, cookies.c, + ftp-basic.c, ftp-ls.c, ftp-opie.c, ftp.c, gen-md5.c, gnutls.c, + hash.c, host.c, html-parse.c, html-url.c, http-ntlm.c, http.c, + init.c, log.c, main.c, mswindows.c, netrc.c, openssl.c, + progress.c, ptimer.c, recur.c, res.c, retr.c, spider.c, url.c, + utils.c, xmalloc.c: Use wget.h at very top, and instead of + config.h. + +2007-10-15 Micah Cowan + + * Makefile.am: Remove intermediary hg-id file generation, make + version.c-generation more portable. + +2007-10-14 Micah Cowan + + * cmpt.c, cookies.c, ftp-basic.c, ftp-ls.c, ftp.c, hash.c, + host.c, html-parse.c, html-url.c, http-ntlm.c, http.c, init.c, + log.c, main.c, netrc.c, openssl.c, res.c, url.c, utils.c, + wget.h: Replace uses of ISSPACE, etc with c_isspace, etc. + * gnu-md5.c, gnu-md5.h: Removed, in deference to gnulib. + * Makefile.am: Removed gnu-md5.h from wget_SOURCES. + * gen-md5.c: Changed #inclusion of gnu-md5.h to md5.h (gnulib's). + * recur.c (download_child_p): Print error if unlink of + robots.txt fails. + * main.c (main): --spider or --delete-after now implies + --no-directories (thanks, Josh Williams). + +2007-10-14 Joshua David Williams + + * recur.c (download_child_p): Remove robots.txt if + --delete-after or --spider is on. + +2007-10-13 Micah Cowan + + * Makefile.am: Make version.c depend on Wget dependencies (source + files, plus such things as LIBOBJS so we get things like + http-ntlm.c). Removed getopt.[ch], as we're now using gnulib for + these. + +2007-10-10 Micah Cowan + + * http-ntlm.c: Include openssl/opensslv.h explicitly, instead of + hoping it'll be included by accident in openssl/des.h. + +2007-10-09 Gisle Vanem + + * mswindows.c: 'argc' and 'argv' in 'windows_main()' are no longer + needed. Hence simply the prototype. Free 'exec_name' at exit. + +2007-10-09 Micah Cowan + + * gettext.h: Imported from /usr/share/gettext, fuller handling + of --disable-nls. + * wget.h: Remove logic for handling lack of NLS (now in + gettext.h). + * main.c: Use gettext's ENABLE_NLS rather than HAVE_NLS. + * Makefile.am: added @LIBINTL@ to LIBS (though it probably + belongs in LDADD, along with everything else currently assigned + to LIBS). + +2007-10-08 Micah Cowan + + * http.c (http_loop): Add send_head_first conditional back + around code that needs it, but not around the last-modified + header-parsing stuff this time. Removed no-longer-useful (was it + ever?) restart_loop boolean, continuing unconditionally at end + of send_head_first conditional block (if we haven't jumped out). + +2007-10-04 Micah Cowan + + * http.c (http_loop): We've got_name if content_disposition + support isn't on; make sure we continue properly in that case, + even though we're not sending HEAD. + * Makefile.in: Removed, replaced by Makefile.am. + * Makefile.am: Converted from Makefile.in. + +2007-10-02 Gisle Vanem + + * ftp.c: Use "_listing" for MSDOS (".listing" is illegal). + + * url.c: Update comment for 'filechr_not_windows'. + + * utils.c: Include for 'getpid()' on Watcom. + +2007-10-02 Micah Cowan + + * ftp.c (getftp, ftp_loop_internal), http.c (http_loop), main + (main): Use datetime_str instead of time_str, for those who have + potentially long-running sessions. Based on suggestions by Saso + Tomat and Steven M. Schweda + . + * http.c (gethttp): Warn about host lookup failures. Adjusted + from Stephen Gildea's patch. + +2007-10-02 Stephen Gildea + + * connect.c (connect_to_host): Warn about host lookup failures. + +2007-09-25 Micah Cowan + + * Makefile.in: Use EXEEXT instead of exeext. + +2007-09-24 Gisle Vanem + + * connect.c, init.c, main.c, openssl.c, options.h, sysdep.h, + url.c, utils.c: Added support for building on MS-DOS. + +2007-09-24 Jochen Roderburg + + * http.c (http_zero): Remove no-longer-used local_size variable. + Fixes bug #21057. + +2007-09-12 Micah Cowan + + * http.c (http_loop): Remove send_head_first from condition for + parsing timestamp. + +2007-08-29 Micah Cowan + + * openssl.c (ssl_init): Re un-const-ified the meth local + variable, to match current versions of openssl. + * spider.c: Removed visited_url function, as it may be very + inefficient. + (print_broken_links): Removed traversal of referrers, until such + time as a more efficient implementation can be written. + * spider.h: Replaced declaration of visited_url with an + empty-bodied, function-like macro. + +2007-08-27 Gisle Vanem + + * mswindows.c (run_with_timeout): Ensure that the correct + conversion specification is used for the return result of + the GetLastError function. + * getopt.c: Fix missing (but, accidentally, legal) comment + delimiter after licensing text. + * recur.c (retrieve_tree): Inserted missing cast for strip_auth. + Includes adjustment by Ralf Wildenhues. + * openssl.c (ssl_init): const-ified the meth local variable. + * main.c: Include all the static function definitions in the + "#ifndef TESTING" clause, leaving just the definitions for + exec_name (not set), and opt. + * utils.c (run_with_timeout): Now returns bool, to align with + declaration in utils.h. + +2007-08-27 Micah Cowan + + * wget.h: Added macro replacement for ngettext, for environs + that lack NLS. + +2007-08-26 Micah Cowan + + * spider.c (print_broken_links): Fixed incorrect plurals msgid + usage, switched to use ngettext function. + +2007-08-24 Micah Cowan + + * http.c (http_loop): Introduced time_came_from_head boolean + flag, to help avoid parsing the same Last-Modified header twice. + Replaced spidering returns of RETRUNNEEDED for some situations, + to RETROK, as otherwise it will be interpreted as an error. + RETRUNNEEDED appears never to be referenced outside of + http.c (and wget.h), and, when returned by gethttp, is + translated by http_loop to RETROK. + * url.c (are_urls_equal): Don't call getchar_from_escaped_string + if u2 is shorter than u1. + (getchar_from_escaped_string): Don't decode reserved characters. + Handle illegally appearing '%'s as literal '%'s. Ensure hex + digits before attempting to decode. + (test_are_urls_equal): Added tests to handle u2 shorter than u1, + and %2f not treated the same as /. + * spider.c (in_url_list_p): Don't call are_urls_equal if one of + them is NULL. + +2007-08-23 Joshua David Williams + + * spider.c (in_url_list_p): Removed the bool verbose argument + +2007-08-22 Mauro Tortonesi + + * http.c (http_loop): Fall back to GET if HEAD fails with a 500 or 501 + error code. + +2007-08-21 Mauro Tortonesi + + * http.c (http_loop): Send preliminary HEAD request if -N is given and + the destination file exists already. + +2007-08-10 Mauro Tortonesi + + * http.c (http_loop): Fixed HTTP HEAD requests logic when --spider is + given. + +2007-08-10 Ralf Wildenhues + + * url.c (append_uri_pathel): Do not assume dest string to be + zero-terminated. + (test_append_uri_pathel): Terminate string to fix test failure. + +2007-08-09 Ralf Wildenhues + + * url.c (url_string): Use comparison, not assignment, in + check for auth_mode == URL_AUTH_HIDE_PASSWD. + +2007-08-09 Micah Cowan + + * http.c (http_loop): If we got a HEAD and then a GET, and the + GET had a timestamp, use that one, not any we may have gotten + from the HEAD. + +2007-08-08 Micah Cowan + + * init.c (defaults): Content disposition will not be default, + since it currently results in extra round-trips. + +2007-07-31 Micah Cowan + + * http.c (gethttp): Set contlen = -1 when we encounter a + negative-valued Content-Length header, so we don't consider it + an internal error later on and call abort(). + +2007-07-29 Micah Cowan + + * url.h, url.c (url_string): Replaced bool arg of the url_string + function with enum url_auth_mode, with added option to + completely remove user/pass auth information. + * http.c, ftp.c, url.c, recur.c: Adapted call to url_string + function to fit new usage. + * recur.c (retrieve_tree): Remove auth info from Referer header. + 2007-07-28 Micah Cowan * options.h, init.c, retr.c, main.c: renamed opt maxredirect @@ -38,6 +393,12 @@ * test.h: tests made more verbose; now displays the name of each test run. +2007-07-10 Mauro Tortonesi + + * http.c (http_loop): Fixed the HTTP requests logic. Now it skips the + preliminary HEAD request if either -O or --no-content-disposition are + given, and neither --spider and -N are given. + 2007-07-05 Micah Cowan * cmpt.c, connect.c, connect.h, convert.c, convert.h: @@ -55,6 +416,11 @@ Updated GPL reference to version 3 or later, removed FSF address. +2007-07-04 Mauro Tortonesi + + * http.c (http_loop): Skip HEAD request and start immediately with GET + if -O is given. + 2007-02-02 Hrvoje Niksic * http.c (print_server_response): Escape non-printable characters @@ -3642,8 +4008,8 @@ before statements. 2003-10-02 Gisle Vanem - - * mswindows.c (run_with_timeout): For Windows: Run the 'fun' in a + + * mswindows.c (run_with_timeout): For Windows: Run the 'fun' in a thread via a helper function. Continually query the thread's exit-code until finished or timed out. @@ -6357,7 +6723,7 @@ 2001-02-23 Dan Harkless * main.c (print_help): --help documentation for -N said it would - re-download files if they had the _same_ timestamp on server. + re-download files if they had the _same_ timestamp on server. (print_help): -nr belongs in "FTP options" section of --help output, not "Recursive retrieval" section. Alphabetized FTP options by long option name. @@ -6365,8 +6731,8 @@ 2001-02-16 Dan Harkless * init.c (commands): Hack Kampbjørn discovered - that "httpsproxy" had been inserted into commands[] out of - alphabetical order, causing "BUG: unknown command `httpuser'". + that "httpsproxy" had been inserted into commands[] out of + alphabetical order, causing "BUG: unknown command `httpuser'". 2001-02-13 Jan Prikryl @@ -6450,19 +6816,19 @@ 2001-02-08 Christian Fraenkel - * gen_sslfunc.c: verify_callback is now static + * gen_sslfunc.c: verify_callback is now static - * gen_sslfunc.c (init_ssl): load certificate if specified + * gen_sslfunc.c (init_ssl): load certificate if specified - * gen_sslfunc.c (ssl_printerr): new function + * gen_sslfunc.c (ssl_printerr): new function - * init.c: added new --sslcertfile and --sslcertkey switches + * init.c: added new --sslcertfile and --sslcertkey switches - * main.c: ditto + * main.c: ditto - * options.h: ditto + * options.h: ditto - * http.c (gethttp): abort when init_ssl fails + * http.c (gethttp): abort when init_ssl fails 2001-01-23 Herold Heiko @@ -6483,8 +6849,8 @@ 2001-01-09 Dan Harkless * html-url.c: A bunch of fixup of `--page-requisites'-related - comments to reflect Hrvoje's changes to my code when transplanting - it into this new file, to fix spelling mistakes, to clarify, etc. + comments to reflect Hrvoje's changes to my code when transplanting + it into this new file, to fix spelling mistakes, to clarify, etc. * url.c (write_backup_file): Clarified a comment. (str_url): Henrik van Ginhoven pointed out on the list that we @@ -6492,12 +6858,12 @@ replacing each character with a 'x'. Use "" instead. * ftp.c (ftp_retrieve_dirs): The bug where recursion into FTP - directories didn't work if logging in put you in a directory other - than "/" is fixed now. Removed the comment here warning of the bug. + directories didn't work if logging in put you in a directory other + than "/" is fixed now. Removed the comment here warning of the bug. * main.c (print_help): --continue's description was misleading. - We don't "restart", we "resume". Also, better to say - "partially-downloaded file" rather than just "existing file". + We don't "restart", we "resume". Also, better to say + "partially-downloaded file" rather than just "existing file". 2001-01-06 Dan Harkless @@ -6705,13 +7071,13 @@ 2000-11-30 Jan Prikryl - * ftp-ls.c (ftp_parse_unix_ls): Added second parameter - "ignore_perms" to ignore file and directory permissions for - Windows NT FTP server listings. - (ftp_parse_winnt_ls): New function. - (ftp_parse_ls): Parses UNIX and Windows NT listings - separately. Simple heuristics for distinguishing between UNIX - and MS-DOS-like FTP listing provided by Windows NT FTP service. + * ftp-ls.c (ftp_parse_unix_ls): Added second parameter + "ignore_perms" to ignore file and directory permissions for + Windows NT FTP server listings. + (ftp_parse_winnt_ls): New function. + (ftp_parse_ls): Parses UNIX and Windows NT listings + separately. Simple heuristics for distinguishing between UNIX + and MS-DOS-like FTP listing provided by Windows NT FTP service. 2000-11-29 John Summerfield @@ -7212,29 +7578,29 @@ 2000-10-27 Dan Harkless * retr.c (retrieve_url): Manually applied T. Bharath - 's patch to get wget to grok - illegal relative URL redirects. Reformatted and re-commented it. + 's patch to get wget to grok + illegal relative URL redirects. Reformatted and re-commented it. 2000-10-23 Dan Harkless * connect.c (make_connection and bindport): Manually applied Rob - Mayoff 's 1.5.3 patch to add --bind-address, - changing coding style to GNU's. + Mayoff 's 1.5.3 patch to add --bind-address, + changing coding style to GNU's. * ftp.c (ftp_loop_internal): --delete-after wasn't implemented for - files downloaded via FTP. Per a comment, .listing files were not + files downloaded via FTP. Per a comment, .listing files were not counted towards number of bytes and files downloaded because they're deleted anyway. Well, they aren't under -nr, so count them then. * init.c: Manually applied Rob Mayoff's 1.5.3 patch to add - --bind-address, alphabetizing, changing coding style to GNU's, - commenting, and renaming cmd_ip_address() to cmd_address() to - imply hostnames also okay. + --bind-address, alphabetizing, changing coding style to GNU's, + commenting, and renaming cmd_ip_address() to cmd_address() to + imply hostnames also okay. * main.c (main): --delete-after didn't delete the root of the - tree. Ignore --convert-links if --delete-after was specified. - Manually applied Rob Mayoff's 1.5.3 patch to add --bind-address, - fixing duplicate use of added-since-1.5.3 case value. + tree. Ignore --convert-links if --delete-after was specified. + Manually applied Rob Mayoff's 1.5.3 patch to add --bind-address, + fixing duplicate use of added-since-1.5.3 case value. (print_help): Clarified that --delete-after deletes local files. Rob forgot to add a line for his new --bind-address option. @@ -7297,7 +7663,7 @@ * ftp.c (ftp_retrieve_list): Use new INFINITE_RECURSION #define. * html.c: htmlfindurl() now takes final `dash_p_leaf_HTML' parameter. - Wrapped some > 80-column lines. When -p is specified and we're at a + Wrapped some > 80-column lines. When -p is specified and we're at a leaf node, do not traverse , , or tags other than . @@ -7313,8 +7679,8 @@ * options.h (struct options): Added new page_requisites field. * recur.c: Changed "URL-s" to "URLs" and "HTML-s" to "HTMLs". - Calculate and pass down new `dash_p_leaf_HTML' parameter to - get_urls_html(). Use new INFINITE_RECURSION #define. + Calculate and pass down new `dash_p_leaf_HTML' parameter to + get_urls_html(). Use new INFINITE_RECURSION #define. * retr.c: Changed "URL-s" to "URLs". get_urls_html() now takes final `dash_p_leaf_HTML' parameter. @@ -7363,10 +7729,10 @@ 2000-05-22 Dan Harkless * main.c (print_help): Added --help line for Damir Dzeko - 's until-now-undocumented --referer option. - Removed comments that --referer and --waitretry were undocumented. - Changed "`.wgetrc' command" to "`.wgetrc'-style command" on --help - line for --execute. + 's until-now-undocumented --referer option. + Removed comments that --referer and --waitretry were undocumented. + Changed "`.wgetrc' command" to "`.wgetrc'-style command" on --help + line for --execute. 2000-05-18 Hrvoje Niksic @@ -7468,17 +7834,17 @@ braces to avoid ambiguous `else'" warnings. Eliminated them. * http.c (gethttp): Dan Berger's query string patch is totally - bogus. If you have two different URLs, gen_page.cgi?page1 and - get_page.cgi?page2, they'll both be saved as get_page.cgi and the - second will overwrite the first. Also, parameters to implicit - CGIs, like "http://www.host.com/db/?2000-03-02" cause the URLs to - be printed with trailing garbage characters, and could seg fault. - Backing out the patch, which Dan B. informed me by email was just - a kludge to download StarOffice from Sun made necessary due to - wget's unconditional escaping of certain characters (room for an - option there?). + bogus. If you have two different URLs, gen_page.cgi?page1 and + get_page.cgi?page2, they'll both be saved as get_page.cgi and the + second will overwrite the first. Also, parameters to implicit + CGIs, like "http://www.host.com/db/?2000-03-02" cause the URLs to + be printed with trailing garbage characters, and could seg fault. + Backing out the patch, which Dan B. informed me by email was just + a kludge to download StarOffice from Sun made necessary due to + wget's unconditional escaping of certain characters (room for an + option there?). (http_loop): Heiko introduced "suggest explicit braces to avoid - ambiguous `else'" warnings. Eliminated them. + ambiguous `else'" warnings. Eliminated them. * main.c: Heiko's --wait / --waitretry backwards compatibility code looks to have been totally untested -- automatic variable @@ -7540,16 +7906,16 @@ * http.c (http_loop): Fixed a typo and clarified a comment. (http_loop): When -K and -N are specified together, compare size - and timestamp of server file X against local file X.orig (if - extant) rather than converted local file X. + and timestamp of server file X against local file X.orig (if + extant) rather than converted local file X. (http_loop): "Local file '%s' is more recent," is sometimes a lie - -- reworded as "Server file no newer than local file '%s' --". + -- reworded as "Server file no newer than local file '%s' --". (http_loop): Call new downloaded_file() function to prevent wrongful overwriting of .orig file when -N is specified. * url.c (convert_links): When -K specified, only rename X to - X.orig if downloaded_file() returns TRUE. Otherwise when we skip - file X due to -N, we clobber an X.orig from a previous invocation. + X.orig if downloaded_file() returns TRUE. Otherwise when we skip + file X due to -N, we clobber an X.orig from a previous invocation. (convert_links): Call the failsafe xstrdup(), not the real strdup(). (convert_links): Added a note asking anyone who understands how multiple URLs can correspond to a single file to comment it. @@ -7608,7 +7974,7 @@ 1998-09-10 Howard Gayle * url.c (get_urls_html): Would drop the last character of the - link. + link. 1998-09-10 Hrvoje Niksic @@ -7656,7 +8022,7 @@ 1998-06-16 Hrvoje Niksic * url.c (get_urls_html): Use malloc() instead of alloca in the - loop. + loop. 1998-06-13 Hrvoje Niksic @@ -7699,7 +8065,7 @@ 1998-05-27 Hrvoje Niksic * ftp.c (getftp): Added `break'; suggested by Lin Zhe Min - . + . 1998-05-24 Hrvoje Niksic @@ -7734,7 +8100,7 @@ 1998-05-05 Hrvoje Niksic * http.c (parse_http_status_line): Avoid `minor' and `major' - names. + names. 1998-05-02 Hrvoje Niksic @@ -7774,11 +8140,11 @@ (numdigit): Use `while' loop. * http.c (create_authorization_line): Detect authentication - schemes case-insensitively. + schemes case-insensitively. * http.c (extract_header_attr): Use strdupdelim(). (digest_authentication_encode): Move declaration of local - variables to smaller scope. + variables to smaller scope. (digest_authentication_encode): Reset REALM, OPAQUE and NONCE. (create_authorization_line): Detect authentication schemes case-insensitively. @@ -7825,7 +8191,7 @@ * headers.c (header_get): New argument FLAGS. * http.c (gethttp): If request is malformed, bail out of the - header loop. + header loop. (gethttp): Check for empty header *after* the status line checks. (gethttp): Disallow continuations for status line. @@ -7908,7 +8274,7 @@ * utils.c (mkdirhier): Use 0777 instead of opt.dirmode. * init.c (cmd_spec_dotstyle): Use 48 dots per line for binary - style. + style. (cmd_permissions): Removed. * config.h.in: Add template for WORDS_BIGENDIAN. @@ -7969,7 +8335,7 @@ 1998-03-17 Hrvoje Niksic * utils.c (memfatal): Set save_log_p to 0 to avoid potential - infloop. + infloop. * log.c: do_logging -> save_log_p. @@ -8011,7 +8377,7 @@ 1998-03-07 Tim Adam * recur.c (parse_robots): Correctly reset `entries' on empty - disallow. + disallow. 1998-03-07 Hrvoje Niksic @@ -8053,7 +8419,7 @@ * url.c (add_url): Add to the head of the list. * ftp.c (ftp_retrieve_list): Set the permissions to downloaded - file. + file. (getftp): Set the default permissions to 0600. 1998-02-21 Hrvoje Niksic @@ -8132,9 +8498,9 @@ * wget.h (FREE_MAYBE): New macro. * http.c (create_authorization_line): Don't use ANSI C string - concatenation feature. + concatenation feature. (basic_authentication_encode): Use alloca() for temporary - variables. + variables. * recur.h: Ditto. @@ -8159,7 +8525,7 @@ (calculate_skey_response): Use alloca(). * http.c (create_authorization_line): Work with FSF's version of - md5.c. + md5.c. * md5.c: New file, from GNU libc. @@ -8203,7 +8569,7 @@ * ftp.c (ftp_loop): Determine `filename' more precisely. * init.c (setval): Don't set `opt.quiet' if output-document is - `-'. + `-'. * log.c (log_init): Print to STDERR instead of STDOUT. (vlogmsg): Use STDERR by default. @@ -8328,8 +8694,8 @@ * main.c (print_help): Rearranged. (main): New long options for -n* short options: --no-directories, - --no-host-directories, --non-verbose, --no-host-lookup and - --dont-remove-listing. + --no-host-directories, --non-verbose, --no-host-lookup and + --dont-remove-listing. 1998-02-01 Hrvoje Niksic @@ -8338,7 +8704,7 @@ * log.c: New variable LOGFP. (vlogmsg): Use it. (redirect_output): Don't open /dev/null; set LOGFP to stdin - instead. + instead. (log_close): New function. * options.h (struct options): Removed LFILE. @@ -8397,7 +8763,7 @@ * host.c (ftp_getaddress): Use STRDUP_ALLOCA. (ftp_getaddress): Add diagnostics when reverse-lookup yields only - hostname. + hostname. 1998-01-31 Hrvoje Niksic @@ -8408,7 +8774,7 @@ * utils.c (proclist): Pass FNM_PATHNAME to fnmatch(). * ftp-basic.c (ftp_pasv): Avoid unnecessary casting to unsigned - char. + char. * log.c: Don't attempt to hide arguments from ansi2knr. @@ -8421,9 +8787,9 @@ * http.c (gethttp): Use it. * retr.c (get_contents): New argument EXPECTED; pass it to - show_progress(). + show_progress(). (show_progress): New argument EXPECTED; use it to display - percentages. + percentages. * init.c (setval): Ditto. @@ -8465,7 +8831,7 @@ * all: Use them. * sysdep.h: Add wrappers to ctype macros to make them - eight-bit-clean: + eight-bit-clean: 1998-01-30 Hrvoje Niksic @@ -8479,7 +8845,7 @@ 1997-02-27 Fila Kolodny * ftp.c (ftp_retrieve_list): If retrieving symlink and the proper - one already exists, just skip it. + one already exists, just skip it. 1998-01-30 Hrvoje Niksic @@ -8514,7 +8880,7 @@ (haccepts_none): Ditto. * main.c (main): Updated `--version' and `--help' output, as per - Francois Pinard's suggestions. + Francois Pinard's suggestions. * main.c: Include locale.h; call setlocale(), bindtextdomain() and textdomain(). @@ -8580,7 +8946,7 @@ * mswindows.c (ws_hangup): Use redirect_output(). * main.c (redirect_output_signal): New function; use - redirect_output(). + redirect_output(). * log.c (redirect_output): New function, based on hangup(), which is deleted. @@ -8653,7 +9019,7 @@ 1998-01-24 Karl Heuer * netrc.c (search_netrc): Initialize `l' only after processing - netrc. + netrc. * main.c (main): Don't trap SIGHUP if it's being ignored. @@ -8681,7 +9047,7 @@ (buf_fd): Ditto. * http.c (fetch_next_header): Use the BUF_READCHAR macro for - efficiency. + efficiency. (gethttp): Use alloca() where appropriate. * retr.c (buf_readchar): Use it. @@ -8735,7 +9101,7 @@ 1997-12-18 Hrvoje Niksic * all: Renamed nmalloc(), nrealloc() and nstrdup() to xmalloc(), - xrealloc() and xstrdup(). Use the new functions. + xrealloc() and xstrdup(). Use the new functions. * url.c (decode_string): Made static. (has_proto): Ditto. @@ -8841,7 +9207,7 @@ 1997-06-12 Hrvoje Niksic * cmpt.c (strptime_internal): Handle years more correctly for - `%y'. + `%y'. 1997-06-09 Mike Thomas @@ -8908,7 +9274,7 @@ * http.c (check_end): New function. (http_atotm): Use it. - + 1997-02-13 gilles Cedoc * http.c (gethttp): Use them. @@ -8922,10 +9288,10 @@ 1997-02-10 Hrvoje Niksic * recur.c (recursive_retrieve): Lowercase the host name, if the - URL is not "optimized". + URL is not "optimized". * host.c (realhost): Return l->hostname, even if it matches with - host. + host. 1997-02-10 Marin Purgar @@ -8944,15 +9310,15 @@ (skip_proto): Skip `//' correctly for FTP and HTTP. * url.c (get_urls_html): Handle bogus `http:' things a little - different. + different. * main.c (main): Removed `follow-ftp' from `f'. (main): Dumped the `prefix-files' and `file-prefix' options and - features; old and bogus. + features; old and bogus. (main): Exit on failed setval() in `-e'. * http.c (fetch_next_header): Use it to detect header continuation - correctly. + correctly. * retr.c (buf_peek): New function. @@ -9052,7 +9418,7 @@ * url.c (parseurl): New argument STRICT. * http.c (hparsestatline): Be a little-bit less strict about - status line format. + status line format. 1997-01-21 Hrvoje Niksic @@ -9083,24 +9449,24 @@ * version.c: "Released" 1.4.3-pre2. * recur.c (recursive_retrieve): Bypass host checking only if URL - is ftp AND parent URL is not ftp. + is ftp AND parent URL is not ftp. * ftp-basic.c (ftp_request): Print out Turtle Power. * ftp.c (ftp_loop): Call ftp_retrieve_glob with 0 if there's no - wildcard. + wildcard. (ftp_retrieve_glob): Call ftp_loop_internal even on empty list, if - not glob. + not glob. * http.c (gethttp): Be a little bit smarter about status codes. * recur.c (recursive_retrieve): Always reset opt.recursive when - dealing with FTP. + dealing with FTP. 1997-01-18 Hrvoje Niksic * retr.c (retrieve_url): New variable location_changed; use it for - tests instead of mynewloc. + tests instead of mynewloc. (retrieve_url): Allow heuristic adding of html. * url.c (url_filename): Don't use the `%' in Windows file names. @@ -9114,7 +9480,7 @@ * utils.c (my_touch): New function. * ftp.c (ftp_retrieve_list): Use #ifdef HAVE_STRUCT_UTIMBUF - instead of #ifndef NeXT. + instead of #ifndef NeXT. * utils.c (strptime): New version, by Ulrich Drepper. @@ -9129,7 +9495,7 @@ 1997-01-15 Hrvoje Niksic * html.c (ftp_index): Don't print minutes and seconds if we don't - know them; beautify the output. + know them; beautify the output. * ftp.c (getftp): Don't close the socket on FTPNSFOD. @@ -9162,7 +9528,7 @@ (ftp_parse_ls): Moved from ftp.c. (ftp_parse_unix_ls): Recognize seconds in time spec. (ftp_parse_unix_ls): Recognize year-less dates of the previous - year. + year. 1997-01-08 Hrvoje Niksic @@ -9177,7 +9543,7 @@ 1996-12-23 Hrvoje Niksic * url.c: Recognize finger, rlogin, tn3270, mid and cid as valid - schemes. + schemes. 1996-12-22 Hrvoje Niksic @@ -9228,18 +9594,18 @@ 1996-12-17 Hrvoje Niksic * retr.c (retrieve_url): Reset opt.recursion before calling - ftp_loop if it is reached through newloc. + ftp_loop if it is reached through newloc. * init.c (run_wgetrc): Print the wgetrc path too, when reporting - error; don't use "Syntax error", since we don't know if it is - really a syntax error. + error; don't use "Syntax error", since we don't know if it is + really a syntax error. 1996-12-16 Hrvoje Niksic * utils.c (acceptable): Extract the filename part of the path. * recur.c (recursive_retrieve): Call acceptable() with the right - argument; would bug out on wildcards. + argument; would bug out on wildcards. * init.c (parse_line): Likewise. @@ -9259,7 +9625,7 @@ * url.c (parseurl): Debug output. * utils.c (path_simplify): New one, adapted from bash's - canonicalize_pathname(). + canonicalize_pathname(). 1996-12-14 Hrvoje Niksic @@ -9276,7 +9642,7 @@ 1996-12-13 Hrvoje Niksic * init.c: Make excludes and includes under CVECDIR instead of - CVEC. + CVEC. 1996-12-13 Shawn McHorse @@ -9293,7 +9659,7 @@ 1996-12-12 Shawn McHorse * recur.c (retrieve_robots): Print the warning message only if - verbose. + verbose. 1996-12-12 Gregor Hoffleit @@ -9315,24 +9681,24 @@ 1996-12-13 Kaveh R. Ghazi * (configure.in, config.h.in, src/Makefile.in, src/*.[ch]): Add - ansi2knr support for compilers which don't support ANSI style - function prototypes and signatures. + ansi2knr support for compilers which don't support ANSI style + function prototypes and signatures. * (aclocal.m4, src/ansi2knr.c, src/ansi2knr.1): New files. 1996-11-26 Hrvoje Niksic * url.c: Use it; Recognize paths ending with "." and ".." as - directories. + directories. (url_filename): Append .n whenever file exists and could be a - directory. + directory. * url.h (ISDDOT): New macro. * init.c (parse_line): Use unsigned char. * url.c (get_urls_html): Cast to unsigned char * when calling - htmlfindurl. + htmlfindurl. * html.c (htmlfindurl): Use unsigned char. @@ -9345,10 +9711,10 @@ * ftp.c (getftp): Simplified assertion. (ftp_loop_internal): Remove symlink before downloading. (ftp_retrieve_list): Unlink the symlink name before attempting to - create a symlink! + create a symlink! * options.h (struct options): Renamed print_server_response to - server_response. + server_response. * ftp.c (rel_constr): Removed. (ftp_retrieve_list): Don't use it. @@ -9363,12 +9729,12 @@ 1996-11-24 Hrvoje Niksic * http.c (http_loop): Reset newloc in the beginning of function; - would cause FMR in retrieve_url. + would cause FMR in retrieve_url. 1996-11-23 Hrvoje Niksic * recur.c (convert_all_links): Find the URL of each HTML document, - and feed it to get_urls_html; would bug out. + and feed it to get_urls_html; would bug out. (convert_all_links): Check for l2 instead of dl; removed dl. * url.c (convert_links): Don't refer to freed newname. @@ -9388,7 +9754,7 @@ * Makefile.in (wget): Make `wget' the default target. * ftp.c (ftp_loop_internal): Move noclobber checking out of the - loop. + loop. (ftp_retrieve_list): Warn about non-matching sizes. * http.c (http_loop): Made -nc non-dependent on opt.recursive. @@ -9402,7 +9768,7 @@ 1996-11-21 Shawn McHorse * html.c (htmlfindurl): Reset s->in_quote after getting out of - quotes. + quotes. 1996-11-20 Hrvoje Niksic @@ -9421,7 +9787,7 @@ * init.c: New command htmlify. * ftp.c (getftp): Nicer error messages, with `'-encapsulated - strings. + strings. (ftp_loop): Print size of index.html. * init.c (setval): Implement "styles". @@ -9430,14 +9796,14 @@ 1996-11-19 Hrvoje Niksic - * ftp.c (getftp): Close the master socket in case of errors, after - bindport(). + * ftp.c (getftp): Close the master socket in case of errors, after + bindport(). - * connect.c (bindport): Initialize msock to -1. + * connect.c (bindport): Initialize msock to -1. - * ftp.c (getftp): Initialize dtsock to -1. + * ftp.c (getftp): Initialize dtsock to -1. - * connect.c (closeport): Don't close sock if sock == -1. + * connect.c (closeport): Don't close sock if sock == -1. 1996-11-18 Hrvoje Niksic @@ -9455,7 +9821,7 @@ * ftp.c (getftp): Initialize con->dltime. * recur.c (recursive_retrieve): Use same_host instead of - try_robots; simply load robots_txt whenever the host is changed. + try_robots; simply load robots_txt whenever the host is changed. (recursive_retrieve): Free forbidden before calling parse_robots. 1996-11-16 Hrvoje Niksic @@ -9463,12 +9829,12 @@ * retr.c (show_progress): Use them. * options.h (struct options): New options dot_bytes, dots_on_line - and dot_spacing. + and dot_spacing. 1996-11-16 Mark Boyns * recur.c (recursive_retrieve): Retrieve directories regardless of - acc/rej rules; check for empty u->file. + acc/rej rules; check for empty u->file. 1996-11-14 Hrvoje Niksic @@ -9477,12 +9843,12 @@ * utils.c (merge_vecs): New function. * init.c (setval): Reset the list-type functions when encountering - "". + "". 1996-11-14 Shawn McHorse * recur.c (recursive_retrieve): Use base_url instead of this_url - for no_parent. + for no_parent. 1996-11-14 Shawn McHorse @@ -9493,7 +9859,7 @@ * utils.c (sepstring): Rewrote; don't use strtok. * recur.c (recursive_retrieve): Enter assorted this_url to slist - when running the first time. + when running the first time. (retrieve_robots): Warn to ignore errors when robots are loaded. * utils.c (load_file): Moved from url.c. @@ -9513,7 +9879,7 @@ * ftp.c (ftp_retrieve_dirs): Implemented opt.includes. * init.c (setval): Free the existing opt.excludes and - opt.includes, if available. + opt.includes, if available. * main.c (main): New option -I. @@ -9549,7 +9915,7 @@ * http.c (gethttp): Free all_headers -- would leak. * recur.c (recursive_retrieve): Initialize depth to 1 instead of - 0 -- this fixes a long-standing bug in -rl. + 0 -- this fixes a long-standing bug in -rl. 1996-11-09 Hrvoje Niksic @@ -9568,12 +9934,12 @@ 1996-11-08 Hrvoje Niksic * url.c (url_filename): Do not create numbered suffixes if - opt.noclobber -- would bug out on -nc. + opt.noclobber -- would bug out on -nc. 1996-11-07 Hrvoje Niksic * recur.c (parse_robots): Don't chuck out the commands without - arguments (`Disallow:' didn't work). + arguments (`Disallow:' didn't work). (parse_robots): Compare versions lowercase. (parse_robots): Match on base_version, not version_string! (parse_robots): Handle comments properly. @@ -9590,7 +9956,7 @@ * init.c (run_wgetrc): Close fp. * ftp.c (ftp_retrieve_dirs): Allocate the correct length for - u->dir. + u->dir. 1996-11-06 Hrvoje Niksic @@ -9602,12 +9968,12 @@ (ftp_retrieve_glob): Return QUOTEXC on quota exceeded. * main.c (main): Check for quota by comparison with downloaded - stuff, not from status. + stuff, not from status. * connect.c (select_fd): Should compile on HPUX without warnings now. * ftp.c (ftp_get_listing): Check whether ftp_loop_internal - returned RETROK. + returned RETROK. 1996-11-04 Hrvoje Niksic @@ -9623,7 +9989,7 @@ 1996-11-02 Hrvoje Niksic * ftp.c (ftp_loop): Check for opt.ftp_glob too before calling - ftp_retrieve_glob. + ftp_retrieve_glob. * version.c: Changed version to 1.4.0-test2. @@ -9632,7 +9998,7 @@ * version.c: Released 1.4.0-test1. * url.c (str_url): Don't use sprintf when creating %2F-prefixed - directory. + directory. (convert_links): Removed definition of make_backup. * http.h: Removed definition of MAX_ERROR_LENGTH. @@ -9644,7 +10010,7 @@ * http.c (gethttp): Use ou->referer instead of u->referer. * retr.c (retrieve_url): Reset u to avoid freeing pointers twice; - this was known to cause coredumps on Linux. + this was known to cause coredumps on Linux. * html.c (ftp_index): Cast the argument to local_time to time_t *. @@ -9653,14 +10019,14 @@ * connect.c (select_fd): Use exceptfds -- once and for all. * retr.c (retrieve_from_file): Free filename after - recursive_retrieve. + recursive_retrieve. (retrieve_from_file): Send RFIRST_TIME to recursive_retrieve on - first-time retrieval. + first-time retrieval. (retrieve_from_file): Return uerr_t; new argument, count. (retrieve_from_file): Break on QUOTEXC. * init.c (setquota): Fixed a bug that caused rejection of - non-postfixed values.. + non-postfixed values.. 1996-10-30 Hrvoje Niksic @@ -9668,33 +10034,33 @@ * connect.c (iread): Smarter use of select. (select_fd): Set errno on timeout. If not timeout, return 1 - instead of 0. + instead of 0. 1996-10-29 Hrvoje Niksic * ftp.c (ftp_loop_internal): Don't use con->cmd before - establishing it. + establishing it. 1996-10-26 Hrvoje Niksic * http.c (gethttp): Send correct referer when using proxy. (gethttp): Use struct urlinfo ou to access the relevant data; send - correct authorization in all cases. + correct authorization in all cases. * host.c (same_host): Use skip_uname to skip username and - password. + password. * url.c (skip_uname): New function. (parseurl): Use it. * host.c (same_host): Do not assume HTTP -- same_host should now - be totally foolproof. + be totally foolproof. * url.c (skip_proto): New function. (parse_uname): Use it. * http.c (gethttp): Create local user and passwd from what is - given. + given. * url.c (parseurl): Check for HTTP username and password too. @@ -9719,13 +10085,13 @@ * options.h (struct options): New variable no_parent. * recur.c (recursive_retrieve): Only files are checked for - opt.accepts and opt.rejects. + opt.accepts and opt.rejects. (recursive_retrieve): Check directories for opt.excludes. (recursive_retrieve): Make the dir absolute when checking - opt.excludes. + opt.excludes. * html.c (htmlfindurl): Recognize and