X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2FChangeLog;h=b4f0e3afb97759a3aa77b47e6f9c075632daf332;hp=ed09202506b1d3bd4561b6a9461ce6d58bea1d14;hb=66bbc5bc63e693899a6db91ad8679ddc7038a3bc;hpb=8c7afaf3bb737e50bf289c2a2d60128425d1426b diff --git a/src/ChangeLog b/src/ChangeLog index ed092025..b4f0e3af 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,369 @@ +2011-08-29 Giuseppe Scrivano + + * gnutls.c (wgnutls_read_timeout): New function. + (wgnutls_read): Use wgnutls_read_timeout. + (wgnutls_peek): Likewise. + +2011-08-27 Giuseppe Scrivano + + * main.c (print_help): Exit with an error status if print to stdout + fails. + (print_usage): Change method signature and return a status code. + (print_version): Likewise. + +2011-08-26 Giuseppe Scrivano + + * gnutls.c: Include "ptimer.h". + (wgnutls_read): Honor read timeout. + + * openssl.c (ssl_init): Make `meth' const. + +2011-08-25 Giuseppe Scrivano + + * utils.c [HAVE_UTIME && HAVE_UTIME_H]: Include . + [HAVE_UTIME && HAVE_SYS_UTIME_H]: Include . + (touch) [HAVE_UTIME: Prefers utime over futimens when it is available. + It was reported that Cygwin has a not working futimens. + +2011-08-19 Giuseppe Scrivano + + * init.c (home_dir) [MSDOS]: Move local variable `len' here. + +2011-08-18 Giuseppe Scrivano + + * http.c (gethttp): Fix a memory leak on some errors. Free the head + buffer. + + * Makefile.am: Use an additional file "css_.c" which in turn includes + "wget.h" and immediately "css.c". + + * http.c (gethttp): Reset chunked_transfer_encoding on redirections. + +2011-08-13 Giuseppe Scrivano + + * retr.c (fd_read_body): Ensure max is not already defined. + + * mswindows.h (snprintf): Remove definition. + (vsnprintf): Likewise. + +2011-08-12 Giuseppe Scrivano + + * css.l: Remove include "wget.h". + Reported by: Perry Smith . + +2011-08-11 Giuseppe Scrivano + + * utils.c (abort_run_with_timeout): Use sigprocmask instead of + sigsetmask. + + * gnutls.c (ssl_connect_wget): Remove call to deprecated function + `gnutls_certificate_type_set_priority'. + + * Makefile.am (version.c): Don't invoke hg to set version string. + +2011-08-10 Giuseppe Scrivano + + Fix a linker error on systems with an older gnutls version. + * gnutls.c (ssl_connect_wget) + [HAVE_GNUTLS_PRIORITY_SET_DIRECT]: Use gnutls_priority_set_direct. + [! HAVE_GNUTLS_PRIORITY_SET_DIRECT]: Use gnutls_protocol_set_priority. + Reported by: Karl Berry + +2011-08-06 Jochen Roderburg + + * host.c (lookup_host): Ensure it doesn't print more IPs than available + ones. + +2011-08-06 Giuseppe Scrivano + + * init.c (defaults): Set default value for show_all_dns_entries. + + * host.c (lookup_host): If `showalldnsentries' is used then print all + the IP corresponding to a DNS entry. + * init.c (commands): Add `showalldnsentries'. + Suggested by: Witold Baryluk + + * http.c (gethttp): Add the Cache-Control HTTP header when --no-cache + is specified. + Reported by: Коренберг Марк . + +2011-08-05 Giuseppe Scrivano + + * utils.c (acceptable): Accept always the file if it is the specified + output destination. + Reported by: Shai Berger + +2011-08-05 Giuseppe Scrivano + + * gnutls.c (ssl_connect_wget): Use `gnutls_priority_set_direct' instead + of the deprecated `gnutls_protocol_set_priority'. + +2011-08-02 Giuseppe Scrivano + + * cookies.c (parse_set_cookie): If the value is quoted, do not modify + it. + Reported by: Nirgal Vourgère + +2011-07-29 Giuseppe Scrivano + + * log.c (logprintf): Exit immediately on a SIGPIPE error. + Reported by: Noèl Köthe . + +2011-07-26 Carlos Martín Nieto (tiny change) + + * init.c (home_dir): Allocate path buffer dinamically. + +2011-07-26 Giuseppe Scrivano + + * retr.c (retrieve_url): Do not register redirects when in spider mode. + +2011-07-20 Merinov Nikolay + + * iri.c (remote_to_utf8): Add test for non-ASCII symbols with + UTF-8 URI encoding. + * res.c (res_retrieve_file): Fix url_parse call. + +2011-06-08 Giuseppe Scrivano + + * retr.c (retrieve_from_file): Parse the url careless if IRI is enabled. + Reported by: Volker Kuhlmann . + +2011-05-24 Giuseppe Scrivano + + * retr.c (fd_read_body): Define max. + +2010-12-28 Adrien Nader (tiny change) + + * main.c [WINDOWS]: Include and . + (main) [WINDOWS]: Set the stdout file mode to binary. + Submitted also by: Martin Panter + +2011-05-23 Giuseppe Scrivano + + * retr.c (fd_read_body): Be sure the buffer size is at least 8Kb. + BUFSIZ may assume very small values with a negative impact on the + performances. + + * mswindows.h [NEED_GAI_STRERROR]: remove definition for gai_strerror. + +2011-05-15 Ray Satiro + + * connect.c (select_fd) [WINDOWS]: Ensure the socket is blocking. + * mswindows.h: Add declaration for set_windows_fd_as_blocking_socket. + * mswindows.c (set_windows_fd_as_blocking_socket): New function. + + * openssl.c (openssl_read): Prevent loops on read errors. + +2011-04-24 Giuseppe Scrivano + + * html-url.c: Include "exists.h". + * gnutls.c (wgnutls_peek): Remove local variable `ret'. + +2011-04-21 Daniel Manrique (tiny change) + * main.c (main): Set exit status when invalid host name given in + command line. + * html-url.c (get_urls_file): Set exit status when invalid host + name given in input file. + +2011-04-19 Giuseppe Scrivano + + * gnutls.c: Do not include . + * gnutls.c (wgnutls_peek): Ensure there is data available before attempt + a read on the blocking socket. + + * Makefile.am (LIBS): Add $(LIB_CLOCK_GETTIME) + * utils.c: Include . Do not include . + (touch): Use `futimens' instead of `utimes'. + + * mswindows.h: Do not include . Remove macro definition for + mkdir. + +2011-04-18 Giuseppe Scrivano + + * utils.c: Include . Do not include . + (touch): Use `utimes' instead of `utime'. + + * openssl.c (openssl_read): Fix build error. + +2011-04-17 Giuseppe Scrivano + + * wget.h [HAVE_LIBSSL32]: Define HAVE_SSL. + + * gnutls.c (wgnutls_peek): Use correctly FIONBIO codes under Mingw32. + Reported by: Ray Satiro + +2011-04-13 Giuseppe Scrivano + + * openssl.c (openssl_poll): Check if the specified timeout is zero after + SSL_pending. + (openssl_peek): Make the call non-blocking. + +2011-04-11 Cristian Rodríguez (tiny change) + + * openssl.c (ssl_init) [! OPENSSL_NO_SSL2]: Use SSLv2 only when + available. + +2011-04-07 Giuseppe Scrivano + + * gnutls.c (ssl_init): Allow X509 v1 certificates. + Suggested by: Ray Satiro + + (wgnutls_peek): Remove tight loop around gnutls_record_recv. + +2011-04-07 Ray Satiro (tiny change) + + (wgnutls_read): Check for the GNUTLS_E_AGAIN return code in the recv + tight loop. + (wgnutls_write): Likewise. + (wgnutls_peek): Likewise. + +2011-04-07 Giuseppe Scrivano + + * gnutls.c (wgnutls_peek): New local variable `read'. + Use `read' instead of `ret' to store the number of read bytes. + Reported by: Ray Satiro + +2011-04-04 Giuseppe Scrivano + + * openssl.c [WINDOWS]: Include . + (openssl_read): Retry the read on SSL_ERROR_WANT_READ. + + * host.c [WINDOWS]: Include and . + Suggested by: Ray Satiro . + + * 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'. @@ -377,149 +743,81 @@ 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, @@ -528,17 +826,13 @@ 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. @@ -1431,7 +1725,7 @@ * html-url.c, http.c: Avoid casts in a couple spots. -2008-05-30 Henri Häkkinen +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, @@ -8422,7 +8716,7 @@ 2001-02-16 Dan Harkless - * init.c (commands): Hack Kampbjørn discovered + * init.c (commands): Hack Kampbjørn discovered that "httpsproxy" had been inserted into commands[] out of alphabetical order, causing "BUG: unknown command `httpuser'". @@ -8474,7 +8768,7 @@ characters. (skip_uname): Ditto. -2001-02-11 Hack Kampbjørn +2001-02-11 Hack Kampbjørn * url.c (parseurl): Debug-print u->ftp_type. @@ -8582,7 +8876,7 @@ 2000-12-30 Dan Harkless - * ftp.c, http.c: Applied Hack Kampbjørn 's + * ftp.c, http.c: Applied Hack Kampbjørn 's patch to deal with h_errno not being defined in netdb.h under Cygwin. 2000-12-18 Csaba Raduly