freebsd-dev/lib/libfetch
Baptiste Daroussin d8713bf361 Add a file descriptor in struct url for netrc
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
2017-02-20 00:14:31 +00:00
..
common.c Add a file descriptor in struct url for netrc 2017-02-20 00:14:31 +00:00
common.h Refactor fetch_connect() and fetch_bind() to improve readability and avoid 2016-11-22 13:30:07 +00:00
fetch.3 Fix bunch of .Xrs. 2016-03-28 16:48:28 +00:00
fetch.c Add a file descriptor in struct url for netrc 2017-02-20 00:14:31 +00:00
fetch.h Add a file descriptor in struct url for netrc 2017-02-20 00:14:31 +00:00
file.c Call closedir() before returning from fetchListFile() to avoid a leak. 2016-05-25 07:43:32 +00:00
ftp.c Refactor fetch_connect() and fetch_bind() to improve readability and avoid 2016-11-22 13:30:07 +00:00
ftp.errors
http.c Fix inverted loop condition which broke multi-line responses to CONNECT. 2016-12-30 14:54:54 +00:00
http.errors Don't deny non-temporary redirects if the -A option is set (per 2012-10-22 03:00:10 +00:00
Makefile First pass through library packaging. 2016-02-04 21:16:35 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00