Tim Rühsen
d680b0b551
* bootstrap.conf: Add gnulib module wcwidth
2017-02-04 19:30:38 +01:00
Tim Rühsen
31ac36e170
Fix include/define clash with gnulib's unlink module
...
* src/options.h: Rename options.unlink to options.unlink_requested
* src/init.c: Replace options unlink member by unlink_requested
* src/http.c: Likewise
* src/ftp.c: Likewise
2017-02-04 18:02:54 +01:00
Tim Rühsen
51b401f5c4
* bootstrap.conf: Specify unicode modules more exact
2017-02-04 18:01:44 +01:00
Tim Rühsen
f2c4289557
* src/xattr.h: Fix #define fsetxattr for MacOS and FreeBSD
...
Reported-by: Zhiming Wang
2017-02-04 15:29:44 +01:00
Tim Rühsen
58546e52e2
* contrib/release: New release helper script
2017-02-03 16:16:30 +01:00
Tim Rühsen
820f3fc2b4
* cfg.mk: Fix syntax-check
2017-02-03 16:16:30 +01:00
Tim Rühsen
cc8464206d
* doc/announcement_1.19.txt: Add new file
2017-02-03 15:19:05 +01:00
Tim Rühsen
366d82f349
* src/utils.c: Move macro FMT_MAX_LENGTH into scope
2017-02-03 12:35:49 +01:00
Tim Rühsen
f2574e90b7
* src/utils.c: Fix -Wformat= warnings
2017-02-03 12:33:38 +01:00
Tim Rühsen
81b3aaf75c
* src/gnutls.c: Fix -Wformat= warnings
2017-02-03 12:31:51 +01:00
Tim Rühsen
17d2f42a3d
* src/iri.c: Remove unused macro IDNA_FLAGS
2017-02-03 12:28:37 +01:00
Tim Rühsen
638df40476
* src/iri.c: Remove use of __func__ macros
2017-02-03 12:28:05 +01:00
Tim Rühsen
00bafe72f1
* src/http.c: Fix -Wformat= warnings
2017-02-03 12:24:41 +01:00
Tim Rühsen
e777c01f43
* src/progress.c: Remove unused macro move_to_end
2017-02-03 12:18:14 +01:00
Tim Rühsen
3ba112ea57
* src/html-parse.c: Remove unused macro SKIP_NON_WS
2017-02-03 12:15:24 +01:00
Tim Rühsen
485fcfcc20
* src/hsts.c: Remove unused macro CHECK_EXPLICIT_PORT
2017-02-03 12:09:18 +01:00
Tim Rühsen
a5094731cd
* src/hsts.c: Fix -Wformat= warnings
2017-02-03 12:08:08 +01:00
Tim Rühsen
3186eb2976
* src/hash.c: Explicitly convert float to int
2017-02-03 12:03:50 +01:00
Tim Rühsen
9947663af8
* src/ftp-ls.c: Fix -Wformat= warnings
2017-02-03 11:59:33 +01:00
Tim Rühsen
cfae085665
* src/ftp.c (ftp_retrieve_list): Add default to switch
2017-02-03 11:57:02 +01:00
Tim Rühsen
e69808256b
* src/css-url.h: Remove redundant declaration
2017-02-03 11:53:28 +01:00
Tim Rühsen
11989ef669
* src/ftp.c: Fix -Wformat= warning
2017-02-03 11:52:08 +01:00
Tim Rühsen
5fceab6cb9
* src/http.c (test_parse_range_header): Fix constants
2017-02-03 10:32:42 +01:00
Dale R. Worley
d6eead1794
Improve documentation of --trust-server-names.
2017-02-02 12:10:43 +01:00
Tim Rühsen
d0e02a54ae
* src/url.c (mkalldirs): Add newline to log message
2017-02-02 11:11:50 +01:00
Tim Rühsen
2e70409844
* src/cookies.c (check_domain_match): Add newline to DEBUG lines
2017-02-02 11:11:07 +01:00
Tim Rühsen
4734e8d4d7
* NEWS: update
2017-01-17 15:16:40 +01:00
Tim Rühsen
0fe8a5c40e
* README.checkout: Link HTTPS where possible, update flex homepage
2017-01-17 14:25:15 +01:00
Tim Rühsen
1b9374ee59
* README.checkout: Fix libidn to libidn2
2017-01-17 14:07:16 +01:00
Tim Rühsen
6de24fe3c0
* src/iri.c: Use TR46 non-transitional for toASCII conversion
2017-01-13 15:53:03 +01:00
Tim Rühsen
0ab3d92c85
* src/main.c: Fix _Noreturn compiler warnings
2017-01-13 15:50:19 +01:00
Tim Rühsen
4cf8af84e0
* src/utils.c: Fix _Noreturn compiler warning
2017-01-13 15:49:05 +01:00
Tim Rühsen
42b8761cbc
* src/init.c (setval_internal): Fix sign compare warning
2017-01-13 15:47:02 +01:00
Tim Rühsen
fd0f759597
Replace home-grown portability code by gnulib modules
...
* bootstrap.conf: Add intprops, inttypes, limits-h, signal-h,
stat, sys_types
* src/ftp.c: Replace 'struct_stat' by 'struct stat'
* src/hsts.c: Likewise
* src/http.c: Likewise
* src/main.c: Likewise
* src/netrc.c: Likewise
* src/retr.c: Likewise
* src/url.c: Likewise
* src/utils.c: Likewise
* src/sysdep.h: Remove old portability code
Further portability issues should be addressed by gnulib.
2017-01-13 15:38:15 +01:00
Tim Rühsen
a384f5e2e9
Replace WGET_* m4 macros by gnulib modules
...
* bootstrap.conf: Add hostent, inet_ntop, nanosleep, utimens
* configure.ac: Remove WGET_STRUCT_UTIMBUF, WGET_FNMATCH,
WGET_NANOSLEEP, WGET_POSIX_CLOCK, WGET_NSL_SOCKET
* m4/wget.m4: Likewise
* src/Makefile.am: Add $(LIB_NANOSLEEP) $(LIB_POSIX_SPAWN) to LDADD
* tests/Makefile.am: Likewise
* src/host.c (print_address): Use inet_ntop also for IPV4
2017-01-13 12:54:35 +01:00
Tim Rühsen
5ae1f37902
Remove libidn vulnerability work-around
...
* src/iri.c (_utf8_is_valid): Removed
Since we are using libidn2 for IDNs, we no longer need
this work-around.
2017-01-13 12:03:47 +01:00
Tim Rühsen
0eb4a21b6c
* src/iri.c (idn_encode): Use TR46 transitional if available
2017-01-13 11:45:18 +01:00
Tim Rühsen
60dc3c21b2
* gnulibx: Update
2017-01-13 10:59:25 +01:00
Tim Rühsen
1a01a6b2d0
Fix previous commit 2427ca4ac0
2017-01-07 15:59:11 +01:00
vijeth-aradhya
2427ca4ac0
Fix http.c and ftp.c passwd logic error
...
* src/ftp.c (getftp): Fix password/user selection
* src/http.c (initialize_request): Likewise
Before, netrc password won over interactive
--ask-password but now --ask-password wins
after change of program logic
Fixes Issue #48811
2017-01-06 16:18:40 +01:00
Giuseppe Scrivano
42c2ce71bc
* src/main.c (main): Add missing \n in error message
2016-12-31 17:11:01 +01:00
Giuseppe Scrivano
def133f26f
Check that fd_set has not fds bigger than FD_SETSIZE
...
* src/connect.c: check that the fd is not bigger than FD_SETSIZE
before using FD_SET. An fd_set cannot hold fds bigger than
FD_SETSIZE, causing out-of-bounds write to a buffer on the stack.
Reported by: Jann Horn <jannh@google.com>
2016-12-28 12:24:19 +01:00
Nikos Mavrogiannopoulos
b9ed06afd8
Avoid calling the gnutls priority functions multiple times
...
* src/gnutls.c (ssl_connect_wget): Call gnutls_set_default_priority()
for --secure-protocol=auto (default).
The patch fixes a behavior that may have unintended side-effects in
certain gnutls versions. Instead use the default priorities when no
options are given.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-12-20 14:48:31 +01:00
Tim Rühsen
1bdc20d774
Print debug message when skipping certain recursive downloads
...
* src/recur.c (retrieve_tree): Print debug message instead silently
skipping recursive downloads.
2016-12-19 12:19:52 +01:00
Rahul Bedarkar
e4e9d3c1c8
Rename base64_{encode,decode} (trivial patch)
...
* src/http-ntlm.c: Rename base64_{encode,decode}
* src/http.c: Likewise
* src/utils.c: Likewise
* src/utils.h: Likewise
When statically linking with gnutls, we get definition clash error for
base64_encode which is also defined by gnutls.
To prevent definition clash, rename base64_{encode,decode}
Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
2016-12-14 15:52:52 +01:00
Tim Rühsen
dcdd618b18
Add support for psl_latest()
...
* configure.ac: Add check for psl_latest(),
remove --with-psl-file
* src/cookies.c (check_domain_match): Use psl_latest() if available
2016-12-11 21:04:40 +01:00
Piotr Wajda
3c796b9a85
Respect -o parameter again
...
* log.c: don't choose log output dynamically when opt.lfilename is set
Regression introduced by dd5c549f6a
Reported-by: Dale R. Worley
2016-11-09 13:32:14 +01:00
Tim Rühsen
00ae9b4ee2
Move Wget from IDN2003 (libidn) to IDN2008 (libidn2)
...
* .travis.yml: Install libidn2-dev instead libidn11-dev.
* bootstrap.conf: Add modules libunistring-optional, unistr/base,
unicase/tolower.
* configure.ac: Check for libidn2.
* src/Makefile.am: Add $(LTLIBUNISTRING) to LDADD.
* tests/Makefile.am: Set LDADD similar to LDADD in src/Makefile.am
* src/connect.c: Use libidn2 code instead of libidn.
* src/host.c: Likewise.
* src/iri.c: Likewise.
* src/iri.h: Likewise.
* src/options.h: Likewise.
* src/url.c: Likewise.
* src/url.h: Likewise.
* src/log.c: Fix C99 comment.
IDN2003 should not be used any more due to security concerns.
We use libunistring (resp. the unicode code from gnulib) for
lowercasing UTF-8 before we give data to libidn2.
TR#46 is missing, no support in libidn2 nor in libunistring.
2016-11-07 11:03:42 +01:00
Tim Rühsen
2242d5aee4
Use -O0 in contrib scripts
...
* contrib/check-hard: Use -O0 instead of -O2 to speed up script.
* contrib/travis-ci: Likewise.
2016-11-03 15:47:41 +01:00
Tim Rühsen
77a546348c
Update gnulib
2016-11-03 13:28:17 +01:00