X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2FChangeLog;h=5186f0c04bd184b355c60abf9a5750d0da4f15f1;hp=216a810288466f07b229cec4f5b9975c5a4e35ca;hb=1cba1a7659719535800d4fd53d689c9e758babdc;hpb=33d8b23dfd9bbcfd247908d948a22a9783fc060b diff --git a/src/ChangeLog b/src/ChangeLog index 216a8102..5186f0c0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,720 @@ +2011-04-04 Giuseppe Scrivano + + * Makefile.am (LIBS): Remove @LIBSSL@ @W32LIBS@ + +2011-04-03 Giuseppe Scrivano + + * gnutls.c: Include . + (wgnutls_peek): Make the socket non blocking before attempt a read. + + * gnutls.c: Include . + (wgnutls_peek) [F_GETFL]: Use fcntl. + (wgnutls_peek) [! F_GETFL]: Use ioctl. + + +2011-03-31 Giuseppe Scrivano + + * recur.c (download_child_p): When --no-parent is used, check that the + ports are the same only in case the same protocol is used. + Reported by: Karl Berry + + * res.c (res_parse): Add new line to debug messages. + +2011-03-21 Giuseppe Scrivano + + * iri.h (parse_charset) [!ENABLE_IRI]: Use the parameter to avoid a + compiler warning. + + * iri.h: Declare `dummy_iri' as extern not static. + * main.c [!ENABLE_IRI]: Define `dummy_iri'. + (main) [!ENABLE_IRI]: Initialize `dummy_iri'. + +2011-03-11 Giuseppe Scrivano + + * ftp.c (getftp): Fix some memory leaks. + * ftp-ls.c (ftp_parse_winnt_ls): Likewise. + Reported by: Zhenbo Xu . + +2010-11-20 Filipe Brandenburger (tiny change) + + * http.c (gethttp): Repeat a POST request on a 307 response. + * retr.c (retrieve_url): Use NEWLOCATION_KEEP_POST. + * wget.h: Define NEWLOCATION_KEEP_POST. + +2011-03-02 Tomasz Buchert (tiny change) + + * http.c (ensure_extension): Do not adjust the extension if the file + ends in .htm. + +2011-02-22 Gilles Carry + + * main.c (prompt_for_password): Use stderr instead of stdout + to prompt password. This allows to use --output-document=- and + --ask-password simultaneously. Without this, redirecting stdout + makes password prompt invisible and mucks up payload such as in + this example: + wget --output-document=- --ask-password -user=foo \ + http://foo.com/tarball.tgz | tar zxf - + +2011-02-22 Steven Schubiger + + * http.c (gethttp, http_loop): Move duplicated code which is run + when an existing file is not to be clobbered to a function. + (get_file_flags): New static function. + +2010-12-10 Evgeniy Philippov (tiny change) + + * main.c (main): Initialize `total_downloaded_bytes'. + +2010-12-09 Giuseppe Scrivano + + * main.c (main): If --no-clobber and --convert-links are used at the + same time, use only the latter. + Reported by: Romain Vimont + +2010-12-07 Jessica McKellar (tiny change) + + * main.c: Make help message clearer. + +2010-12-02 Giuseppe Scrivano + + * build_info.c.in: Do not list md5. + +2010-12-01 Giuseppe Scrivano + + * cmpt.c: Include inconditionally. + * connect.c: Likewise. + * convert.c: Likewise. + * ftp-basic.c: Likewise. + * ftp-ls.c: Likewise. + * ftp.c: Likewise. + * gnutls.c: Likewise. + * http.c: Likewise. + * init.c: Likewise. + * log.c: Likewise. + * main.c: Likewise. + * openssl.c: Likewise. + * progress.c: Likewise. + * ptimer.c: Likewise. + * recur.c: Likewise. + * retr.c: Likewise. + * url.c: Likewise. + * utils.c: Likewise. + + + * retr.c (fd_read_body): Dinamically allocate `dlbuf'. + +2010-11-27 Reza Snowdon + + * init.c (initialize): If 'ok' is not zero; exit, as this + indicates there was a problem parsing 'SYSTEM_WGETRC'. + Fixes bug #20370. + +2010-11-22 Giuseppe Scrivano + + Revert last commit. + * ftp.c (getftp): When count > 0, don't append to the existing file. + * http.c (gethttp): Likewise. + +2010-11-21 Giuseppe Scrivano + + * ftp.c (getftp): If `count' is bigger than zero, try to resume the + download, not restart it. + * http.c (gethttp): Likewise. + Suggested by: Evgeny Kapun . + +2010-11-19 Giuseppe Scrivano + + * ftp.c (getftp): Accept new argument `count'. When `count' is + bigger than zero, assume the file can be overwritten. + (ftp_loop_internal): Pass new argument `count' to `getftp'. + + * http.c (gethttp): Accept new argument `count'. When `count' is + bigger than zero, assume the file can be overwritten. + (http_loop): Pass new argument `count' to `gethttp'. + Reported by: Evgeny Kapun . + +2010-08-08 Reza Snowdon + + * main.c (main): inserted 'defaults'. + Added additional 'getopt_long' while loop to search and apply a + user specified config file before any other options. + New variables 'retconf', 'use_userconfig', + 'confval', 'userrc_ret', 'config_opt'. + * init.c: Include stdbool.h. + (commands): Added config details. + (defaults): Removed static. + (wgetrc): Removed static. + (initialize): Removed 'defaults ()', + changed 'int ok' to 'bool ok'. + * options.h: New variable 'choose_config'. + * init.h (defaults): exported function. + (run_wgetrc): exported function. + +2010-10-24 Jessica McKellar (tiny change) + + * main.c (main): Print the total download time as part of the + summary for downloads using the recursive or page requisites + options. Fixes bug #21359. + +2010-10-24 Giuseppe Scrivano + + * gnutls.c (wgnutls_peek): Do not return an error when + `gnutls_record_recv' fails but some data is already available. + +2010-10-23 Giuseppe Scrivano + + * Makefile.am (LIBS): Remove @LIBGNUTLS@ and use @W32LIBS@ as last + component. + + * gnutls.c (wgnutls_peek): Block until data is available. + +2010-10-21 Giuseppe Scrivano + + * retr.c (retrieve_url): Do not register HTML files twice. + Reported by: Manfred Koizar . + +2010-10-18 Manfred Koizar (tiny change) + + * html-url.c (tag_handle_link): Do not assume external links type + to be always "text/html". + +2010-10-16 Giuseppe Scrivano + + * connect.c (socket_ip_address): Initialize `sockaddr' to zero. + * ftp-basic.c (ftp_epsv): Remove dead assignment to `s'. + * ftp-ls.c (ftp_parse_vms_ls): Remove dead assignment to `len'. + * http.c (skip_short_body): Remove dead assignment to `ret'. + * init.c (wgetrc_user_file_name): Remove dead assignment to `home'. + * main.c (main): Silent warning reported by clang. + (http_loop): Silent warning reported by clang. + * retr.c (retrieve_url): Likewise. + * url.c (init_seps): Remove dead assignment to `p'. + +2010-10-11 Giuseppe Scrivano + + * ftp.c (getftp): Fix indentation. + +2010-10-11 Steven Schubiger + + * ftp.c (getftp): Initialize `targ'. + +2010-10-08 Ivanov Anton (tiny change) + + * src/html-url.c (check_style_attr): Skip quotes when they are present. + +2010-10-06 Giuseppe Scrivano + + * main.c (main): Remove unused variable `status'. + +2010-09-25 Merinov Nikolay + + * init.c: Add "unlink" command into command list. + * main.c: Add "unlink" option into option_data list. + * options.h: Adding unlink field into struct options. + * wget.h: Addind UNLINKERR error into uerr_t enum. + * exits.c (get_status_for_err): define status for UNLINKERR. + * ftp.c (getftp): unlink file if exists, instead clobbering. + (ftp_loop_internal): processing UNLINKERR. + * http.c (gethttp): unlink file if exists, instead clobbering. + (http_loop): processing UNLINKERR. + +2010-09-24 Dennis, CHENG Renquan + + Fix problem when content-disposition is used with recursive downloading. + * url.h (url_file_name): Add a new argument `replaced_filename'. + * url.c (url_file_name): Likewise. + * http.c (parse_content_disposition): Do not add a prefix to the return + value. + (test_parse_content_disposition): Adjust tests. + (gethttp): Pass additional parameter to `url_file_name'. + (http_loop): Likewise. + * ftp.c (ftp_loop_internal, ftp_get_listing, ftp_retrieve_list) + (ftp_loop): Likewise. + +2010-09-14 Giuseppe Scrivano + + * convert.c (local_quote_string): Accept new parameter `no_html_quote'. + Inhibit HTML quoting when `no_html_quote'. + (convert_links): Disable HTML quoting in CSS files. + Reported by: Manuel Reinhardt . + +2010-09-12 Giuseppe Scrivano + + * main.c (print_help): Align --trust-server-names help text with + the rest of the text. + Suggested by: Mike Frysinger . + +2010-08-20 Giuseppe Scrivano + + * convert.c: Include "iri.h". + (convert_links_in_hashtable): Parse the url, if + necessary, before check if it is present in the dowloaded url + map. + Reported by: . + +2010-08-09 Giuseppe Scrivano + + Fix a problem with HTTP/1.0 proxies. + * http.c (gethttp): Specify the connection header when keep alive + connections are not used. + + Use persistent connections with proxies supporting them. + * http.c (gethttp): Specify Proxy-Connection to the HTTP proxy. + +2010-08-06 Giuseppe Scrivano + + * css-url.c (get_uri_string): Skip empty urls. + +2010-07-25 John Trengrove (tiny change) + + * ftp.h: Added enum `parsetype'. Modified struct to hold parsetype. + + * ftp-ls.c (ftp_parse_unix_ls): Default to TT_DAY. Change to TT_HOUR_MIN + if hours/minutes parsed. + (ftp_parse_winnt_ls): Default to TT_HOUR_MIN. + (ftp_parse_vms_ls): Default to TT_HOUR_MIN. + (ftp_index): Print only if fileinfo struct value ttype set to TT_HOUR_MIN. + +2010-07-30 Giuseppe Scrivano + + * html-url.h (struct map_context): Remove member `tail'. + + * html-url.c (append_url): Append the new url ordered by `position'. + (get_urls_html): Do not initialize `ctx.tail'. + + * css-url.c (get_urls_css_file): Do not initialize `ctx.tail'. + +2010-07-29 Giuseppe Scrivano + + * gnutls.c (wgnutls_peek): Don't read more data if the buffered peek + data is sufficient. + +2010-07-28 Giuseppe Scrivano + + * http.h (http_loop): Add new argument `original_url' + * http.c (http_loop): Add new argument `original_url'. Use + `original_url' to get a filename if `trustservernames' is false. + + * init.c (commands): Add "trustservernames". + + * options.h (library): Add variable `trustservernames'. + + * main.c (option_data): Add trust-server-names. + (print_help): Describe --trust-server-names. + + * retr.c (retrieve_url): Pass new argument to `http_loop'. + +2010-07-20 Alan Jenkins (tiny change) + + * http.c (gethttp): Check content-length was set before trying to + compare it with the already downloded filesize. + +2010-07-20 Leonid Petrov + + * ftp.c (getftp): Don't attempt to retrieve the file if it is already + completely. + (ftp_loop_internal): Force the length to be zero for symlinks. + +2010-07-18 Giuseppe Scrivano + + * http.c (gethttp): If -N is used, don't exit immediately if the content + length is less or equal than the existing file size. Specify "Range" + only if -N is not used. + Reported by: Caleb Cushing . + +2010-07-14 Giuseppe Scrivano + + * ftp.c (max): Remove definition. + (getftp): New variable `got_expected_bytes'. Let `expected_bytes' be + the value SIZE returns, otherwise use the bytes count returned by RETR. + Suggested by Daniel Stenberg . + +2010-07-14 Giuseppe Scrivano + + * ftp.c (max): Add definition. + (getftp): Consider for `expected_bytes' the greatest value between the + bytes count returned by SIZE and the bytes count returned by RETR. + Reported by: Jozua . + +2010-07-11 Giuseppe Scrivano + + * http.c (http_loop): New variable `force_full_retrieve'. If the remote + file is newer that the local one then inhibit -c. + Reported by: Caleb Cushing . + +2010-07-09 Giuseppe Scrivano + + * css-url.c (get_urls_css_file): Use `wget_read_file' instead of + `read_file'. Use `wget_read_file_free' instead of `read_file_free'. + * convert.c (convert_links): Likewise. + * html-url.c (get_urls_html, get_urls_file): Likewise. + * res.c (res_parse_from_file): Likewise. + + * utils.h: Rename `read_file' to `wget_read_file'. Rename + `read_file_free' to `wget_read_file_free'. + + * utils.c (wget_read_file): Renamed from `read_file'. + (wget_read_file_free): Renamed from `read_file_free'. + +2010-07-05 Giuseppe Scrivano + + * gnutls.c (ssl_init): New local variables `ca_directory' and `dir'. + Load default root certificates under the `ca_directory' directory. + +2010-07-03 Giuseppe Scrivano + + * gnutls.c (ssl_connect_wget): New local variable `allowed_protocols'. + Honor the --secure-protocol flag. + +2010-06-20 Giuseppe Scrivano + + * main.c (print_help): Fix help string for --random-wait. Its range is + [0.5*wait, 1.5*wait) not [0, 2*wait). + Reported by: Tom Mizutani . + +2010-06-15 Giuseppe Scrivano + + * gnutls.c [WIN32]: Include "w32sock.h". + (FD_TO_SOCKET): Add definition. + (ssl_connect_wget): Get the real socket handle by FD_TO_SOCKET. + Define FD_TO_SOCKET if it is not yet defined. + +2010-06-14 Giuseppe Scrivano + + * gnutls.c: Include . + (struct wgnutls_transport_context): Remove `peekstart'. + (ssl_connect_wget): Renamed from `ssl_connect'. + (wgnutls_poll): New variable `ctx'. + (wgnutls_read): Don't use `ctx->peekstart'. + (wgnutls_peek): Likewise. Don't attempt to read if there is not + ready data. + +2010-06-14 Giuseppe Scrivano + * http.c (http_loop): Always send a HEAD request when -N is used + together with --content-disposition. + Reported by: Jochen Roderburg . + +2010-06-10 Muthu Subramanian K (tiny change) + + * http.c (http_loop): Increase `total_downloaded_bytes' by + `hstat.rd_size', not `hstat.len'. + +2010-06-10 Giuseppe Scrivano + + * main.c (print_version): Drop the current maintainer line. + +2010-06-10 Giuseppe Scrivano + + * Makefile.am (build_info.c): Generate the `build_info.c' file under + the build directory. + Patch by: Daniel Stenberg . + +2010-06-03 Giuseppe Scrivano + + * http.c (http_loop): Do not send a HEAD request before the GET request + when --content-disposition is used. + Reported by: alex_wh@mail.ru. + +2010-05-31 Giuseppe Scrivano + + * css.l: Use option "nounput". + (YY_NO_INPUT): Add macro definition. + +2010-05-31 Giuseppe Scrivano + + * html-parse.c (map_html_tags): Fix condition for closed tag. Handle + the case '>' is not specified after '/'. + +2010-05-31 Giuseppe Scrivano + + * sysdep.h (_SVID_SOURCE): Remove definition. + (_BSD_SOURCE): Remove definition. + +2010-05-31 Giuseppe Scrivano + + * recur.c (retrieve_tree): Remove variable `up_error_code'. + + * iri.c (open_locale_to_utf8): Remove function. + +2010-05-30 Giuseppe Scrivano + + * html-parse.c (NAME_CHAR_P): Consider '<' an invalid character. + (advance_declaration): Close the tag if '<' is found. + (map_html_tags): Likewise. + +2010-05-27 Giuseppe Scrivano + + * main.c (print_usage): Accept a new parameter `error'. + (main): Print diagnostic messages to stderr, not stdout. + +2010-05-27 Giuseppe Scrivano + + * Makefile.am (wget_SOURCES): Remove `snprintf.c'. + + * snprintf.c: Remove file. + +2010-05-27 Giuseppe Scrivano + + * main.c (main): Exit with failure when -k is specified and -O is not + a regular file. + +2010-05-27 Giuseppe Scrivano + + * http.c (gethttp): Consider new cookies retrieved when the + authorization fails. + +2010-05-25 Giuseppe Scrivano + + * host.c (sufmatch): Do not consider zero length entries. + + * http.c (H_10X): New macro. + (gethttp): Silently ignore 1xx responses. + +2010-05-24 Giuseppe Scrivano + + * iri.h (dummy_iri): Define static. + + * css-tokens.h (css_tokens): Remove variable. + +2010-05-23 Giuseppe Scrivano + + * http.c (http_atotm): Count the NUL character when copying the locale + string. + Reported by: Florian Weimer + +2010-05-16 Giuseppe Scrivano + + * Makefile.am (LDADD): Remove MD5_LDADD. + (MD5_LDADD): Remove definition. + (AM_CPPFLAGS): Remove MD5_CPPFLAGS. + (version.c): Remove dependency from MD5_LDADD. + (../md5/libmd5.a): Remove rule. + + * ftp-opie.c: Include "md5.h". Do not include "gen-md5.h". + (skey_response): New variable ctx. Use md5 functions from the gnulib + module instead of functions defined previously in the "gen-md5.h" file. + + * gen-md5.h: Remove file. + * gen-md5.c: Likewise. + + * http.c: Include "md5.h". Do not include "gen-md5.h". + (digest_authentication_encode): New variable ctx. Use md5 functions + from the gnulib module instead of functions defined previously in the + "gen-md5.h" file. + +2010-05-15 Giuseppe Scrivano + + * Makefile.am: Quote any path using $(top_srcdir) or $(top_builddir). + (version.c): Remove dependency from configure.ac and Makefile.am. + + * css.l: Include "wget.h". + +2010-05-08 Giuseppe Scrivano + + * Makefile.am: Update copyright years. + + * cmpt.c: Likewise. + + * connect.h: Likewise. + + * convert.c: Likewise. + + * convert.h: Likewise. + + * cookies.c: Likewise. + + * cookies.h: Likewise. + + * css-tokens.h: Likewise. + + * css-url.c: Likewise. + + * css-url.h: Likewise. + + * css.l: Likewise. + + * exits.c: Likewise. + + * exits.h: Likewise. + + * ftp-basic.c: Likewise. + + * ftp-ls.c: Likewise. + + * ftp-opie.c: Likewise. + + * ftp.c: Likewise. + + * ftp.h: Likewise. + + * gen-md5.c: Likewise. + + * gen-md5.h: Likewise. + + * gettext.h: Likewise. + + * gnutls.c: Likewise. + + * hash.c: Likewise. + + * hash.h: Likewise. + + * host.c: Likewise. + + * host.h: Likewise. + * html-parse.c: Likewise. + + * html-parse.h: Likewise. + + * html-url.c: Likewise. + + * html-url.h: Likewise. + + * http-ntlm.c: Likewise. + + * http-ntlm.h: Likewise. + + * http.c: Likewise. + + * http.h: Likewise. + + * init.c: Likewise. + + * init.h: Likewise. + + * iri.c: Likewise. + + * iri.h: Likewise. + + * log.c: Likewise. + + * log.h: Likewise. + + * main.c: Likewise. + + * mswindows.c: Likewise. + + * mswindows.h: Likewise. + + * netrc.c: Likewise. + + * netrc.h: Likewise. + + * openssl.c: Likewise. + + * options.h: Likewise. + * progress.c: Likewise. + + * progress.h: Likewise. + + * ptimer.c: Likewise. + + * ptimer.h: Likewise. + + * recur.c: Likewise. + + * recur.h: Likewise. + + * res.c: Likewise. + + * res.h: Likewise. + + * retr.c: Likewise. + + * retr.h: Likewise. + + * spider.c: Likewise. + + * spider.h: Likewise. + + * ssl.h: Likewise. + + * sysdep.h: Likewise. + + * test.c: Likewise. + + * test.h: Likewise. + + * url.c: Likewise. + + * url.h: Likewise. + + * utils.c: Likewise. + + * utils.h: Likewise. + + * wget.h: Likewise. + +2010-05-07 Giuseppe Scrivano + + * gnutls.c (wgnutls_close): Use always `close', not `closesocket'. + + * openssl.c (openssl_close): Use always `close', not `closesocket'. + (ssl_connect_wget): Get the real socket handle by FD_TO_SOCKET. + Define FD_TO_SOCKET if it is not yet defined. + + * Makefile.am (libunittest_a_CPPFLAGS): Add -I$(top_builddir)/lib. + + * mswindows.h: Always include and . Do not + include . + [! INHIBIT_WRAP]: Remove macro's socket, bind, connect, accept, recv, + send, select, getsockname, getpeername, setsockopt, closesocket. + Remove wrapped_socket, wrapped_bind, wrapped_connect, wrapped_listen, + wrapped_accept, wrapped_recv, wrapped_send, wrapped_select, + wrapped_getsockname, wrapped_getpeername, wrapped_setsockopt, + wrapped_closesocket prototypes. + + * mswindows.c: Remove wrapped_socket, wrapped_bind, wrapped_connect, + wrapped_listen, wrapped_accept, wrapped_recv, wrapped_send, + wrapped_select, wrapped_getsockname, wrapped_getpeername, + wrapped_setsockopt, wrapped_closesocket functions. Remove WRAP macro. + + * host.h [WINDOWS]: Include not . + + * connect.c: Include and on any platform, + gnulib ensures they exist. Remove `read', `write', `close' macros. + + * Makefile.am: Copy build_info.c.in only if we are working in a VPATH. + (AM_CPPFLAGS): Add directory with generated gnulib files. + +2010-05-06 Giuseppe Scrivano + + * Makefile.am (build_info.c): Generate build_info.c in the builddir, + not srcdir. + +2010-05-05 Giuseppe Scrivano + + * http.c (gethttp): Give a nicer message on a malformed status line. + +2010-05-04 Giuseppe Scrivano + + * http.c (gethttp): Check `resp_status' return code and handle + errors. + +2010-05-01 Giuseppe Scrivano + + * http.c (request_send): Specify 1.1 as HTTP version for requests. + (skip_short_body): Accept new parameter `chunked'. New variable + `remaining_chunk_size'. Handle the chunked transfer encoding. + (gethttp): New variable `chunked_transfer_encoding`. Set `keepalive' + by default to true. Check if the server is using the chunked transfer + encoding. + + * retr.h: Define `rb_chunked_transfer_encoding'. + + * retr.c (fd_read_body): New variable `chunked'. New variable + `remaining_chunk_size'. Handle the chunked transfer encoding. + +2010-03-04 Steven Schubiger + + * ftp.c (ftp_loop_internal): Omit input file from being + deleted after retrieval. + + * retr.c (input_file_url): New function. + + * retr.h: Add declaration for input_file_url. + 2010-03-02 Steven Schubiger * retr.c (retrieve_from_file): Improve checking for a URL @@ -13,7 +730,7 @@ 2010-03-01 Steven Schubiger - * retr.c (retrieve_url): Retrieve the local filename from ftp_loop. + * retr.c (retrieve_url): Retrieve the local filename from ftp_loop. (retrieve_from_file): Return if there's no input file. * ftp.c (ftp_loop_internal): Duplicate the local filename into @@ -22,7 +739,7 @@ reference to the local filename, elsewhere with NULL. * ftp.h: Adjust declaration of ftp_loop. - + 2010-01-27 Paul Townsend (tiny change) * retr.c (fd_read_body): Be sure to measure timer when time has @@ -163,7 +880,7 @@ 2009-09-08 Steven Schubiger - * main.c, init.c: Mark the --preserve-permissions and + * main.c, init.c: Mark the --preserve-permissions and --html-extension option as deprecated. 2009-09-06 Micah Cowan @@ -235,7 +952,7 @@ (http_loop): Handle newly-created VERIFCERTERR error code. * exits.c, exits.h: Newly added. - + * Makefile.am (wget_SOURCES): Add exits.c and exits.h. 2009-08-27 Micah Cowan @@ -270,7 +987,7 @@ * main.c (option_data): Rename --html-extension to --adjust-extension. (print_help): Ditto. - + * options.h (struct option): Rename html_extension to adjust_extension. * http.c (gethttp): Ditto. @@ -343,7 +1060,7 @@ * 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. @@ -446,9 +1163,9 @@ * 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 @@ -514,10 +1231,10 @@ * host.c: Declare h_errno if no declaration is provided. Idea thanks to Maciej W. Rozycki. -2009-06-11 Xin Zou - +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 @@ -529,7 +1246,7 @@ 2009-05-28 Steven Schubiger - * ftp.c (ftp_get_listing): Update the "listing file" + * ftp.c (ftp_get_listing): Update the "listing file" string after calling ftp_loop_internal(). 2009-05-27 Steven Schubiger @@ -551,7 +1268,7 @@ * 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". @@ -560,14 +1277,14 @@ * 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 + * init.c (initialize): Run a custom SYSTEM_WGETRC when provided as an environment variable. 2009-02-27 Gisle Vanem @@ -584,7 +1301,7 @@ 2009-02-21 Steven Schubiger - * http.c (http_loop): When a document is written to + * 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. @@ -614,7 +1331,7 @@ * 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 @@ -623,7 +1340,7 @@ 2008-11-14 Steven Schubiger - * main.c (format_and_print_line): Use a custom format + * main.c (format_and_print_line): Use a custom format string for printing leading spaces. 2008-11-12 Micah Cowan @@ -675,7 +1392,7 @@ 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, @@ -1020,7 +1737,7 @@ 2008-04-22 Rabin Vincent * ftp.c (ftp_get_listing): Only remove .listing if it has been - created. + created. 2008-04-22 Alain Guibert @@ -1052,7 +1769,7 @@ 2008-04-16 Steven Schubiger - * sysdep.h: Comment the defines __EXTENSIONS__ and _GNU_SOURCE + * sysdep.h: Comment the defines __EXTENSIONS__ and _GNU_SOURCE out, because they're now defined independently by config.h. 2008-04-14 Steven Schubiger @@ -1080,7 +1797,7 @@ * 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 @@ -1312,7 +2029,7 @@ * 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'. @@ -1418,7 +2135,7 @@ 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. @@ -1506,8 +2223,8 @@ 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 + * 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 @@ -1591,7 +2308,7 @@ 2006-10-12 Mauro Tortonesi - * convert.c (downloaded_file): Fixed bug which used to break -E -k -K + * convert.c (downloaded_file): Fixed bug which used to break -E -k -K mode. 2006-08-28 Mauro Tortonesi @@ -1645,7 +2362,7 @@ * init.c (commands): Correctly place "contentdisposition". 2006-07-14 Mauro Tortonesi - + * sysdep.h: If intptr_t isn't defined, simply typedef it to long. * http.c: Added explicit cast to int in logprintf call to remove @@ -1653,12 +2370,12 @@ * connect.c: Added a few casts to intptr_t to remove compiler warnings on 64-bit platforms. - + * main.c: Disable -r, -p and -N when -O is used. Disable -k when -O is used and multiple URLs are given. Update maintainer information. - + * all: Update copyright information. - + 2006-07-10 KJKHyperion * url.c (filechr_table): Mark DEL (0x7f) as a control character @@ -1680,7 +2397,7 @@ non-existing robots.txt as a broken link, and use are_urls_equal instead of strcasecmp for referrer URLs comparison. - * test.c: Call tests routines for are_urls_equal and + * test.c: Call tests routines for are_urls_equal and is_robots_txt_url. 2006-06-26 Hrvoje Niksic @@ -1789,7 +2506,7 @@ of HTTP Content-Disposition header. * init.c: Ditto. - + * main.c: Ditto. 2006-04-11 Hrvoje Niksic @@ -1809,21 +2526,21 @@ testcases for subdir_p and dir_matches_p. * utils.h: Changed all frontcmp occurrences to subdir_p. - + * recur.c: Ditto. - + * test.c: Changed type returned by test functions from char * to const char *. Added test_subdir_p and test_dir_matches_p to the list of tests to run. * http.c (test_parse_content_disposition): Changed return type from - char * to const char *. + char * to const char *. 2006-03-14 Mauro Tortonesi * recur.c (struct queue_element): Changed type of html_allowed member to bool. - + 2006-03-09 Mauro Tortonesi * ftp.c (ftp_list): Try `LIST -a' command first and revert to `LIST' @@ -1900,7 +2617,7 @@ 2005-12-07 Mauro Tortonesi - * http.c: Fixed pre-download verbose output which was broken by + * http.c: Fixed pre-download verbose output which was broken by HTTP code refactoring. 2005-11-23 Mauro Tortonesi @@ -1908,7 +2625,7 @@ * http.c: Refactored HTTP code. If -O is not used, the new code delays the choice of the file name where the downloaded resource will be saved until the HTTP headers have been retrieved. - Added support for Content-Disposition header. + Added support for Content-Disposition header. 2005-11-19 Hrvoje Niksic @@ -1925,9 +2642,9 @@ * Makefile.in: Added basic support for unit testing. * test.c: Ditto. - + * test.h: Ditto. - + 2005-10-13 Daniel Stenberg * http-ntlm.c (ntlm_output): Fixed buffer overflow vulnerability. @@ -3031,13 +3748,13 @@ the new ftppassword, httppassword and proxypassword commands respectively. Document the --user and --password options in the help string. - + 2005-04-27 Mauro Tortonesi * ftp.c: Add support for --user and --password. - + * http.c: Add support for --user and --password. - + * init.c: Deprecated ftppasswd, httppasswd, login, passwd and proxypasswd commands. Added ftppassword, ftpuser, httppassword, password, proxypassword and user commands. @@ -3046,7 +3763,7 @@ --http-password, --password, --proxy-password and --user. Deprecated --http-passwd and --proxy-passwd. Added documentation for new options and removed documentation for deprecated options in the help string. - + * options.h (struct options): Added user and passwd members to handle --user and --password respectively. Renamed ftp_acc and ftp_pass members to ftp_user and ftp_passwd for consistency. @@ -3443,7 +4160,7 @@ 2005-04-04 Mauro Tortonesi * string_t.c: Removed. - + * string_t.h: Removed. 2005-04-02 Hrvoje Niksic @@ -3813,22 +4530,22 @@ * init.c: Renamed command passwd to ftppasswd. 2005-02-11 Mauro Tortonesi - + * string_t.c: Fixed a bug in do_escape and triggered escape of backslashes in string_escape to avoid ambiguities in the result string. - + 2005-02-10 Mauro Tortonesi - * string.h: Renamed to string_t.h to fix a compilation conflict + * string.h: Renamed to string_t.h to fix a compilation conflict with the string.h header in the standard C library. - + * string.c: Renamed to string_t.c for consistency with string.h. - + * string_t.c: Ditto. * string_t.h: Ditto. - + 2004-12-31 Mauro Tortonesi * string.c: New file. @@ -5119,7 +5836,7 @@ before statements. 2003-10-02 Gisle Vanem - + * 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. @@ -6446,9 +7163,9 @@ 2001-12-04 Herold Heiko - * gen_sslfunc.c: on windows provide ssl crypto random + * gen_sslfunc.c: on windows provide ssl crypto random initialization through RAND_screen(); could possibly - be not enough for strong ssl communication (see the + be not enough for strong ssl communication (see the relevant manual page from the openssl package). 2001-12-04 Hrvoje Niksic @@ -6864,7 +7581,7 @@ * retr.c (register_all_redirections): New function. (register_redirections_mapper): Ditto. (retrieve_url): Register the redirections. - (retrieve_url): Make the string "Error parsing proxy ..." + (retrieve_url): Make the string "Error parsing proxy ..." translatable. * res.c (add_path): Strip leading slash from robots.txt paths so @@ -7059,7 +7776,7 @@ * main.c: Remove --wait / --waitretry backwards compatibility code. - + 2001-11-19 Hrvoje Niksic * main.c (main): Use it. @@ -7552,7 +8269,7 @@ 2001-04-10 Jan Prikryl * ftp.c (getftp): Convert initial FTP directory from VMS to UNIX - notation for VMS servers. + notation for VMS servers. (ftp_retrieve_dirs): Do not prepend '/' to f->name when odir is an empty string. @@ -7812,7 +8529,7 @@ * Makefile.in: Include @SSL_INCLUDES@ substition in INCLUDES. Define top_builddir. Link wget with libtool so the user doesn't - have to supply a bunch of custom environment variables to + have to supply a bunch of custom environment variables to correctly link with the OpenSSL shared libraries. 2001-03-06 Hack Kampbjorn @@ -7822,7 +8539,7 @@ * url.c: move the #define of DEFAULT_HTTP_PORT, DEFAULT_FTP_PORT and DEFAULT_HTTPS_PORT to the header file so it can be use in the - rest of the code. + rest of the code. * url.h: Ditto 2001-03-01 Jonas Jensen @@ -7851,29 +8568,29 @@ listing without correct permissons). * ftp.h (stype): Added ST_MACOS to identify the NetPresenz MacOS - FTP server. + FTP server. * ftp.c (ftp_retrieve_list): New mirroring logic: A remote file shall be donwloaded only when it's newer than the local copy or when it has the same timeestamp but its size is different. ST_VMS - and ST_MACOS as special cases that lie about file size. + and ST_MACOS as special cases that lie about file size. * ftp-ls.c (ftp_parse_ls): Support for ST_MACOS. * Makefile.in: Removed dependency on ftpparse library due to unclear - copyright issues and absence of any feedback to our queries. + copyright issues and absence of any feedback to our queries. * ftp-ls.c: Removed dependency on ftpparse library due to unclear - copyright issues and absence of any feedback to our queries. + copyright issues and absence of any feedback to our queries. (ftp_parse_ls): Added a warning message when remote server system - does not seem to be suported by wget. + does not seem to be suported by wget. (ftp_parse_vms_ls): New function for parsing VMS ftp server listing output. (clean_line): New function responsible for removing end-of-line characters from FTP listing texts. * ftp.c (getftp): Global variables pwd and host_type are now - member of the ccon structure under names ccon.id and ccon.rs. + member of the ccon structure under names ccon.id and ccon.rs. * ftp.h (struct ccon): Added formed global variables from ftp.c, enum stype rs (remote system identification) and char *id (initial @@ -7998,7 +8715,7 @@ looking at the dates would make you think that things went into 1.6 that actually just went into the 1.7-dev branch. Added "[Not in 1.6 branch.]" where appropriate to clarify. - + 2000-12-30 Dan Harkless * ftp.c, http.c: Applied Hack Kampbjørn 's @@ -8171,7 +8888,7 @@ * ftp.h (stype): New enum, distinguishes UNIX, VMS, and "other" FTP servers. - * ftp.c: New static wariables host_type, pwd, and pwd_len. + * ftp.c: New static wariables host_type, pwd, and pwd_len. (getftp): Support for VMS. Support for FTP servers that do not place you in the root directory after login. (ftp_retrieve_list): VMS is silent about the real file size, issue @@ -8254,7 +8971,7 @@ * ftp.h (stype): New enum, distinguishes UNIX, VMS, and "other" FTP servers. - * ftp.c: New static wariables host_type, pwd, and pwd_len. + * ftp.c: New static wariables host_type, pwd, and pwd_len. (getftp): Support for VMS. Support for FTP servers that do not place you in the root directory after login. (ftp_retrieve_list): VMS is silent about the real file size, issue @@ -8700,36 +9417,36 @@ * ftp.c (ftp_loop_internal): --delete-after wasn't implemented for files downloaded via FTP. Per a comment, .listing files were not - counted towards number of bytes and files downloaded because they're + 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. - + * 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. (print_help): Clarified that --delete-after deletes local files. Rob forgot to add a line for his new --bind-address option. - + * options.h (struct options): Manually applied Rob Mayoff's patch to add --bind-address (bind_address structure member). - + * recur.c (recursive_retrieve): Improved comment; added DEBUGP(). Ignore --convert-links if --delete-after was specified. - + * retr.c (retrieve_from_file): Just added a DEBUGP(). - + 2000-10-19 Dan Harkless * ftp.c (ftp_loop_internal): downloaded_file() enumerators changed. (getftp): Applied Piotr Sulecki 's patch to work around FTP servers that incorrectly respond to the "REST" command with the remaining size rather than the total file size. - + * http.c (gethttp): Improved a comment and added code to tack on ".html" to text/html files without that extension when -E specified. (http_loop): Use new downloaded_file() enumerators and deal with @@ -8754,13 +9471,13 @@ (downloaded_file): Now takes and returns a downloaded_file_t. * wget.h (unnamed "dt" enum): Added ADDED_HTML_EXTENSION enumerator. - + 2000-10-09 Dan Harkless * html.c (htmlfindurl): Added unneeded initialization to quiet warning. - + * main.c (print_help): Clarified what --retr-symlinks does. - + 2000-09-15 John Daily * init.c: Add support for "always" and "never" values to allow @@ -8772,21 +9489,21 @@ 2000-08-30 Dan Harkless * 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 - leaf node, do not traverse , , or tags other than + Wrapped some > 80-column lines. When -p is specified and we're at a + leaf node, do not traverse , , or tags other than . - + * html.h (htmlfindurl): Now takes final `dash_p_leaf_HTML' parameter. - + * init.c: Added new -p / --page-requisites / page_requisites option. * main.c (print_help): Clarified that -l inf and -l 0 both allow infinite recursion. Changed the unhelpful --mirrior description to simply give the options it's equivalent to. Added new -p option. (main): Added some comments; handle new -p / --page-requisites. - + * options.h (struct options): Added new page_requisites field. * recur.c: Changed "URL-s" to "URLs" and "HTML-s" to "HTMLs". @@ -8802,7 +9519,7 @@ * url.h (get_urls_html): Now takes final `dash_p_leaf_HTML' parameter. * wget.h: Added some comments and new INFINITE_RECURSION #define. - + 2000-08-23 Dan Harkless * main.c (print_help): -B / --base was not mentioned. @@ -8867,11 +9584,11 @@ * host.c (store_hostaddress): R. K. Owen's patch introduces a "left shift count >= width of type" warning on 32-bit architectures. Got rid of it by tricking the compiler w/ a variable. - + * url.c (UNSAFE_CHAR): The macro didn't include all the illegal characters per RFC1738, namely everything above '~'. It also generated a warning on OSes where char =~ unsigned char. Fixed. - + 1998-10-17 Hrvoje Niksic * http.c (http_process_type): Removed needless strdup(), a memory @@ -8919,12 +9636,12 @@ * html.c (idmatch): Implemented checking of my new --follow-tags and --ignore-tags options. - + * init.c (commands): Added comment reminding people adding new entries doing allocation to add corresponding freeing in cleanup(). (commands): Added new followtags and ignoretags commands. (cleanup): Free storage for new followtags and ignoretags. - + * main.c: Use of "comma-separated list" was random -- normalized it. Did some alphabetization. Added comments pointing out "Options without arguments" and "Options accepting an argument" @@ -8933,17 +9650,17 @@ currently undocumented. Added comment that Heiko's --waitretry is partially undocumented (mentioned in --help but not in wget.texi). Moved improperly sorted 24, 129, and 'G' cases. - + * options.h (struct options): Added new fields follow_tags and - ignore_tags. - + ignore_tags. + * wget.h: Added "#define EQ 0" so we can say "strcmp(a, b) == EQ". - + 2000-03-02 Dan Harkless * ftp.c (ftp_loop_internal): Heiko introduced "suggest explicit 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 @@ -8956,19 +9673,19 @@ option there?). (http_loop): Heiko introduced "suggest explicit braces to avoid ambiguous `else'" warnings. Eliminated them. - + * main.c: Heiko's --wait / --waitretry backwards compatibility code looks to have been totally untested -- automatic variable 'wr' was used without being initialized, and a long int was passed into setval()'s char* val parameter. - + * recur.c (parse_robots): Applied Edward J. Sabol 's patch for Guan Yang's reported problem with "User-agent:*" lines in robots.txt. - + * url.c (parseurl, str_url): Removing Dan Berger's code (see http.c above for explanation). - + 1999-08-25 Heiko Herold * ftp.c: Respect new option waitretry. @@ -9009,12 +9726,12 @@ * ftp.c (ftp_loop_internal): Call new downloaded_file() function, even though we don't do conversion on HTML files retrieved via - FTP, so _current_ usage of downloaded_file() makes this call unneeded. + FTP, so _current_ usage of downloaded_file() makes this call unneeded. (ftp_retrieve_list): Added a comment saying where we need to stat() a .orig file if FTP'd HTML file conversion is ever implemented. (ftp_retrieve_list): "Local file '%s' is more recent," is sometimes a lie -- reworded as "Server file no newer than local file '%s' --". - + * 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 @@ -9023,7 +9740,7 @@ -- 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. @@ -9031,7 +9748,7 @@ (convert_links): Added a note asking anyone who understands how multiple URLs can correspond to a single file to comment it. (downloaded_file): Added this new function. - + * url.h (downloaded_file): Added prototype for this new function as well as its downloaded_file_t enum type. @@ -9060,7 +9777,7 @@ 1998-09-21 Hrvoje Niksic - * host.c (ftp_getaddress): Don't warn when reverse-lookup of local + * host.c (ftp_getaddress): Don't warn when reverse-lookup of local address doesn't yield FQDN. 1998-09-21 Andreas Schwab @@ -9101,7 +9818,7 @@ 1998-09-10 Howard Gayle - * ftp.c (ftp_retrieve_list): Don't update the time stamp of a file + * ftp.c (ftp_retrieve_list): Don't update the time stamp of a file not retrieved. 1998-06-27 Hrvoje Niksic @@ -9993,7 +10710,7 @@ * main.c (main): Updated `--version' and `--help' output, as per Francois Pinard's suggestions. - * main.c: Include locale.h; call setlocale(), bindtextdomain() and + * main.c: Include locale.h; call setlocale(), bindtextdomain() and textdomain(). * config.h.in: Define stubs for I18N3.