X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2FChangeLog;h=ae04028d43bfe7c87bbbe528ed8858253c5fefde;hb=f5a5cfad4901ad4bafb29b9f1221c02c47a03ffa;hp=c10b34ce5f9d1ae6b0228289882667e4b8c3ac67;hpb=dc4645031b9bc9a71f3aafa5cb5d014e1ab16857;p=wget diff --git a/src/ChangeLog b/src/ChangeLog index c10b34ce..ec30ceb0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,875 @@ +2009-07-04 Steven Schweda + + * wget.h (ORIG_SFX): Macro added, to supply an alternative "_orig" + suffix on VMS. + + * connect.c, host.c, host.h, main.c: Include "vms_ip.h" rather + than on VMS systems. + + * convert.c (write_backup_file): Use "_orig" rather than ".orig" + on VMS. + + * ftp-basic.c (ftp_list): Don't use LIST -a on VMS servers. + + * ftp.c [__VMS]: Include "vms.h" + * ftp.c (getftp): Disable some unhelpful "for VMS" code. Pass the + OS type to ftp_list. + (getftp) [__VMS]: Alter the filename as required, and invoke fopen + with extra optional arguments. + (ftp_retrieve_list): Set permissions before setting the times. + + * ftp-ls.c [__VMS]: Various improvements. + + * http.c (SET_USER_AGENT): Added. Include operating-system info in + the User-Agent header. + (gethttp): Use ORIG_SFX macro. + (gethttp) [__VMS]: invoke fopen with extra arguments to + communicate file type. + (http_loop): Add cast to time_t. + + * init.c (wgetrc_user_file_name) [__VMS]: Adjustments for where to + find the .wgetrc. + + * log.c: Adjustments to improve handling of log files on VMS. + + * main.c [__VMS]: Added --ftp-stmlf option (and associated + documentation). Adjust description of backup-suffixes, as they now + differ for VMS. + (print_help, print_version): Include OS type in version + information. + (main) [__VMS]: Invoke fopen with extra options, to specify file + type information. + + * netrc.c (search_netrc) [__VMS]: Fix .netrc-finding. + + * openssl.c, openssl.h (ssl_connect_wget): Renamed from ssl_connect. + + * options.h (struct options): Add ftp_stmlf field. + + * retr.c (write_data) [__VMS]: Avoid fflush. + + * url.c [__VMS]: Include vms.h. + * url.c (url_file_name) [__VMS]: Handle naming as required for VMS. + + * utils.c [__VMS]: Include vms.h. Various added facilities for VMS + needs. + +2009-07-04 Micah Cowan + + * main.c (print_version): Allow localization of the version-info + labels, eschew attempts at alignment (which is complicated when + handling translated strings), and avoid using printf() with + variable-stored format strings that lack conversion + specifications. + (format_and_print_line): For similar reasons, don't calculate + line-continuation tabulation based on the number of bytes in a + string. + +2009-07-04 Steven Schubiger + + * url.c (url_parse): If an URL scheme is invalid, distinguish + between an unsupported or missing scheme. + + * url.c: Add a "missing scheme" entry to parse_errors. + +2009-07-03 Micah Cowan + + * iri.h (iri_dup): Provide macro definition for when IRIs are + disabled. + + * Makefile.am (LIBS): Added @LIBICONV@. + (wget_SOURCES): Added iri.h. + (EXTRA_wget_SOURCES): Added iri.c, so it gets packaged even if IRI + support was disabled. + +2009-07-02 Micah Cowan + + * recur.c (url_enqueue): Quote enqueue/dequeue debug messages. + + * html-url.c (append_url): Change "merge()" quoting style from + locale_quoting_style to escape_quoting_style. + +2009-07-01 Micah Cowan + + * retr.c (retrieve_url): Use the existing "redirect" label, + instead of superfluous "second_try". Removed no-longer-accurate + debug statement. Use the "newloc" parameter to store the fallback + URL, when IRI version was rejected. + + * recur.c (retrieve_tree): Always use the parsed URL for tracking + the Referer, since that's the one we actually requested (if + there's a difference in terms of percent-encodings and such). + +2009-07-01 Steven Schubiger + + * Makefile.am: Add a rule to generate build_info.c and list + the build_info.c.in file in EXTRA_DIST. Adjust elsewhere + where needed. + + * build_info.c: Remove this static source file. + + * build_info.c.in: Data for generation of build_info.c. + +2009-06-29 Micah Cowan + + * html-url.c (append_url): Quote some more arguments that might + contain characters that are inappropriate to display for the + current locale. + + * retr.c (retrieve_from_file): Be sure to pass iri information + when parsing an input-fle url, and be sure to hand a clean iri + struct, off to retrieve_tree and retrieve_url. + + * iri.c, iri.h (iri_dup): Added. + + * retr.c (retrieve_url): Re-parse for IRI fallback. + + * main.c (main): Set up iri before the url_parse invocation (so we + can use it). + +2009-06-20 Jay Krell + + * sysdep.h (_ALL_SOURCE): (small change) Define the _ALL_SOURCE + macro on INTERIX systems. (I switched the location from ftp.c to + sysdep.h --mjc) + +2009-06-15 Micah Cowan + + * ftp.c (getftp): If we can't accept the connection, return + CONERROR, not whatever the contents of err happens to be. Fixes + bug #25015. + + * retr.c (fd_read_body): Make both args to progress_create + consistent, resulting in an accurate progress display. Fixes bug + #24948. + +2009-06-14 Micah Cowan + + * Makefile.am (wget_SOURCES): css-tokens.h needs to ship with + dist, too. + +2009-06-13 Micah Cowan + + * init.c: Rename setval_internal_wrapper to setval_internal_tilde, + ensure we don't "replace" the tilde unless it's actually + present. Clean up some minor GNU style issues. + +2009-06-13 Julien Pichon + + * init.c: Handle tilde-expansion in wgetrc commands, without + resorting to setting/unsetting globals to change behavior in one + call location. + +2009-06-12 Micah Cowan + + * host.c: Include before . Not + required by POSIX any more, but some older systems (such as + FreeBSD 4.1) still need it, and it doesn't seem like it could + hurt... + + * build_info.c (library): Handle "https" as a feature in its own + right, apart from "gnutls" and "openssl". + + * host.c: Declare h_errno if no declaration is provided. Idea + thanks to Maciej W. Rozycki. + +2009-06-11 Xin Zou + + * http.c (gethttp): Fix some memory leaks. + +2009-06-11 Micah Cowan + + * http.c (http_atotm): Handle potential for setlocale's return + value to be static storage. Thanks to Benjamin Wolsey + . + + * sysdep.h: Need NAMESPACE_TWEAKS on non-Linux glibc-based + systems, too. Thanks to Robert Millan. + +2009-05-28 Steven Schubiger + + * ftp.c (ftp_get_listing): Update the "listing file" + string after calling ftp_loop_internal(). + +2009-05-27 Steven Schubiger + + * ftp.c (ftp_get_listing): Duplicate the "listing file" + string to avoid memory corruption when FOPEN_EXCL_ERR is + encountered. + +2009-05-17 Steven Schubiger + + * progress.c (eta_to_human_short): Fix the remaining hours + to be displayed. Spotted by Tadeu Martins (#26411). + +2009-04-24 Micah Cowan + + * hash.c: Change stdint.h inclusion to use HAVE_STDINT_H, not C99 + check. + + * connect.c: stdint.h inclusion added. + + Thanks to Markus Duft for a similar patch. + +2009-04-20 Micah Cowan + + * Makefile.am (version.c): Fix unportable use of "echo -n". + +2009-04-13 Steven Schubiger + + * ftp.c (ftp_retrieve_list): Move the duplicated code that + determines the local file to a function. + + * http.c (http_loop): Likewise. + + * retr.c (set_local_file): New function. + +2009-04-11 Steven Schubiger + + * init.c (initialize): Run a custom SYSTEM_WGETRC when + provided as an environment variable. + +2009-02-27 Gisle Vanem + + * main.c (main): "freopen (NULL,.." causes an assertion in MSVC + debug-mode. I.e. NULL isn't legal. But the "CONOUT$" device works + fine. + +2009-02-27 Steven Schubiger + + * ftp.c (ftp_loop_internal): Don't claim for FTP retrievals + when writing to standard output either that the document + has been saved. Addresses bug #20520 again. + +2009-02-21 Steven Schubiger + + * http.c (http_loop): When a document is written to + standard output, don't claim it has been saved to a file. + Addresses bug #20520. + +2009-02-18 Steven Schubiger + + * recur.h: Remove the dangling declaration for recursive_cleanup(). + +2009-02-01 Gerardo E. Gidoni + + * main.c, recur.c, recur.h, res.c, retr.c, retr.h: restructured code to + avoid multiple 'url_parse' calls. + +2008-11-13 Micah Cowan + + * http.c (gethttp): Don't do anything when content-length >= our + requested range. + +2008-11-27 Saint Xavier + + * http.c (gethttp): Move authentication code before filename + allocation avoiding fallbacking on default filename because + "Content-Disposition" header wasn't present before authentcation + has been completed. Fixes bug #24862. + +2008-11-16 Steven Schubiger + + * main.c: Declare and initialize the numurls counter. + + * ftp.c, http.c: Make the counter visible here and use it. + + * options.h: Remove old declaration from options struct. + +2008-11-15 Steven Schubiger + + * init.c (defaults): Set default waitretry value. + +2008-11-14 Steven Schubiger + + * main.c (format_and_print_line): Use a custom format + string for printing leading spaces. + +2008-11-12 Micah Cowan + + * ftp-ls.c (ftp_index): HTML-escape dir name in title, h1, a:href. + +2008-11-12 Alexander Belopolsky + + * url.c, url.h (url_escape_unsafe_and_reserved): Added. + + * ftp-ls.c (ftp_index): URL-escape, rather than HTML-escape, the + filename appearing in the link. + +2008-11-12 Steven Schubiger + + * main.c (print_version): Hand the relevant + xstrdup/xfree calls back to format_and_print_line(). + +2008-11-11 Steven Schubiger + + * main.c (format_and_print_line): Move both the memory + allocating and freeing bits upwards to print_version(). + +2008-11-10 Saint Xavier + + * http.c: Make --auth-no-challenge works with user:pass@ in URLs. + +2008-11-05 Micah Cowan + + * ftp.c (print_length): Should print humanized "size remaining" + only when it's at least 1k. + +2008-10-31 Micah Cowan + + * main.c (print_version): Add information about the mailing list. + +2008-10-31 Alexander Drozdov + + * retr.c (fd_read_hunk): Make assert deal with maxsize == 0. + + * ftp-ls.c (clean_line): Prevent underflow on empty lines. + +2008-10-26 Gisle Vanem + + * main.c (format_and_print_line): Put variables on top of + blocks (not all compilers are C99). Add an extra '\n' if + SYSTEM_WGETRC isn't defined and printed. + +2008-09-09 Gisle Vanem + + * url.c (url_error): Use aprintf, not asprintf. + +2008-09-09 Micah Cowan + + * init.c (home_dir): Save the calculated value for home, + to avoid duplicated work on repeated calls. + (wgetrc_file_name) [WINDOWS]: Define and initialize home var. + + * build_info.c, main.c: Remove unnecessary extern vars + system_wgetrc and locale_dir. + + * main.c: Define program_name for lib/error.c. + +2008-09-02 Gisle Vanem + + * mswindows.h: Must ensure is included before + we redefine ?vsnprintf(). + +2008-08-08 Steven Schubiger + + * main.c, utils.h: Removed some dead conditional DEBUG_MALLOC code. + +2008-08-03 Micah Cowan + + * main.c (print_help): Added --default-page. + +2008-08-01 Joao Ferreira + + * init.c, main.c, options.h, url.c: Added option --default-page + to support alternative default names for index.html + +2008-08-03 Micah Cowan + + * build_info.c, css-url.c: #include wget.h, not config.h. + +2008-08-03 Steven Schubiger + + * url.c, url.h (url_error): Better messages for unsupported + schemes, especially https. + + * html-url.c, recur.c, retr.c: Adjust to new url_error + invocation, and free result. + +2008-07-17 Steven Schubiger + + * retr.c (retrieve_from_file): When given an URL as input file, + use it as baseref if none was specified and treat the input file + as HTML if its content type is text/html. + + * init.c (cleanup): Free the memory associated with the base + option (when DEBUG_MALLOC is defined). + +2008-07-02 Xavier Saint + + * iri.c, iri.h : New function idn_decode() to decode ASCII + encoded hostname to the locale. + + * host.c : Show hostname to be resolved both in locale and + ASCII encoded. + +2008-06-28 Steven Schubiger + + * retr.c (retrieve_from_file): Allow for reading the links from + an external file (HTTP/FTP). + +2008-06-26 Xavier Saint + + * iri.c, iri.h : New functions locale_to_utf8() and + idn_encode() adding basic capabilities of IRI/IDN. + + * url.c : Convert URLs from locale to UTF-8 allowing a basic + support of IRI/IDN + +2008-06-25 Steven Schubiger + + * ftp.c (getftp): When spidering a FTP URL, emit a diagnostic + message if the remote file exists. + +2008-06-24 Steven Schubiger + + * http.c (http_loop): Replace escnonprint() occurence with + a quotearg_style() call. + +2008-06-24 Micah Cowan + + * ftp-ls.c (ftp_index): Don't assume time_t* is compatible with + long*. Fixes crash on Windows, and probably other systems. + +2008-06-22 Steven Schubiger + + * http.c: Explicitly initialize and deallocate the message + string used by the -nv --spider functionality. + +2008-06-22 Steven Schubiger + + * http.c: Make -nv --spider include the file's name when it + exists. + +2008-06-22 Micah Cowan + + * Makefile.am (version.c): Fixed version string invocation so it + once again can't result in unterminated strings, made all the + string vars pointers-to-const, and moved line lengths + below 80 (in Makefile.am, not in version.c). + +2008-06-19 Xavier Saint + + * iri.c, iri.h : New function check_encoding_name() as + a preliminary encoding name check. + + * main.c, iri.c : Make use of check_encoding_name(). + +2008-06-19 Xavier Saint + + * iri.c : Include missing stringprep.h file and add a + cast. + + * init.c : set a default initial value for opt.enable_iri, + opt.locale and opt.encoding_remote. + +2008-06-19 Xavier Saint + + * iri.c, iri.h : Add a new function find_locale() to find + out the local system encoding. + + * main.c : Make use of find_locale(). + +2008-06-19 Xavier Saint + + * html-url.c : Add "content-type" meta tag parsing for + retrieving page encoding. + + * iri.h : Make no-op version of parse_charset() return + NULL. + +2008-06-16 Micah Cowan + + * http.c (http_loop): When hstat.len is higher than the + successfully completed content's length, but it's because we + _set_ it that way, don't abort. + +2008-06-14 Xavier Saint + + * iri.c, iri.h : New files. + + * Makefile.am : Add files iri.h and conditional iri.c. + + * build_info.c : Add compiled feature "iri". + + * http.c : include iri.h and parse charset from Content-Type + header. + + * init.c, main.c, options.h : if an options isn't supported + at compiled time, don't get rid off it and show a dummy + message instead if they are used. + +2008-06-13 Micah Cowan + + * build_info.c: ENABLE_NTLM, not HAVE_NTLM; distinguish OpenSSL + from "ssl". + +2008-06-13 Madhusudan Hosaagrahara + + * Makefile.am, main.c, init.c, init.h, build_info.c: Adds build + information to the --version command line option. Fixes bug + #20636. + +2008-06-01 Micah Cowan + + * main.c [WINDOWS]: Reopen stdout in binary mode, when -O - is + given. + +2008-05-31 Micah Cowan + + * html-url.c, http.c: Avoid casts in a couple spots. + +2008-05-30 Henri Häkkinen + + * cookies.c, ftp-basic.c, hash.c, html-url.c, http-ntlm.c, http.c, + init.c, log.c, main.c, progress.c, ptimer.c, spider.c, url.c, + utils.c: Minor changes to silence warnings when using -Wall. + +2008-05-26 Steven Schubiger + + * ftp.c (getftp): Replace last remaining invocation of escnonprint + with gnulib quote. + +2008-05-19 Micah Cowan + + * main.c (main): Password prompt should be done only once (not + once per argument), and should be done prior to the background + fork. + +2008-05-17 Steven Schubiger + + * init.c (defaults): Set the preferred IP family to `none' by + default. + +2008-05-17 Kenny Parnell + + (cmd_spec_prefer_family): Initialize prefer_family to prefer_none. + +2008-05-17 Micah Cowan + + * main.c (main): Handle Ctrl-D on command-line. + +2008-05-15 Steven Schubiger + + * ftp.c (getftp): Verify that the file actually exists in FTP, by + checking it against the listing. + +2008-05-15 Micah Cowan + + * main.c (prompt_for_password): Use the quote module. + +2008-05-14 Micah Cowan + + * ftp.c (ftp_retrieve_list): Symlinks and other filenames + should be fully quoted. + +2008-05-12 Micah Cowan + + * main.c (main): Downgrade "-N with -O" to a warning, and switch + it off to avoid confusing messages. + +2008-04-30 Micah Cowan + + * progress.c (create_image): Fix glitch where too many spaces are + printed on lines that don't display the ETA, in multibyte + locales. + +2008-04-30 Steven Schubiger + + * main.c (main): New code that handles prompting for passwords + when specified explicitly via command-line option (using gnulib's + getpass-gnu module). + (main): Include the getpass header. + + * init.c: Add "ask-password" to the list of recognized commands. + + * options.h: Add an according boolean member to the options + struct. + + * sysdep.h: Comment the defines __EXTENSIONS__ and _GNU_SOURCE + out, because they're now defined independently by config.h. + +2008-04-27 Rabin Vincent + + * http.c (http_loop): Fix return for the case where we don't + download a file because of -nc. + +2008-04-27 Micah Cowan + + * url.c (path_simplify): Go back to allowing leading ".." in + paths, but only for FTP URLs. + (test_path_simplify): Add scheme-specificness to tests, adapt for + mu_run_test. + + * test.c (all_tests): Add test_path_simplify. + + * main.c (main): Downgrade -r, -p with -O to a warning rather than + an error; elaborate just a bit more for other -O combination + cases. + +2008-04-26 Micah Cowan + + * http.c (gethttp): Move proxy CONNECT handling to below the + retry_with_auth label, to deal with properly reconnecting to + proxies when we need to authenticate. + +2008-04-25 Micah Cowan + + * Makefile.am: -I foo -> -Ifoo. + +2008-04-24 Micah Cowan + + * main.c: Revised usage description of --convert-links to apply + to CSS as well as to HTML. + +2008-04-23 Micah Cowan + + * utils.c (test_dir_matches_p): Added a test for the case + described in issue #20518. + +2008-04-22 Micah Cowan + + * Makefile.am, css.lex, css.l: Renamed css.lex to css.l. + * recur.c (retrieve_tree): Fix typo to allow text/css files to + be parsed. + +2008-04-22 Ted Mielczarek + + * css.lex, css-url.c, css-url.h: Added to implement support for + parsing CSS in Wget. + * convert.c: Convert links in CSS files, too. + * convert.h (convert_options): Added for options link_css_p, + link_expect_css. + * convert.h: Added prototype for new register_css function. + * html-parse.c: Added support for parsing element content, in + addition to tag starts and ends. + * html-parse.h (taginfo): Added delimiter fields for element + content. + * html-url.h: Added. + * html-url.c (append_url): No longer internal-linkage only. Now + takes position and size as explicit parameters. + * html-url.c: Use new html-url.h header, add support for + handling of "style" HTML attributes. Mark URIs obtained from + link tags with rel="stylesheet" with link_expect_css. Adapt + uses of append_url to supply the newly-added parameters for + position and size. + * http.c: Add detection for when the content-type is text/css; + and ensure that such files have the ".css" filename extension, + when --convert-links is active. + * recur.h: Remove declarations for functions found in + html-url.c (moved to html-url.h). + * recur.c: Add support for culling links from CSS files, too, + and tracking for when we're expecting the file to be CSS (even + when its content type isn't text/css). + * retr.c (retrieve_url): Add registration of CSS files. + * wget.h: Added TEXTCSS to dt flags enum. + * Makefile.am: Added css.lex, css-url.c, css-url.h, html-url.h + to wget_SOURCES. + +2008-04-22 Jim Paris + + * openssl.c (ssl_init): Enable combined certificate/key in + single file (apparent regression from ~1.9). Resolves issue + #22767. + +2008-04-22 Steven Schubiger + + * http.c (print_response_line): Changed to make responses always + be logged, even in --quiet mode, if --server-response was + specified. This is to bring http.c's handling of the situation + in line with ftp.c's. + +2008-04-22 Pranab Shenoy + + * init.c: Added test_commands_sorted unit test to check is + commands are sorted. Fixes bug #21245. + + * test.c: Added test_commands_sorted to the test suite. + +2008-04-22 Rabin Vincent + + * ftp.c (ftp_get_listing): Only remove .listing if it has been + created. + +2008-04-22 Alain Guibert + + * test.h (mu_run_test): Move declaration before statements, for + C90 conformance. Fixes bug #22789. + +2008-04-22 Mike Frysinger + + * Makefile.am: Move @LIBS@ after other libraries, for better + static-linking support. Fixes bug #22143. + +2008-04-16 Steven Schubiger + + * ftp.c: Use Gnulib's quote function for printing filenames and + such. + * connect.c: Likewise. + * convert.c: Likewise. + * cookies.c: Likewise. + * ftp-opie.c: Likewise. + * gnutls.c: Likewise. + * init.c: Likewise. + * log.c: Likewise. + * mswindows.c: Likewise. + * openssl.c: Likewise. + * progress.c: Likewise. + * recur.c: Likewise. + * res.c: Likewise. + * utils.c: Likewise. + +2008-04-16 Steven Schubiger + + * sysdep.h: Comment the defines __EXTENSIONS__ and _GNU_SOURCE + out, because they're now defined independently by config.h. + +2008-04-14 Steven Schubiger + + * http.c: Use Gnulib's quote function for printing filenames and + such. + * wget.h: #include "quote.h". + +2008-04-12 Rabin Vincent + + * mswindows.c (fake_fork_child): Don't create a logfile for + --background when --quiet is used, but not --server-response. + Fixes bug #20917. + + * utils.c (fork_to_background): Likewise. + +2008-04-12 Micah Cowan + + * utils.c (aprintf): Minor formatting changes to Alex's code (80- + column limit, concatenated string literals, avoiding nesting + levels), and removed invocation of free (since we're aborting + anyway). + +2008-04-11 Alexander Dergachev + + * utils.c (aprintf): Now we are setting limits (1 Mb) for text + buffer when we use non-C99 vsnprintf. + +2008-04-11 Micah Cowan + + * ftp.c (getftp, ftp_loop_internal): Don't append to an existing + .listing when --continue is used. Fixes bug #22825. Thanks to + Rabin Vincent for pointing the way with a + suggested fix! + +2008-04-10 Alexander Dergachev + + * xmalloc.c, xmalloc.h (memfatal): Now exported; accepts an + "unknown" value for the attempted allocation size. + * utils.c (aprintf): Now calls memfatal, instead of aborting. + +2008-03-19 Micah Cowan + + * utils.c (test_dir_matches_p): More tests related for + dir_matches_p. + +2008-03-17 Micah Cowan + + * connect.c: Include sys/time.h to support use of the select + function on older systems. + +2008-02-11 Benno Schulenberg + + * http.c: More accurate and descriptive messages for when a file + won't be retrieved during spider-mode. + +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 @@ -3906,8 +4778,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. @@ -6621,7 +7493,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. @@ -6629,8 +7501,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 @@ -6714,19 +7586,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 @@ -6747,8 +7619,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 @@ -6756,12 +7628,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 @@ -6969,13 +7841,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 @@ -7476,29 +8348,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. @@ -7561,7 +8433,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 . @@ -7577,8 +8449,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. @@ -7627,10 +8499,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 @@ -7732,17 +8604,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 @@ -7804,16 +8676,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. @@ -7872,7 +8744,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 @@ -7920,7 +8792,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 @@ -7963,7 +8835,7 @@ 1998-05-27 Hrvoje Niksic * ftp.c (getftp): Added `break'; suggested by Lin Zhe Min - . + . 1998-05-24 Hrvoje Niksic @@ -7998,7 +8870,7 @@ 1998-05-05 Hrvoje Niksic * http.c (parse_http_status_line): Avoid `minor' and `major' - names. + names. 1998-05-02 Hrvoje Niksic @@ -8038,11 +8910,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. @@ -8089,7 +8961,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. @@ -8172,7 +9044,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. @@ -8233,7 +9105,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. @@ -8275,7 +9147,7 @@ 1998-03-07 Tim Adam * recur.c (parse_robots): Correctly reset `entries' on empty - disallow. + disallow. 1998-03-07 Hrvoje Niksic @@ -8317,7 +9189,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 @@ -8396,9 +9268,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. @@ -8423,7 +9295,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. @@ -8467,7 +9339,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. @@ -8592,8 +9464,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 @@ -8602,7 +9474,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. @@ -8661,7 +9533,7 @@ * host.c (ftp_getaddress): Use STRDUP_ALLOCA. (ftp_getaddress): Add diagnostics when reverse-lookup yields only - hostname. + hostname. 1998-01-31 Hrvoje Niksic @@ -8672,7 +9544,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. @@ -8685,9 +9557,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. @@ -8729,7 +9601,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 @@ -8743,7 +9615,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 @@ -8778,7 +9650,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(). @@ -8844,7 +9716,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. @@ -8917,7 +9789,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. @@ -8945,7 +9817,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. @@ -8999,7 +9871,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. @@ -9105,7 +9977,7 @@ 1997-06-12 Hrvoje Niksic * cmpt.c (strptime_internal): Handle years more correctly for - `%y'. + `%y'. 1997-06-09 Mike Thomas @@ -9172,7 +10044,7 @@ * http.c (check_end): New function. (http_atotm): Use it. - + 1997-02-13 gilles Cedoc * http.c (gethttp): Use them. @@ -9186,10 +10058,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 @@ -9208,15 +10080,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. @@ -9316,7 +10188,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 @@ -9347,24 +10219,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. @@ -9378,7 +10250,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. @@ -9393,7 +10265,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. @@ -9426,7 +10298,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 @@ -9441,7 +10313,7 @@ 1996-12-23 Hrvoje Niksic * url.c: Recognize finger, rlogin, tn3270, mid and cid as valid - schemes. + schemes. 1996-12-22 Hrvoje Niksic @@ -9492,18 +10364,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. @@ -9523,7 +10395,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 @@ -9540,7 +10412,7 @@ 1996-12-13 Hrvoje Niksic * init.c: Make excludes and includes under CVECDIR instead of - CVEC. + CVEC. 1996-12-13 Shawn McHorse @@ -9557,7 +10429,7 @@ 1996-12-12 Shawn McHorse * recur.c (retrieve_robots): Print the warning message only if - verbose. + verbose. 1996-12-12 Gregor Hoffleit @@ -9579,24 +10451,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. @@ -9609,10 +10481,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. @@ -9627,12 +10499,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. @@ -9652,7 +10524,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. @@ -9666,7 +10538,7 @@ 1996-11-21 Shawn McHorse * html.c (htmlfindurl): Reset s->in_quote after getting out of - quotes. + quotes. 1996-11-20 Hrvoje Niksic @@ -9685,7 +10557,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". @@ -9694,14 +10566,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 @@ -9719,7 +10591,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 @@ -9727,12 +10599,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 @@ -9741,12 +10613,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 @@ -9757,7 +10629,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. @@ -9777,7 +10649,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. @@ -9813,7 +10685,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 @@ -9832,12 +10704,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. @@ -9854,7 +10726,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 @@ -9866,12 +10738,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 @@ -9887,7 +10759,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. @@ -9896,7 +10768,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. @@ -9908,7 +10780,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 *. @@ -9917,14 +10789,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 @@ -9932,33 +10804,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. @@ -9983,13 +10855,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