wget/doc
Matthew White 96554861f9 Bugfix: Fix NULL filename and output_stream in Metalink module
* NEWS: Mention the Metalink "path/file" name format handling
* src/metalink.c (retrieve_from_metalink): Fix NULL filename, set
  filename to the right "path/file" value
* src/metalink.c (retrieve_from_metalink): Fix NULL output_stream, set
  output_stream to filename when it is created by retrieve_url()
* src/metalink.c (retrieve_from_metalink): Add RFC5854 comments about
  proper metalink:file "path/file" name format handling
* doc/metalink.txt: Update document. Remove resolved bugs

If unique_create() cannot create/open the destination file, filename
and output_stream remain NULL. If fopen() is used instead, filename
always remains NULL. Both functions cannot create "path/file" trees.

Setting filename to the right value is sufficient to prevent SIGSEGV
generating from testing a NULL value. This also allows retrieve_url()
to create a "path/file" tree through opt.output_document.

Reading NULL as output_stream, when it shall not be, leads to wrong
results. For instance, a non-NULL output_stream tells when a stream
was interrupted, reading NULL instead means to assume the contrary.

This patch conforms to the RFC5854 specification:
  The Metalink Download Description Format
  4.1.2.1.  The "name" Attribute
  https://tools.ietf.org/html/rfc5854#section-4.1.2.1
2016-09-27 20:17:08 +02:00
..
fdl.texi maint: update copyright year ranges to include 2015 2015-03-09 16:32:01 +01:00
Makefile.am Fix creating docs when make uses 'sh -e' 2016-06-30 15:19:26 +02:00
metalink.txt Bugfix: Fix NULL filename and output_stream in Metalink module 2016-09-27 20:17:08 +02:00
sample.wgetrc sample.wgetrc: Fix wrong command 'locale' into 'localencoding' 2014-12-19 17:05:33 +01:00
texi2pod.pl Convert wget.texi to UTF-8 2015-03-17 09:52:23 +01:00
wget.texi Add --use-askpass=COMMAND support 2016-09-03 21:01:24 +02:00