<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libfetch/fetch.c, branch release/13.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2020-02-05T16:55:00Z</updated>
<entry>
<title>libfetch: disallow invalid escape sequences</title>
<updated>2020-02-05T16:55:00Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2020-02-05T16:55:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=83372bda16b53157be476df6f9c6aac9f2bc12a3'/>
<id>urn:sha1:83372bda16b53157be476df6f9c6aac9f2bc12a3</id>
<content type='text'>
Per RFC1738 escape is "% hex hex"; other sequences do not form a valid URL.

Suggested by:	Matthew Dillon
Reviewed by:	Matthew Dillon
MFC after:	1 week
</content>
</entry>
<entry>
<title>Fix urldecode buffer overrun.</title>
<updated>2020-01-28T18:37:18Z</updated>
<author>
<name>Gordon Tetlow</name>
<email>gordon@FreeBSD.org</email>
</author>
<published>2020-01-28T18:37:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6fb3f9944faefa41b322b5e1bc0d280b4005ca44'/>
<id>urn:sha1:6fb3f9944faefa41b322b5e1bc0d280b4005ca44</id>
<content type='text'>
Reported by:	Duncan Overbruck
Security:	CVE-2020-7450
</content>
</entry>
<entry>
<title>Improve URL parsing.  In particular, convert scheme and host to lowercase.</title>
<updated>2018-11-27T10:45:14Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2018-11-27T10:45:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8d9de5b10a24bd2d79ed99f139c0ac28c09b15ca'/>
<id>urn:sha1:8d9de5b10a24bd2d79ed99f139c0ac28c09b15ca</id>
<content type='text'>
MFC after:	1 week
</content>
</entry>
<entry>
<title>Fix an inverted conditional in the netrc code, which would ignore the</title>
<updated>2018-05-29T13:07:36Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2018-05-29T13:07:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5f04ebd4d3ed2b5970913c8b02b2b251a897a3c0'/>
<id>urn:sha1:5f04ebd4d3ed2b5970913c8b02b2b251a897a3c0</id>
<content type='text'>
value of $HOME and always use the home directory from the passwd
database, unless $HOME was unset, in which case it would use (null).

While there, clean up handling of netrcfd and add debugging aids.

MFC after:	3 weeks
</content>
</entry>
<entry>
<title>Use __VA_ARGS__ to simplify the DEBUG macro.</title>
<updated>2018-05-29T10:28:20Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2018-05-29T10:28:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c5712d6da1ce9006a3147ab7c8be3b326d3dbc71'/>
<id>urn:sha1:c5712d6da1ce9006a3147ab7c8be3b326d3dbc71</id>
<content type='text'>
MFC after:	3 weeks
</content>
</entry>
<entry>
<title>lib: further adoption of SPDX licensing ID tags.</title>
<updated>2017-11-26T02:00:33Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-26T02:00:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5e53a4f90f82c4345f277dd87cc9292f26e04a29'/>
<id>urn:sha1:5e53a4f90f82c4345f277dd87cc9292f26e04a29</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using mis-identified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
</content>
</entry>
<entry>
<title>r308996 broke IP literals by assuming that a colon could only occur as</title>
<updated>2017-03-17T14:18:52Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2017-03-17T14:18:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=08a49957b3f06926744987207d542efa2631394d'/>
<id>urn:sha1:08a49957b3f06926744987207d542efa2631394d</id>
<content type='text'>
a separator between host and port, and using strchr() to search for it.
Rewrite fetch_resolve() so it handles bracketed literals correctly, and
remove similar code elsewhere to avoid passing unbracketed literals to
fetch_resolve().  Remove #ifdef INET6 so we still parse IP literals
correctly even if we do not have the ability to connect to them.

While there, fix an off-by-one error which caused HTTP 400 errors to be
misinterpreted as redirects.

PR:		217723
MFC after:	1 week
Reported by:	bapt, bz, cem, ngie
</content>
</entry>
<entry>
<title>Properly initialize netrcfd in fetchParseURL</title>
<updated>2017-03-03T12:51:16Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2017-03-03T12:51:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5d1ce10bee2d232114aa38fa7be889374b70639b'/>
<id>urn:sha1:5d1ce10bee2d232114aa38fa7be889374b70639b</id>
<content type='text'>
This fixes ftp with fetch(1) which was broken after r313974

Submitted by:	dim
Reported by:	olivier
Pointyhat to:	bapt
</content>
</entry>
<entry>
<title>Add a file descriptor in struct url for netrc</title>
<updated>2017-02-20T00:14:31Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2017-02-20T00:14:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d8713bf36156f6c6179cc989fc370a7f9a0ca062'/>
<id>urn:sha1:d8713bf36156f6c6179cc989fc370a7f9a0ca062</id>
<content type='text'>
When using libfetch in an application that drops privileges when fetching
like pkg(8) then user complain because the application does not read anymore
${HOME}/.netrc. Now a caller can prepare a fd to the said file and manually
assign it to the structure.

It is also a first step to allow to capsicumize libfetch applications

Reviewed by:	allanjude, des
Approved by:	des
Differential Revision:	https://reviews.freebsd.org/D9678
</content>
</entry>
<entry>
<title>Fix -Wunsequenced warning.</title>
<updated>2013-06-29T15:51:27Z</updated>
<author>
<name>Tim Kientzle</name>
<email>kientzle@FreeBSD.org</email>
</author>
<published>2013-06-29T15:51:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9bc22394d885aba91d8cd52655c1a8d183bc0ead'/>
<id>urn:sha1:9bc22394d885aba91d8cd52655c1a8d183bc0ead</id>
<content type='text'>
Submitted by:	dt71@gmx.com
</content>
</entry>
</feed>
