Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commit b30500f0f499b8459c20dfc859ff7ac2180b6b34
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Dec 20 21:32:06 2015 +0100
Fix Test-iri-forced-remote
* tests/Test-iri-forced-remote.px: Fix encodings
commit 59b920874daa565a1323ffa1e756e80493190686
Author: Eli Zaretskii <eliz@gnu.org>
Date: Fri Dec 18 17:03:26 2015 +0200
Support non-ASCII URLs
* src/url.c [HAVE_ICONV]: Include iconv.h and langinfo.h.
(convert_fname): New function.
[HAVE_ICONV]: Convert file name from remote encoding to local
encoding.
(url_file_name): Call convert_fname.
(filechr_table): Don't consider bytes in 128..159 as control
characters.
* tests/Test-ftp-iri.px: Fix the expected file name to match the
new file-name recoding. State the remote encoding explicitly on
the Wget command line.
* NEWS: Mention the URI recoding when built with libiconv.
commit 9a6e63bee96b098a628aaf6930ab533c4b324d8b
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Fri Dec 18 11:29:41 2015 +0100
* NEWS: Prepare new development cycle
commit cbbeca2af4962a648a2373b35cf8e497e11d90fd
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Dec 17 17:41:32 2015 +0100
Cleanup code
* src/iri.c (do_conversion): Code cleanup
commit 93c1517c4071c4288ba5a4b038e7634e4c6b5482
Author: Eli Zaretskii <eliz@gnu.org>
Date: Thu Dec 17 15:27:43 2015 +0100
Set URI encoding when redirected
* src/retr.c (retrieve_url): Set URI on redirection
commit bf5d7e92363b2d9e3076b09931116fa38602160b
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Dec 17 12:11:53 2015 +0100
Remove requesting X/Open 5, POSIX 1995
* src/sysdep.h: Remove #define _XOPEN_SOURCE 500
commit 94d9b68db9f27df4e55a86d2d1d099e03990bb4c
Author: Eli Zaretskii <eliz@gnu.org>
Date: Wed Dec 16 14:40:17 2015 +0200
Avoid hanging on MS-Windows when invoked with --connect-timeout
* src/connect.c (connect_to_ip) [WIN32]: Don't call fd_close if
the connection timed out, to avoid hanging.
commit be7d19f47848a89be344b41e38790e740cd27fcb
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Dec 15 10:55:41 2015 +0100
Fix iconv conversion
* src/iri.c: Kick out the last converted character from iconv()
Thanks to Eli Zaretskii <eliz@gnu.org> for suggesting the fix.
Reported-by: "Andries E. Brouwer" <Andries.Brouwer@cwi.nl>
commit 358a3c330f4ad42844c6f46746dfc99d9a15fef1
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Dec 11 11:43:40 2015 +0100
Let Test-k survive on CygWin and Windows
* tests/Test-k.px: Use --restrict-file-names for CygWin/Windows
filename requirements.
commit 478a58460945066bb389c16cfbcb3938941f69aa
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Sun Dec 13 16:10:16 2015 +0100
Fix leak in HSTS code
* src/hsts.c (hsts_store_open): close fp if open.
commit 994c4dcce79c7996a20db3816ccf5f6a68de675c
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Sun Dec 13 16:06:53 2015 +0100
Remove unused variable in ftp code
* src/ftp.c (getftp): fix compiler warning for unused variable.
|
|
|
|
commit 160f0e908f76079ad060baccd7d9ae63acf37106
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Wed Dec 9 17:12:51 2015 +0100
Fix Coverity issues
* src/ftp.c (getftp): on error, close the file and attempt to remove it
before exiting.
* src/hsts.c (hsts_store_open): update modification time in the end.
commit 30b0705fa67ab2d1d0c91289639941570c4b3527
Author: Darshit Shah <darnir@gmail.com>
Date: Thu Dec 10 22:43:31 2015 +0100
Faster Travis Builds
* contrib/travis-ci: Test under different languages only when all the
features are enabled. This covers the maximum number of strings. For the
other option permutations, test only in the default C locale
commit 9933da2b9fdeddfc94859192438071bab7e467b2
Author: Darshit Shah <darnir@gmail.com>
Date: Thu Dec 10 13:43:14 2015 +0100
Fix remaining bugs in progress bar implementation
* src/progress.c (create_image): Ensure that the entire screen width is
drawn everytime to prevent any artefacts from leaking through.
commit df7cb9a1b9053a045fe6540f30929c7522ad2f69
Author: Darshit Shah <darnir@gmail.com>
Date: Wed Dec 9 09:28:58 2015 +0100
Add bug-wget to list of travis recipients
* .travis.yml: Add bug-wget to list of Travis Report Recipients
|
|
commit df7cb9a1b9053a045fe6540f30929c7522ad2f69
Author: Darshit Shah <darnir@gmail.com>
Date: Wed Dec 9 09:28:58 2015 +0100
Add bug-wget to list of travis recipients
* .travis.yml: Add bug-wget to list of Travis Report Recipients
commit 636a5f9a1c508aa39e35a3a8e9e54520a284d93d
Author: Darshit Shah <darnir@gmail.com>
Date: Tue Dec 8 21:17:54 2015 +0100
Eliminate more compiler warnings
* src/options.h (CHECK_CERT_MODES): Remove C99 style comma after last
value
* src/progress.c (create_image): Do not mix statements and declarations
* src/init.c (cmd_boolean_internal): Mark unused parameters
commit 44937634a3b2108f8ff2181c178754c0d960fb15
Author: Darshit Shah <darnir@gmail.com>
Date: Tue Dec 8 14:45:01 2015 +0100
Re-enable test on multibyte locale in Travis
* .travis.yml: Use Russian locale instead of Japanese since it seems to
be more complete
* contrib/travis-ci: Re-enable testing on a Russian locale
commit 2257d3ebf84993cf05cd0d4a8539707442921379
Author: Darshit Shah <darnir@gmail.com>
Date: Tue Dec 8 20:03:37 2015 +0100
Fix progress bar assertion with multibyte locales
* src/progress.c (bar_create): Define size of progress buffer explicitly
(create_image): Clean up progress bar image creation. Use memset
instead of for loops to create arrays of the same byte.
commit b0d2fa574871c95243f405189e733844adf15073
Author: Darshit Shah <darnir@gmail.com>
Date: Thu Dec 3 18:42:53 2015 +0100
Introduce Travis Integration
* .travis.yml: Configuration file for Travis-CI
* contrib/travis-ci: Script to run on travis. Similar to check-hard but modified
for travis.
* tests/valgrind-suppressions{-ssl}: Add extra suppressions to prevent a
Valgrind False Positive errors in an old version
Since Travis currently supports only public repositories on GitHub, the support
for automated testing through Travis will be done using my Clone of Wget on
GitHub at: https://github.com/darnir/wget.git
Any commits pushed to this repository will trigger a build on Travis.
commit ca0c272eae7dbceef07a52de43e399e297072933
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Dec 4 15:49:18 2015 +0100
SKIP SSL/TLS tests if configured without it
* testenv/Makefile.am: Set SSL_TESTS env variable
* testenv/Test--https-crl.py, testenv/Test--https.py,
testenv/Test-hsts.py: Return 77 (SKIP) if SSL/TLS is not configured
Add bug-wget to list of travis recipients
* .travis.yml: Add bug-wget to list of Travis Report Recipients
commit 636a5f9a1c508aa39e35a3a8e9e54520a284d93d
Author: Darshit Shah <darnir@gmail.com>
Date: Tue Dec 8 21:17:54 2015 +0100
Eliminate more compiler warnings
* src/options.h (CHECK_CERT_MODES): Remove C99 style comma after last
value
* src/progress.c (create_image): Do not mix statements and declarations
* src/init.c (cmd_boolean_internal): Mark unused parameters
|
|
commit 8977e6323968318c5b3112133971f694d2d0ef24
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Nov 24 16:32:11 2015 +0100
Add Test-hsts.py to SSL_TESTS
* testenv/Makefile.am: Add Test-hsts.py to SSL_TESTS
commit ad5a28352883f661f390ff320fb2130cc6a6d443
Author: Ygal Blum <ygal.blum@technicolor.com>
Date: Tue Nov 24 11:24:54 2015 +0200
Fix compilation when without-ssl is selected
commit 3dd2e78256412b8ff451b28e3cdd463b32fcd33a
Author: Darshit Shah <darnir@gmail.com>
Date: Thu Dec 3 10:49:37 2015 +0100
Include Metalink and GPG information in version
* src/build_info.c.in: Include the presence of Metalink and GPGME features in
the output for wget --version
commit 81061571d1505866ffe3c6fc1e87f3d0c9c11c27
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Thu Dec 3 11:49:55 2015 +0100
Add --check-certificate=quiet
* doc/wget.texi: Add documentation for --check-certificate=quiet.
* src/options.h (enum CHECK_CERT_MODES): New enum.
* src/init.c (cmd_check_cert): New static function.
(cmd_boolean_internal): Likewise.
* src/gnutls.c (ssl_check_certificate): Handle CHECK_CERT_QUIET.
* src/openssl.c (ssl_check_certificate): Handle CHECK_CERT_QUIET.
commit 4e37fb6191d1d3d3c810379854882bbc63ce1697
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Nov 23 17:50:59 2015 +0100
Fix regression in HTTP authentication
* src/http.c (initialize_request): Fix wrong params to search_netrc()
Regression introduced in commit 29850e77
Reported-by: Axel Reinhold <axel@freakout.de>
commit 218d81f6e5fb4f5ecd8db0fb2d9091ea509e0475
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Nov 21 21:44:11 2015 +0100
Fix SIGSEGV in -N / --content-disposition combination
* src/http.c (http_loop): Fix SIGSEGV
Reported-by: "Schleusener, Jens" <Jens.Schleusener@t-online.de>
commit 46cd721c0ff2f319fbc523c0990a40648f109b62
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Fri Nov 20 18:35:31 2015 +0100
Fix potential NULL pointer dereference
* src/gnutls.c (ssl_connect_wget): check for NULL before calls
commit b1c7777037eaa357160ca3397689f1e9c865a494
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Fri Nov 20 11:58:42 2015 +0100
* configure.ac: change gettext version to 0.18.1
commit 8c12260d4bb1aee0c4c7fe14a35f2b4ac0e3d5e9
Author: Ikey Doherty <michael.i.doherty@intel.com>
Date: Thu Nov 19 16:29:44 2015 +0000
configure.ac: Use correct gettext version
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
commit 99aa7b4f5e13a30e04d4410e98bbb81780e74f09
Author: Tim Rühsen <tim.ruehsen@openmediasystem.de>
Date: Wed Nov 18 10:58:56 2015 +0100
Fix HSTS memory issue + test code issue
* src/hsts.c (hsts_find_entry): Fix freeing memory
(hsts_remove_entry): Remove freeing host member
(hsts_match): Free host member here
(hsts_store_entry): Free host member here
(test_url_rewrite): Fix 'created' value
(test_hsts_read_database): Fix 'created' value
Reported-by: Dagobert Michelsen <dam@opencsw.org>
commit 76da642aafe875ec4b0613935efe8bee922c4b5c
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Nov 17 14:40:08 2015 +0100
Include errno.h instead of sys/errno.h (Solaris issue)
* src/metalink.c: Include errno.h instead of sys/errno.h
Reported-by: Dagobert Michelsen <dam@opencsw.org>
commit 2cfcadf5e6d5c444765aa460915ae27109a8dbce
Author: Darshit Shah <darnir@gmail.com>
Date: Tue Nov 17 00:16:25 2015 +0100
Fix compile error when IPv6 is disabled
* src/ftp-basic.c: The code for the new FTPS functionality was unintentionally
inside a #ifdef IPV6 block. Move the code around so that it is defined even when
IPV6 isn't used
commit 08ece891b5aab8ebd66aed29d7a4dd20a5fd7f82
Author: Darshit Shah <darnir@gmail.com>
Date: Tue Nov 17 00:36:06 2015 +0100
Use gnulib module flock to provide function
* bootstrap.conf: Use module flock from gnulib to provide it on other platforms
such as Windows.
commit 4ed540ddc78cbe3eb694bb483e6cfb436bd382cd
Author: Darshit Shah <darnir@gmail.com>
Date: Mon Nov 16 23:53:59 2015 +0100
Eliminate NDEBUG redefined warnings
* src/wget.h: Define NDEBUG only if it hasn't been defined before
|
|
|
|
commit b0416584510ab761327d2f26e0fc0bfbffd77ad8
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Nov 3 15:12:11 2015 +0100
Document combination of -nc and -O
Fixes #46359
commit 6cdfc9c1438fe9bcea6bc5d1d20631c026176b2e
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Aug 25 16:00:39 2015 +0200
Do not download/save file on error when --spider enabled
* src/http.c (gethttp,http_loop):
Do not download/save file on error when --spider is enabled and not
working recursive.
Reported-by: Сковорода Никита Андреевич chalkerx@gmail.com
Fixes #45821
commit b14eeb5aeeae709b73dba39d8439e0d46c4f10a0
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Oct 27 13:13:54 2015 +0100
Fix URL conversion for colons in filenames
* src/convert.c (construct_relative): Prepend './' to filename
* tests/Test-k.px: Amend test to succeed
|
|
commit 71979f16430eb6a8efb89040655c6aca0e8e5854
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Oct 15 21:09:59 2015 +0200
Adjust indentation of --no-use-server-timestamps in help output
* src/main.c: Adjust indentation of --no-use-server-timestamps
commit 4ad201a7e70d973846a39c09c137dd02dd0d3d48
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Tue Sep 22 21:10:38 2015 +0200
Added --convert-file-only option
* src/convert.c (convert_links_in_hashtable, convert_links):
test for CO_CONVERT_BASENAME_ONLY.
(convert_basename): new function.
* src/convert.h: new constant CO_CONVERT_BASENAME_ONLY.
* src/init.c, src/main.c, src/options.h: new option "--convert-file-only".
* doc/wget.texi: updated documentation.
Reviewed-by: Gabriel Somlo <somlo@cmu.edu>
commit 3608c3001ceadfed6fbfa6243d0c6fae88b669e8
Author: Darshit Shah <darnir@gmail.com>
Date: Sun Oct 11 00:37:01 2015 +0530
Fix Test-ftp-pasv-not-supported.px
* tests/Test-ftp-pasv-not-supported.px: We do *NOT* expect any
downloaded files. Also, do not negate the Test response.
The test originally expected a downloaded file, but this is not
true. As a result, the test would fail and return exit code 1. This
was presumably the reason why the test result was negated before
returning to the shell. Fix this issue, so that the test runs
correctly without any hacks.
commit d484b141742b012b60cd05cdd9466fc58c832106
Author: Darshit Shah <darnir@gmail.com>
Date: Mon Sep 28 20:53:48 2015 +0530
Fix make distcheck failures in Perl SSL Tests
* tests/Makefile.am: Add valgrind-suppressions-ssl to EXTRA_DIST
* tests/Test-proxied-https-auth-keepalive.px: Find valgrind in
correct path during make distcheck
* tests/Test-proxied-https-auth.px: Same
commit b8ee3705713f53352966630c85d06f491c03c480
Author: christian fafard <cfaf@hotmail.com>
Date: Mon Oct 12 09:50:18 2015 +0200
Skip HTTPS perl tests if IO::Socket::SSL not installed
* tests/Test-proxied-https-auth-keepalive.px: Skip test if perl module
IO::Socket::SSL is not installed (trivial change).
* tests/Test-proxied-https-auth.px: Skip test if perl module
IO::Socket::SSL is not installed (trivial change).
|
|
commit f5a63e31006ed02f5de4bb8d947bc7b755bb81fe
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Mon Oct 5 23:03:45 2015 +0200
Fix potential race condition
* src/hsts.c (hsts_read_database): get an open file handle
instead of a file name.
(hsts_store_dump): get an open file handle
instead of a file name.
(hsts_store_open): open the file and pass the open file handle.
(hsts_store_save): lock the file before the read-merge-dump
process.
Reported-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
commit 077e89781985f4c1383b6f3860c2d69691ae54ae
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Wed Oct 7 21:25:41 2015 +0200
Fix HSTS merge bug
* src/hsts.c (hsts_store_merge): call hsts_new_entry() if the entry
does not exist in the database.
When merging the existing HSTS database on disk with the one on memory,
the entries that were on disk but not on memory were ignored. Thus,
only the existing entries were merged. This behavior was only triggered
when more than one Wget processes were using the same HSTS database
simultaneously. This commit fixes the bug by adding the new entries
to the on-memory database if they were not found there.
commit 1e7ccfe2750c2e337bf7c0a4bfb33efe6e75e0c4
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Mon Sep 28 13:12:35 2015 +0200
testenv/Test--rejected-log.py: Remove trailing white spaces
commit 26fadc55c27547b95d7f1709c6a6248395f62cd9
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Sep 28 12:00:33 2015 +0200
Handle TLS rehandshakes in GnuTLS code
* src/gnutls.c: New static function _do_handshake()
* src/gnutls.c (wgnutls_read_timeout): Handle rehandshake
* src/gnutls.c (wgnutls_write): Handle rehandshake
* src/gnutls.c (ssl_connect_wget): Move handshake code into _do_handshake()
Fixes #46061
commit e51076e6832d651c8b614de03c81576918fcb2f7
Author: Darshit Shah <darnir@gmail.com>
Date: Tue Sep 22 16:38:40 2015 +0530
Add tests for missing qop in digest auth
* testenv/test-auth-both.py: Add qop parameter for digest auth
* testenv/test-auth-digest.py: Same
* testenv/conf/authentication.py: Support additional parameters for
authentication
* testenv/servers/http/http_server.py: Same
commit c387db645184877d1236ef4dd76da1e5671ec561
Author: Darshit Shah <darnir@gmail.com>
Date: Tue Sep 22 16:36:40 2015 +0530
Do not test for impossible qop value
* http.c (digest_authentication_encode): Wget already errors out if
qop != "auth". Then it makes no sense to test for qop == "auth-int"
later on. Currently, Wget does not support the "auth-int" qop value
and till nobidy requests, it may remain so.
commit 12dfc03116f63f53d05761d3847061b7e6ca6fd6
Author: Darshit Shah <darnir@gmail.com>
Date: Tue Sep 22 15:41:22 2015 +0530
Fix #46024. Support RFC 2069 Digest Authentication
* http.c (digest_authentication_encode): Some servers are still
using the obsolete RFC 2069 Digest Authentication. Allow Digest
authentication without the qop parameter for this.
Reported-by: Andreas Longwitz <longwitz@incore.de>
|
|
commit 3ea0beec6fabe67e7789d4164886e035fed15a6d
Author: Darshit Shah <darnir@gmail.com>
Date: Mon Sep 21 19:41:38 2015 +0530
Revert "Disable progress bar when wget is backgrounded (trivial patch)"
This reverts commit e6247325633d7d0007906f88d573a3bfa37307a7.
commit b50300a7a2b1df4832d02af40ec7b50559afdc42
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Sun Sep 20 15:15:12 2015 +0200
NEWS: cite FTPS support
|
|
commit f8901af4e02d69c1d8cbedc5d344269d54a73498
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Thu Aug 27 16:32:36 2015 +0200
Added support for FTPS
* doc/wget.texi: updated documentation to reflect the new FTPS functionality.
* src/ftp-basic.c (ftp_greeting): new function to read the server's greeting.
(ftp_login): greeting code was previously here. Moved to ftp_greeting to
support FTPS implicit mode.
(ftp_auth): wrapper around the AUTH TLS command.
(ftp_ccc): wrapper around the CCC command.
(ftp_pbsz): wrapper around the PBSZ command.
(ftp_prot): wraooer around the PROT command.
* src/ftp.c (get_ftp_greeting): new static function.
(init_control_ssl_connection): new static function to start SSL/TLS on the
control channel.
(getftp): added hooks to support FTPS commands (RFCs 2228 and 4217).
(ftp_loop_internal): test for new FTPS error codes.
* src/ftp.h: new enum 'prot_level' with available FTPS protection levels +
prototypes of previous functions. New flag for enum 'wget_ftp_fstatus' to track
whether the data channel has some security mechanism enabled or not.
* src/gnutls.c (struct wgnutls_transport_context): new field 'session_data'.
(wgnutls_close): free GnuTLS session data before exiting.
(ssl_connect_wget): save/resume SSL/TLS session.
* src/http.c (establish_connection): refactor ssl_connect_wget call.
(metalink_from_http): take into account SCHEME_FTPS as well.
* src/init.c, src/main.c, src/options.h: new command line/wgetrc options.
(main): in recursive downloads, check for SCHEME_FTPS as well.
* src/openssl.c (struct openssl_transport_context): new field 'sess'.
(ssl_connect_wget): save/resume SSL/TLS session.
* src/retr.c (retrieve_url): check new scheme SCHEME_FTPS.
* src/ssl.h (ssl_connect_wget): refactor. New parameter of type 'int *'.
* src/url.c. src/url.h: new scheme SCHEME_FTPS.
* src/wget.h: new FTPS error codes.
* src/metalink.h: support FTPS scheme.
commit e6247325633d7d0007906f88d573a3bfa37307a7
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date: Tue Sep 8 16:29:18 2015 +0200
Disable progress bar when wget is backgrounded (trivial patch)
* src/progress.c (create_image): progress only when in foreground
Sometimes I start wget, but the remote site is too slow, so I rather
want to run it in background, however when I simply use job control
for that, wget will keep spewing the progress bar all over my
terminal. I have found the SIGHUP/SIGUSR1 feature to redirect output
to a log file, but I think the following small patch is even more
useful, since the progress bar will simply resume when wget is
foregrounded again (also, the final message is still printed to the
terminal in any case):
commit f2cb6e050a28bb6c1e3a99a119360d4fd656fe62
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Thu Sep 3 20:40:21 2015 -0700
Add information about libmetalink and GnuPG
* README.checkout: Optional dependencies and URL references.
commit 84b9abbf3c789e371bc8d41bd2d2d89cabb8fbc2
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Tue Sep 1 23:33:12 2015 -0700
Do not free Metalink structure if not initialized
* src/main.c (main): Move metalink_delete to the conditional block.
commit 58917dcde14222fdbe98bef0d54e23c9722c8d8c
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Tue Aug 18 00:45:36 2015 +0200
Updated HSTS documentation
* doc/wget.texi: updated HSTS documentation.
Reported-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
commit ab47d9fa3a8c38bc14b1901ad5d9ef39bb6e837b
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Sat Aug 8 19:40:49 2015 +0200
Extra debug traces for HSTS.
* src/main.c (load_hsts, save_hsts): added DEBUGP() calls to signal
reads and saves of the HSTS database file.
commit 187edb604a517e6a4ebf84096fab762fac0a2e03
Author: Darshit Shah <darnir@gmail.com>
Date: Mon Aug 31 21:04:54 2015 +0530
Fix coding style violation in last commit
* http.c (test_parse_range_header): Declare loop variable
explicitly. Not in gnu99 standard.
|
|
commit b06fca60ac0dd001cc2203e593d24beebab1631b
Author: Darshit Shah <darnir@gmail.com>
Date: Sat Aug 29 23:08:39 2015 +0530
Add unit test for parse_content_range() method
* http.c (test_parse_range_header): New function to test the
function for parsing the HTTP/1.1 Content-Range header.
* test.[ch]: Same
* http.c (parse_content_range): Fix parsing code. Fail on scenarios
mentioned in rfc 7233.
commit c809398e8c16285a6b3e5de195ae98735ee1f4bf
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Aug 30 14:17:47 2015 +0200
Fix null pointer dereference
* src/metalink.c (gpg_skip_verification):
Check output_stream before fclose
commit 88a1a79bc13175ae04db2d58195d3b67a34b2981
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Aug 30 13:13:05 2015 +0200
Fix leaks found by Coverity
* src/http.c (parse_strict_transport_security): Free c_max_age
(open_output_stream): Fix indentation
* src/iri.c (locale_to_utf8): Free new
commit 398699c438889582d354b9e5411fd1201472d3e5
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Aug 29 22:35:29 2015 +0200
Fix two leaks foudn by Coverity
* src/http.c (gethttp): Do not leak 'message'.
* src/main.c (format_and_print_line): Do not leak 'line_dup'.
commit d3504b92613a50b2bb480dd30bd181a99741f8c6
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Aug 29 22:15:34 2015 +0200
Fix resource leak discovered by Coverity
* src/retr.c (retrieve_url): Don't leak local_file.
commit 6b5acff56617bcf8b5c7b525640fd64522176400
Author: Darshit Shah <darnir@gmail.com>
Date: Sat Aug 29 22:52:49 2015 +0530
Fix memory leaks in unit-test
* hsts.c (get_hsts_store_filename): Free the homedir value
(close_hsts_test_store): Actually free the store struct too
(test_hsts_new_entry): Pass store to close_hsts_test_store()
(test_hsts_url_rewrite_superdomain): Same
(test_hsts_url_rewrite_congruent): Same
(test_hsts_read_database): Same and homedir and store filename
* http.c (test_parse_content_disposition): Free the returned
filename
* url.c (test_append_uri_pathel): Free allocated string
|
|
commit 5c4489db9b084b361da38df45e91793e0b04cc23
Author: Darshit Shah <darnir@gmail.com>
Date: Sat Aug 29 09:45:13 2015 +0530
Fix mixed-indentation in http.c
* http.c: Fix mix indentation. Visual change only.
commit 7bed9a6f8f106d88737284850941f9aa6d21a13b
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Aug 26 10:35:57 2015 +0200
Suppress debug output when strings may contain password
* iri.c (do_conversion): Do not print out converted strings if they
contain an '@'. That could be an URL with embedded password.
Fixes #45825
|
|
|
|
commit d080a70a3a62626ef3490a19b532c981c0f616f6
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Wed Aug 26 12:35:02 2015 +0200
Fix resource leak.
* src/http.c (parse_strict_transport_security): Freed memory to avoid resource leak.
Comply with GNU coding style.
commit 2d2ddb25d81103d8366e385901e0940539c63c07
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Aug 22 22:32:15 2015 +0200
Fix typo in NEWS
* NEWS: Change typo --accept-reject into --accept-regex
Reported-by: grarpamp <grarpamp@gmail.com>
commit 030c3379d198fca9a3138554e6fdd3a3be8482e9
Author: Jookia <166291@gmail.com>
Date: Sat Aug 22 02:29:05 2015 +1000
Clarify that links are being converted.
* src/convert.c: Add 'links in' after 'Converted %d' and 'Converting %s'.
commit d3d8de8223603dac54d2bc756330aa8c02188b83
Author: Jookia <166291@gmail.com>
Date: Sat Aug 22 01:41:44 2015 +1000
Removed useless TODOs.
* testenv/Test--reject-log.py: Remove TODOs.
|
|
commit e04c5989ff482e1fd1e6ee9defae94c95893d5bd
Author: Miquel Llobet <mllobet.cm@gmail.com>
Date: Sun Mar 15 21:48:27 2015 +0100
Fixed #44516 -o- not logging to stdout
src/log.c (log_init): check for hypen on filename, set stdout
commit 12bae50b28fa20f9ffa3d5b0e88f4ebf51fa6864
Author: Daniele Calore <daniele.calore@tin.it>
Date: Sun Aug 16 00:16:12 2015 +0530
Fix #40426: Allow -r -O- only if FILE is regular
* main.c: added check of "-r -O FILE" option combination
allow only if FILE is a regular file (bug #40426)
commit f71887bbe58acc0246e162cd2c4345ecbc9d92f2
Author: Darshit Shah <darnir@gmail.com>
Date: Sat Aug 15 15:43:33 2015 +0530
Fix var name conflicts with math.h and wingdi.h
* src/recur.c (reject_reason): Rename all enum members to WG_RR_xx.
* src/recur.c (retrieve_tree, download_child,
write_reject_log_reason): Same
|
|
commit 84c405e69018074bcc3facf760decbf92cfc8898
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 14 10:17:52 2015 +0200
Let bootstrap/autoreconf work without GPGME installed
* configure.ac: Check for existance of AM_PATH_GPGME
commit 075d7556964f5a871a73c22ac4b69f5361295099
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Aug 11 16:48:08 2015 +0200
Fix IP address exposure in FTP code
* src/ftp.c (getftp): Do not use PORT when PASV fails.
* tests/FTPServer.px: Add pasv_not_supported server flag.
* tests/Makefile.am: Add Test-ftp-pasv-not-supported.px
* tests/Test-ftp-pasv-not-supported.px: New test
Fix IP address exposure when automatically falling back from
passive mode to active mode (using the PORT command). A behavior that
may be used to expose a client's privacy even when using a proxy.
|
|
commit 7578e47d4957b019d90bbe77bcab98113a8923bc
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 7 14:03:00 2015 +0200
Fix C89 compliancy in HSTS test code
* src/hsts.c (test_hsts_new_entry):
Move variable assignment before code
commit 3a708f7ef84c0c875c990a315bca610dae2d8f40
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 7 13:27:37 2015 +0200
Fix C89 compliancy in latest code
* src/recur.c: Declare variables before code
(write_reject_log_url):
Use const keyword where appropriate
Use the 'default' switch statement
Use xfree() instead of free()
Renamed variable f -> fp
(write_reject_log_reason):
Use const keyword where appropriate
Use the 'default' switch statement
Renamed variable f -> fp
Renamed variable r -> reason
commit 474935665e3c2ca648556b093fe20e70a3b2b5e8
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 7 13:24:14 2015 +0200
Remove redundant definition of _GNU_SOURCE
* src/warc.c: Remove definition of _GNU_SOURCE
_GNU_SOURCE is already defined in config.h
commit f8519b52f0b93a48652534d705e7aa690ec0af01
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Fri Aug 7 08:32:34 2015 +0200
NEWS: update
commit 98272d2c8de7602f0bf393538047d40102f0b351
Author: Jookia <166291@gmail.com>
Date: Fri Aug 7 07:58:30 2015 +1000
Rewrite the --rejected-log test using the new framework.
* tests/Test--rejected-log.px: Remove old test.
* testenv/Test--rejected-log.py: Create new test.
commit 7e5079c40f2cc0e66122ed86e17c3589b960a534
Author: Jookia <166291@gmail.com>
Date: Fri Aug 7 07:51:16 2015 +1000
Replace variables before comparing expected files.
* expected_files.py: Use formatted_content instead of file.content.
commit e4db00d74d7c8ade43e57f39344d8505d607308a
Author: Jookia <166291@gmail.com>
Date: Fri Jul 31 23:41:36 2015 +1000
Add option to write URL rejections to a tab-delimited CSV log.
* main.c: Add "--rejected-log" option.
* init.c: Add "rejectedlog" command.
* options.h: Add "rejected_log" parameter string.
* wget.texi: Add brief documentation on new --rejected-log option.
* recur.c: Optionally log details of URLs not traversed.
Add reject_reason enum.
(download_child_p -> download_child): Return a reject_reason.
(descend_redirect_p -> descend_redirect): Return a reject_reason.
(retrieve_tree): Support logging reasons for rejection.
Add write_reject_log_header that writes a CSV format header to a file.
Add write_reject_log_url that writes a url struct to a file in CSV format.
Add write_reject_log_reason that writes the URL and parent URL as well as the
rejection reason to a CSV file.
* Test--rejected-log.px: Add a basic test for the --rejected-log command.
* tests/Makefile.am: Run Test--rejected-log.px.
This allows you to figure out why URLs are being rejected and some context
around it. CSV is used as the output format since it can be used easily parsed,
it's delimited by tabs instead of commas to allow using all (quoted) URL
characters and includes column names which may be used for compatibility.
commit 670eb924e75730ed612e0f8b96a8bcd17d392d3e
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Aug 4 17:41:54 2015 +0200
Fix memory leak in HSTS code
* src/main.c (get_hsts_database): Free 'home' variable
commit 5d55018ce6909342d6c08b4937279cc366e3e289
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Aug 4 17:24:59 2015 +0200
void uninitialized variable in metalink code
* src/metalink.c: Init retr_err with METALINK_MISSING_RESOURCE
* src/wget.h: Add enum METALINK_MISSING_RESOURCE
|
|
commit 4e56a910013de2b7dcd378a97ad63be4c8fa53c4
Author: Darshit Shah <darnir@gmail.com>
Date: Fri Jul 24 23:52:43 2015 +0530
Fix function name collision with OpenSSL library
* src/utils.[ch], src/http.c, src/metalink.c: Rename function
hex_to_string() to wg_hex_to_string sine it collides with a
similarly named function in OpenSSL Library.
commit 595f219a17a4981c86b47b224167eb4a341db507
Author: Darshit Shah <darnir@gmail.com>
Date: Fri Jul 24 23:42:20 2015 +0530
Fix configure options for metalink
* configure.ac: Ensure metalink support can be properly disabled
commit b6e242cd6f13f3a5a57f9a92bebfb21d8d840143
Author: Alex Henrie <alexhenrie24@gmail.com>
Date: Fri Jul 10 10:50:08 2015 -0600
Make the filename marquee a proper marquee
* src/progress.c: Start the marquee in the middle of the available space
and do not restart it until all of the text has scrolled out of view.
commit 207006ef25bab95d161d4b403fdaa20acdf51705
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Mon Jul 20 16:30:48 2015 +0200
NEWS: cite HSTS
commit 843634db59e188051ea5140a4b44726b710c34b5
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Mon Jul 20 16:29:05 2015 +0200
Fix metalink tests
testenv/Test-metalink-http.py: initialize HTTP test server
testenv/Test-metalink-xml.py: initialize HTTP test server
commit 54058d2b18780e660d79a3cc9109ae098237590f
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Sun Jul 5 20:04:42 2015 +0200
Enhancements in testsuite engine + new HSTS test.
* testenv/Makefile.am: added new test 'Test-hsts.py'.
* testenv/Test-hsts.py: new test for HSTS.
* testenv/conf/domains.py: new hook to override domain list.
* testenv/test/base_test.py: (__init__): new optional parameter
for tests 'req_protocols'.
(get_domain_addr): set the instance variables 'addr' and 'port'.
Return address as an array (domain, port) instead of string.
(gen_cmd_line): take into account domain and port.
* testenv/test/http_test.py (__init__): new optional parameter
'req_protocols'.
(setup): new function. Call to server_setup() decoupled from
begin() and moved here.
(begin): call to superclass to maintain backward compatibility.
Removed call to server_setup().
This patch adds a new parameter to the test suite called 'req_protocols',
and a new function called 'setup'. The ability for tests to be able to set some
extra parameters such as the actual requested protocols (with 'req_protocols')
became obvious when support for HSTS was added to Wget, where the requested URI
and the actual executed URI do not have to be the same. This new parameter is optional
and if not specified, the test suite behaves as before. Also, the new function 'setup'
is provided as a means to start the test HTTP server, but not launch the test yet
(this is done when calling 'begin', as usual), in case we want to query the address
and port in which the test server listens. If 'setup' is not called, it is automatically
invoked when calling 'begin'. With these measures, we preserve backward-compatibility with
existing tests.
commit b60131a399b1215674e5728e0e77f8fe8e07d6fe
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Wed Jul 1 00:21:05 2015 +0200
Added support for HSTS.
* Makefile.am: Added new source files hsts.c and hsts.h.
* http.c (parse_strict_transport_security): new function for STS header
parsing.
(gethttp): update the HSTS store.
* http.h: new include "hsts.h".
* init.c: new options --hsts and --hsts-file.
* main.c (get_hsts_database, load_hsts, save_hsts): new functions.
New options --no-hsts and --hsts-file added to help.
(main): load and save HSTS store.
* options.h: new variables for supporting --hsts and --hsts-file.
* retr.c (retrieve_url): rewrite the URI according to the HSTS policy before
entering http_loop.
* test.c, test.h: new unit tests for HSTS.
* utils.c, utils.h (countchars): new function.
* wget.h: new preprocessor check.
* hsts.c, hsts.h: new files with the HSTS engine implementation.
Added support for HTTP Strict Transport Security (HSTS), as defined by RFC
6797.
commit fc8a545bfdf642d15131ef9620e5fc793a3d9841
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Mon Jul 20 15:50:29 2015 +0200
NEWS: cite metalink support
commit 9e12b8ca39302a3ea8cdd8e258a12cd1e6544aa5
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Mon Jul 20 15:37:52 2015 +0200
fix compiler warnings
* src/utils.h: Include <stdlib.h>
* src/recur.c: Include "exits.h"
commit 4c3043d19d36539689c0b7c67464413cf8b36583
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Fri Jul 3 00:27:24 2015 +0200
Test preferred location in Metalink-over-HTTP test case.
* testenv/Test-metalink-http.py: Ensure preferred location is handled
properly.
commit 6064f21c66b8494de3c3383e857730a1490e00b2
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Fri Jul 3 00:21:35 2015 +0200
Geolocation support for Metalink resources.
* doc/wget.text: Add information about --preferred-location.
* src/init.c: Add --preferred-location option.
* src/main.c (option_data): Handle --preferred-location argument.
(main): Sort resources based on location if requested.
* src/metalink.c (metalink_res_cmp): Compare based on location if
priority and preference are equal.
* src/options.h (options): Add preferred_location option.
commit 97389a7497047d42c2841a53d94846a721857683
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Thu Jul 2 00:16:12 2015 +0200
Support at most one file signature. Adapt comments to libmetalink 0.13.
* src/metalink.c (retrieve_from_metalink): Add comment about new
libmetalink version. Do not iterate over signatures - support just one.
commit 225a87d4a2204006d6633af0a0e293c2c6322055
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Fri Jun 26 02:09:51 2015 +0200
Move some Metalink-related code from http.c to metalink.c.
* src/http.c: Move find_key_value, has_key, find_key_values.
* src/metalink.c: To here.
* src/metalink.h: Make them non-static and add prototypes here.
commit 92a889b2785c31e5ff8bdd8264a03b906cfa7692
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Tue Jun 23 17:51:32 2015 +0200
Unit test for find_key_values.
* src/http.c: Add test_find_key_values.
* src/test.c (main): Run new test.
* src/test.h: Add test_find_key_values.
commit 1113e7853466903fc0cbfefecc5c7169446c0976
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Tue Jun 23 16:46:39 2015 +0200
Unit test for has_key.
* src/http.c: Add test_has_key.
* src/test.c (main): Run new test.
* src/test.h: Add test_has_key.
commit 70cbd59ed6684e12cdc6ce1e10f122ff3608c411
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Tue Jun 23 16:36:21 2015 +0200
Unit test for find_key_value.
* src/http.c: Add test_find_key_value.
* src/test.c (main): Run new test.
* src/test.h: Add test_find_key_value.
commit 0e7aff7623e8158d04736546e2cb3ec35b05f2d6
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Fri Jun 19 14:31:16 2015 +0200
Test case for Metalink over HTTP.
* testenv/Test-metalink-http.py: New test.
* testenv/Makefile.am: Add to test list.
commit 792dd09a873464c7b24cf962b0b3e633d67477d2
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Mon Jun 22 20:46:01 2015 +0200
Support multiple headers with same name in Python test suite.
* testenv/README: Describe how to use repeated header name.
* testenv/server/http/http_server.py (finish_headers): Send all
values from list if the header value is a Python list.
commit a4f5ced797b41605a37320756a82f9313516b5fa
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Mon Jun 15 12:13:46 2015 +0200
Test case for Metalink in XML.
* testenv/Test-metalink-xml.py: New test.
* testenv/Makefile.am: Add file for automake.
commit 05c30c3b1bf1671d1ea0d0af8966190285507f29
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Mon Jun 15 11:47:51 2015 +0200
Start HTTP test only when calling begin().
* testenv/test/http_test.py: Move self.do_test() from __init__ to
begin().
commit 37b58e3976c02acc90f86e0f65e19b14e2ea9269
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Sat May 30 23:51:55 2015 +0200
Metalink support.
* bootstrap.conf: Add crypto/sha256
* configure.ac: Look for libmetalink and GPGME
* doc/wget.texi: Add --input-metalink and --metalink-over-http
options description.
* po/POTFILES.in: Add metalink.c
* src/Makefile.am: Add new translation unit (metalink.c)
* src/http.c (http_stat): Add metalink field.
(free_stat): Free metalink field.
(find_key_value): Find value of given key in header string.
(has_key): Check if token exists in header string.
(find_key_values): Find all key=value pairs in header string.
(metalink_from_http): Obtain Metalink metadata from HTTP response.
(gethttp): Call metalink_from_http if requested.
(http_loop): Request Metalink metadata from HTTP response if should be.
Fall back to regular download if no Metalink metadata found.
* src/init.c: Add --input-metalink and --metalink-over-http options
* src/main.c (option_data): Handle --input-metalink and
--metalink-over-http cmd arguments.
(print_help): Print --input-metalink option description.
(main): Retrieve files from Metalink file
* src/metalink.c (retrieve_from_metalink): Download files described by
metalink.
(metalink_res_cmp): Comparator for resources priority-sorting.
* src/metalink.h: Create header for metalink.c
(RES_TYPE_SUPPORTED): Define supported resources media.
(DEFAULT_PRI): Default mirror priority for Metalink over HTTP.
(VALID_PRI_RANGE): Valid priority range.
* src/options.h (options): Add input_metalink option and metalink_over_http
options.
* src/utils.c (hex_to_string): Convert binary data to ASCII-hex.
* src/utils.h (hex_to_string): Add prototype.
* src/wget.h: Add metalink-related error enums
Add METALINK_METADATA flag for document type.
commit 80303366aeb158f1780e4ff5acec8e9df7db83df
Author: Romain Bentz <romain.bentz@dataiku.com>
Date: Wed Jun 10 10:46:12 2015 +0200
Add NULL value check to fix #45289
* src/recur.c (retrieve_tree): Check return value of url_parse()
commit bd0ffcf8bc51174904f3f5a4716b2e2b2e768aa1
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jul 14 07:54:03 2015 +0200
Let HTTPS tests XFAIL when no TLS support configured
* configure.ac: Export WITH_SSL for use in Makefile.am
* testenv/Makefile.am: Add HTTPS tests to XFAIL_TESTS when !WITH_SSL
Reported-by: Ander Juaristi <ajuaristi@gmx.es>
commit 25c9b462bf44ec3d1435000db33c135135ff3482
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Jul 1 15:54:26 2015 +0200
Change function params to const in src/iri.[ch]
* iri.h, iri.c: Added const attribute for params of parse_charsset(),
check_encoding_name(), idn_encode(), idn_decode(),
remote_to_utf8(), set_uri_encoding(), set_content_encoding().
commit 77f5a27e6506970c00b96570b6783c49582eacd7
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jun 30 09:55:14 2015 +0200
Work around a libidn <= 1.30 vulnerability
* src/iri.c: Add _utf8_is_valid() to check UTF-8 sequences before
passing them to idna_to_ascii_8z().
commit ae58d8a78b3531a330970fba2787d528d63dd83f
Author: Ángel González <keisial@gmail.com>
Date: Sat Jun 27 21:32:48 2015 +0200
Fix wgetrc filename creation for Windows
* init.c/wgetrc_file_name: Remove obsolete code in WINDOWS code path
Reported-by: Gisle Vanem <gvanem@yahoo.no>
|
|
|