Home | History | Annotate | only in /src/external/bsd/fetch/dist
History log of /src/external/bsd/fetch/dist
RevisionDateAuthorComments
 1.14 20-Oct-2026  riastradh libfetch: Fix missing SSL_set1_host call.

PR lib/60878: libfetch: missing SSL_set1_host call
 1.13 16-Apr-2026  wiz libfetch: remove HAVE_POLL section again

the problem was the missing HAVE_POLL_H definition, now fixed
 1.12 16-Apr-2026  wiz libfetch: reduce diffs to pkgsrc/

style changes
 1.11 16-Apr-2026  wiz libfetch: revert HAVE_POLL removal
 1.10 16-Apr-2026  wiz libfetch: reduce diffs to pkgsrc

compute result in a variable
 1.9 16-Apr-2026  wiz libfetch: reduce diffs to pkgsrc

remove HAVE_POLL
 1.8 11-Apr-2026  wiz libfetch: convert (name in comment) to UTF-8
 1.7 02-Feb-2024  christos branches: 1.7.4;
Sync with pkgsrc and try to fix more memory corruption from PR/57179.
 1.6 03-Jan-2024  riastradh fetch(3): Backport SSL validation from pkgsrc libfetch 2.40.

We should really sync with pkgsrc libfetch to avoid divergence, but
this is a low-risk, high-priority change for NetBSD 10:

https://mail-index.netbsd.org/pkgsrc-changes/2024/01/03/msg290052.html
 1.5 29-Dec-2023  christos PR/57179: Christof Meerwald: Fix bugs in fetch_cache_{get,put}.
 1.4 24-Jan-2023  mlelstv Shut down SSL when closing connection.
 1.3 24-Jan-2023  mlelstv Use SNI.
 1.2 25-Jun-2011  christos branches: 1.2.36; 1.2.46; 1.2.54;
delint
 1.1 30-Sep-2008  joerg branches: 1.1.1;
Initial revision
 1.1.1.9 24-Mar-2010  joerg libfetch-2.31:

PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
 1.1.1.8 30-Jan-2010  joerg libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.7 15-Oct-2009  joerg libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.
 1.1.1.6 21-Aug-2009  joerg Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it
 1.1.1.5 04-Apr-2009  joerg branches: 1.1.1.5.2; 1.1.1.5.4;
Reimport libfetch-2.23 from pkgsrc, at least one change was lost.
 1.1.1.4 10-Mar-2009  joerg Import libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
for if-modified-since on local files.
 1.1.1.3 14-Feb-2009  joerg Update to libfetch-2.22:
- Support for conditional fetch
- Allow correctly overwriting fetchRestartCalls from signal handlers by
making it volatile
- Explicitly document that the size of struct url can increase.
 1.1.1.2 07-Oct-2008  joerg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
Update to libfetch-2.17. Fix a bug in the line buffering code to not
drop output if the server actually send more than one line.
 1.1.1.1 30-Sep-2008  joerg Import libfetch from pkgsrc, which remains authoritive.

libfetch is a high-level interface for retreiving and uploading files
using URLs. Currently implemented are local file access, FTP, HTTP and
basic HTTPS support, upload only for local files and FTP.
 1.1.1.5.4.4 13-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1390):

external/bsd/fetch/dist/libfetch/common.c: patch
external/bsd/fetch/dist/libfetch/common.h: patch
external/bsd/fetch/dist/libfetch/fetch.cat3: removed
external/bsd/fetch/dist/libfetch/ftp.c: patch

libfetch-2.31:

PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
 1.1.1.5.4.3 12-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1384):
external/bsd/fetch/dist/libfetch/common.c 1.1.1.6-8
external/bsd/fetch/dist/libfetch/common.h 1.1.1.5-6
external/bsd/fetch/dist/libfetch/fetch.3 1.1.1.7-8
external/bsd/fetch/dist/libfetch/fetch.c 1.1.1.8
external/bsd/fetch/dist/libfetch/fetch.cat3 1.1.1.4-5
external/bsd/fetch/dist/libfetch/fetch.h 1.1.1.5-7
external/bsd/fetch/dist/libfetch/file.c 1.1.1.5-6
external/bsd/fetch/dist/libfetch/ftp.c 1.1.1.7-10
external/bsd/fetch/dist/libfetch/http.c 1.1.1.5-7

Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.5.4.2 05-Jun-2009  snj Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
 1.1.1.5.4.1 04-Apr-2009  snj file common.c was added on branch netbsd-4 on 2009-06-05 17:19:28 +0000
 1.1.1.5.2.2 05-Jun-2009  snj Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
 1.1.1.5.2.1 04-Apr-2009  snj file common.c was added on branch netbsd-4-0 on 2009-06-05 17:01:45 +0000
 1.1.1.2.8.2 15-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings; useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.8.1 30-May-2009  snj branches: 1.1.1.2.8.1.2;
Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.8.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.6.1 13-May-2009  jym Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.2.4.3 20-Nov-2010  riz Pull up following revision(s) (requested by joerg in ticket #1351):
external/bsd/fetch/dist/libfetch/common.c: patch
external/bsd/fetch/dist/libfetch/common.h: patch
external/bsd/fetch/dist/libfetch/ftp.c: patch
update to libfetch-2.31:

PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
 1.1.1.2.4.2 03-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.4.1 30-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.2.2 19-Oct-2008  haad Sync with HEAD.
 1.1.1.2.2.1 07-Oct-2008  haad file common.c was added on branch haad-dm on 2008-10-19 22:39:50 +0000
 1.2.54.4 20-Oct-2026  martin Pull up following revision(s) (requested by riastradh in ticket #1382):

external/bsd/fetch/dist/libfetch/common.c: revision 1.14

libfetch: Fix missing SSL_set1_host call.

PR lib/60878: libfetch: missing SSL_set1_host call
 1.2.54.3 15-Oct-2024  martin Pull up the following revisions, requested by wiz in ticket #980:

external/bsd/fetch/dist/libfetch/common.c up to 1.7
external/bsd/fetch/dist/libfetch/common.h up to 1.3
external/bsd/fetch/dist/libfetch/fetch.3 up to 1.5
external/bsd/fetch/dist/libfetch/ftp.c up to 1.8
external/bsd/fetch/dist/libfetch/http.c up to 1.6

libfetch: fix pkg_install core dumps reported in PR 57179
 1.2.54.2 14-Jan-2024  martin Pull up following revision(s) (requested by riastradh in ticket #536):

external/bsd/fetch/dist/libfetch/common.c: revision 1.6

fetch(3): Backport SSL validation from pkgsrc libfetch 2.40.

We should really sync with pkgsrc libfetch to avoid divergence, but
this is a low-risk, high-priority change for NetBSD 10:
https://mail-index.netbsd.org/pkgsrc-changes/2024/01/03/msg290052.html
 1.2.54.1 22-Feb-2023  martin Pull up following revision(s) (requested by mlelstv in ticket #95):

external/bsd/fetch/dist/libfetch/common.c: revision 1.3
external/bsd/fetch/dist/libfetch/common.c: revision 1.4

Use SNI.
Shut down SSL when closing connection.
 1.2.46.1 01-Apr-2023  martin Pull up following revision(s) (requested by mlelstv in ticket #1618):

external/bsd/fetch/dist/libfetch/common.c: revision 1.3
external/bsd/fetch/dist/libfetch/common.c: revision 1.4

Use SNI.

Shut down SSL when closing connection.
 1.2.36.1 01-Apr-2023  martin Pull up following revision(s) (requested by mlelstv in ticket #1811):

external/bsd/fetch/dist/libfetch/common.c: revision 1.3
external/bsd/fetch/dist/libfetch/common.c: revision 1.4

Use SNI.

Shut down SSL when closing connection.
 1.7.4.1 20-Oct-2026  martin Pull up following revision(s) (requested by riastradh in ticket #536):

external/bsd/fetch/dist/libfetch/common.c: revision 1.14

libfetch: Fix missing SSL_set1_host call.

PR lib/60878: libfetch: missing SSL_set1_host call
 1.5 16-Apr-2026  wiz libfetch: reduce diffs to pkgsrc

portability (xenix, __apple__)
 1.4 11-Apr-2026  wiz libfetch: convert (name in comment) to UTF-8
 1.3 02-Feb-2024  christos Sync with pkgsrc and try to fix more memory corruption from PR/57179.
 1.2 07-Jan-2014  joerg branches: 1.2.36;
Annotate format strings. Add a bunch of int casts for size limits.
 1.1 30-Sep-2008  joerg branches: 1.1.1;
Initial revision
 1.1.1.7 24-Mar-2010  joerg branches: 1.1.1.7.6; 1.1.1.7.12;
libfetch-2.31:

PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
 1.1.1.6 30-Jan-2010  joerg libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.5 21-Aug-2009  joerg Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it
 1.1.1.4 04-Apr-2009  joerg branches: 1.1.1.4.2; 1.1.1.4.4;
Reimport libfetch-2.23 from pkgsrc, at least one change was lost.
 1.1.1.3 10-Mar-2009  joerg Import libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
for if-modified-since on local files.
 1.1.1.2 07-Oct-2008  joerg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
Update to libfetch-2.17. Fix a bug in the line buffering code to not
drop output if the server actually send more than one line.
 1.1.1.1 30-Sep-2008  joerg Import libfetch from pkgsrc, which remains authoritive.

libfetch is a high-level interface for retreiving and uploading files
using URLs. Currently implemented are local file access, FTP, HTTP and
basic HTTPS support, upload only for local files and FTP.
 1.1.1.7.12.1 19-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.1.7.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.1.4.4.4 13-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1390):

external/bsd/fetch/dist/libfetch/common.c: patch
external/bsd/fetch/dist/libfetch/common.h: patch
external/bsd/fetch/dist/libfetch/fetch.cat3: removed
external/bsd/fetch/dist/libfetch/ftp.c: patch

libfetch-2.31:

PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
 1.1.1.4.4.3 12-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1384):
external/bsd/fetch/dist/libfetch/common.c 1.1.1.6-8
external/bsd/fetch/dist/libfetch/common.h 1.1.1.5-6
external/bsd/fetch/dist/libfetch/fetch.3 1.1.1.7-8
external/bsd/fetch/dist/libfetch/fetch.c 1.1.1.8
external/bsd/fetch/dist/libfetch/fetch.cat3 1.1.1.4-5
external/bsd/fetch/dist/libfetch/fetch.h 1.1.1.5-7
external/bsd/fetch/dist/libfetch/file.c 1.1.1.5-6
external/bsd/fetch/dist/libfetch/ftp.c 1.1.1.7-10
external/bsd/fetch/dist/libfetch/http.c 1.1.1.5-7

Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.4.4.2 05-Jun-2009  snj Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
 1.1.1.4.4.1 04-Apr-2009  snj file common.h was added on branch netbsd-4 on 2009-06-05 17:19:28 +0000
 1.1.1.4.2.2 05-Jun-2009  snj Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
 1.1.1.4.2.1 04-Apr-2009  snj file common.h was added on branch netbsd-4-0 on 2009-06-05 17:01:45 +0000
 1.1.1.2.8.2 15-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings; useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.8.1 30-May-2009  snj branches: 1.1.1.2.8.1.2;
Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.8.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.6.1 13-May-2009  jym Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.2.4.3 20-Nov-2010  riz Pull up following revision(s) (requested by joerg in ticket #1351):
external/bsd/fetch/dist/libfetch/common.c: patch
external/bsd/fetch/dist/libfetch/common.h: patch
external/bsd/fetch/dist/libfetch/ftp.c: patch
update to libfetch-2.31:

PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
 1.1.1.2.4.2 03-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.4.1 30-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.2.2 19-Oct-2008  haad Sync with HEAD.
 1.1.1.2.2.1 07-Oct-2008  haad file common.h was added on branch haad-dm on 2008-10-19 22:39:50 +0000
 1.2.36.1 15-Oct-2024  martin Pull up the following revisions, requested by wiz in ticket #980:

external/bsd/fetch/dist/libfetch/common.c up to 1.7
external/bsd/fetch/dist/libfetch/common.h up to 1.3
external/bsd/fetch/dist/libfetch/fetch.3 up to 1.5
external/bsd/fetch/dist/libfetch/ftp.c up to 1.8
external/bsd/fetch/dist/libfetch/http.c up to 1.6

libfetch: fix pkg_install core dumps reported in PR 57179
 1.1 30-Sep-2008  joerg branches: 1.1.1;
Initial revision
 1.1.1.4 04-Apr-2009  joerg branches: 1.1.1.4.2; 1.1.1.4.4;
Reimport libfetch-2.23 from pkgsrc, at least one change was lost.
 1.1.1.3 10-Mar-2009  joerg Import libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
for if-modified-since on local files.
 1.1.1.2 07-Oct-2008  joerg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
Update to libfetch-2.17. Fix a bug in the line buffering code to not
drop output if the server actually send more than one line.
 1.1.1.1 30-Sep-2008  joerg Import libfetch from pkgsrc, which remains authoritive.

libfetch is a high-level interface for retreiving and uploading files
using URLs. Currently implemented are local file access, FTP, HTTP and
basic HTTPS support, upload only for local files and FTP.
 1.1.1.4.4.2 05-Jun-2009  snj Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
 1.1.1.4.4.1 04-Apr-2009  snj file errlist.sh was added on branch netbsd-4 on 2009-06-05 17:19:28 +0000
 1.1.1.4.2.2 05-Jun-2009  snj Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
 1.1.1.4.2.1 04-Apr-2009  snj file errlist.sh was added on branch netbsd-4-0 on 2009-06-05 17:01:45 +0000
 1.1.1.2.8.2 15-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings; useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.8.1 30-May-2009  snj branches: 1.1.1.2.8.1.2;
Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.8.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.6.1 13-May-2009  jym Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.2.4.2 03-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.4.1 30-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.2.2 19-Oct-2008  haad Sync with HEAD.
 1.1.1.2.2.1 07-Oct-2008  haad file errlist.sh was added on branch haad-dm on 2008-10-19 22:39:50 +0000
 1.6 11-Apr-2026  wiz libfetch: convert (name in comment) to UTF-8
 1.5 02-Feb-2024  christos Sync with pkgsrc and try to fix more memory corruption from PR/57179.
 1.4 31-May-2016  abhinav branches: 1.4.26;
Add the missing parameter "const char *pattern" to the fetchList* functions.

From Julian Fagir in PR lib/45579
 1.3 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.2 20-Jul-2013  wiz Use Mt for email addresses.
 1.1 30-Sep-2008  joerg branches: 1.1.1;
Initial revision
 1.1.1.8 30-Jan-2010  joerg branches: 1.1.1.8.6; 1.1.1.8.12; 1.1.1.8.16;
libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.7 15-Oct-2009  joerg libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.
 1.1.1.6 04-Apr-2009  joerg branches: 1.1.1.6.2; 1.1.1.6.4;
Reimport libfetch-2.23 from pkgsrc, at least one change was lost.
 1.1.1.5 10-Mar-2009  joerg Import libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
for if-modified-since on local files.
 1.1.1.4 14-Feb-2009  joerg Update to libfetch-2.22:
- Support for conditional fetch
- Allow correctly overwriting fetchRestartCalls from signal handlers by
making it volatile
- Explicitly document that the size of struct url can increase.
 1.1.1.3 29-Oct-2008  joerg branches: 1.1.1.3.2; 1.1.1.3.4; 1.1.1.3.6;
Import libfetch-2.19 from pkgsrc:
- fix bug in URL quoting
- man page improvements
- remove passive mode flag, add flag to force active mode and fallback
from passive to active on syntax errors automatically
 1.1.1.2 07-Oct-2008  joerg branches: 1.1.1.2.2;
Update to libfetch-2.17. Fix a bug in the line buffering code to not
drop output if the server actually send more than one line.
 1.1.1.1 30-Sep-2008  joerg Import libfetch from pkgsrc, which remains authoritive.

libfetch is a high-level interface for retreiving and uploading files
using URLs. Currently implemented are local file access, FTP, HTTP and
basic HTTPS support, upload only for local files and FTP.
 1.1.1.8.16.1 23-Jul-2013  riastradh sync with HEAD
 1.1.1.8.12.1 19-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.1.8.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.1.6.4.3 12-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1384):
external/bsd/fetch/dist/libfetch/common.c 1.1.1.6-8
external/bsd/fetch/dist/libfetch/common.h 1.1.1.5-6
external/bsd/fetch/dist/libfetch/fetch.3 1.1.1.7-8
external/bsd/fetch/dist/libfetch/fetch.c 1.1.1.8
external/bsd/fetch/dist/libfetch/fetch.cat3 1.1.1.4-5
external/bsd/fetch/dist/libfetch/fetch.h 1.1.1.5-7
external/bsd/fetch/dist/libfetch/file.c 1.1.1.5-6
external/bsd/fetch/dist/libfetch/ftp.c 1.1.1.7-10
external/bsd/fetch/dist/libfetch/http.c 1.1.1.5-7

Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.6.4.2 05-Jun-2009  snj Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
 1.1.1.6.4.1 04-Apr-2009  snj file fetch.3 was added on branch netbsd-4 on 2009-06-05 17:19:28 +0000
 1.1.1.6.2.2 05-Jun-2009  snj Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
 1.1.1.6.2.1 04-Apr-2009  snj file fetch.3 was added on branch netbsd-4-0 on 2009-06-05 17:01:45 +0000
 1.1.1.3.6.2 15-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings; useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.3.6.1 30-May-2009  snj branches: 1.1.1.3.6.1.2;
Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.3.6.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.3.4.1 13-May-2009  jym Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.3.2.2 03-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.3.2.1 30-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.2.2 19-Oct-2008  haad Sync with HEAD.
 1.1.1.2.2.1 07-Oct-2008  haad file fetch.3 was added on branch haad-dm on 2008-10-19 22:39:50 +0000
 1.4.26.1 15-Oct-2024  martin Pull up the following revisions, requested by wiz in ticket #980:

external/bsd/fetch/dist/libfetch/common.c up to 1.7
external/bsd/fetch/dist/libfetch/common.h up to 1.3
external/bsd/fetch/dist/libfetch/fetch.3 up to 1.5
external/bsd/fetch/dist/libfetch/ftp.c up to 1.8
external/bsd/fetch/dist/libfetch/http.c up to 1.6

libfetch: fix pkg_install core dumps reported in PR 57179
 1.2 11-Apr-2026  wiz libfetch: convert (name in comment) to UTF-8
 1.1 30-Sep-2008  joerg branches: 1.1.1;
Initial revision
 1.1.1.8 21-Aug-2009  joerg Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it
 1.1.1.7 04-Apr-2009  joerg branches: 1.1.1.7.2; 1.1.1.7.4;
Reimport libfetch-2.23 from pkgsrc, at least one change was lost.
 1.1.1.6 10-Mar-2009  joerg Import libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
for if-modified-since on local files.
 1.1.1.5 14-Feb-2009  joerg Update to libfetch-2.22:
- Support for conditional fetch
- Allow correctly overwriting fetchRestartCalls from signal handlers by
making it volatile
- Explicitly document that the size of struct url can increase.
 1.1.1.4 14-Nov-2008  joerg branches: 1.1.1.4.2;
Update to libfetch 2.20: Allow HTTP auth to be provided in URL.
 1.1.1.3 29-Oct-2008  joerg branches: 1.1.1.3.2; 1.1.1.3.4;
Import libfetch-2.19 from pkgsrc:
- fix bug in URL quoting
- man page improvements
- remove passive mode flag, add flag to force active mode and fallback
from passive to active on syntax errors automatically
 1.1.1.2 07-Oct-2008  joerg branches: 1.1.1.2.2;
Update to libfetch-2.17. Fix a bug in the line buffering code to not
drop output if the server actually send more than one line.
 1.1.1.1 30-Sep-2008  joerg Import libfetch from pkgsrc, which remains authoritive.

libfetch is a high-level interface for retreiving and uploading files
using URLs. Currently implemented are local file access, FTP, HTTP and
basic HTTPS support, upload only for local files and FTP.
 1.1.1.7.4.3 12-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1384):
external/bsd/fetch/dist/libfetch/common.c 1.1.1.6-8
external/bsd/fetch/dist/libfetch/common.h 1.1.1.5-6
external/bsd/fetch/dist/libfetch/fetch.3 1.1.1.7-8
external/bsd/fetch/dist/libfetch/fetch.c 1.1.1.8
external/bsd/fetch/dist/libfetch/fetch.cat3 1.1.1.4-5
external/bsd/fetch/dist/libfetch/fetch.h 1.1.1.5-7
external/bsd/fetch/dist/libfetch/file.c 1.1.1.5-6
external/bsd/fetch/dist/libfetch/ftp.c 1.1.1.7-10
external/bsd/fetch/dist/libfetch/http.c 1.1.1.5-7

Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.7.4.2 05-Jun-2009  snj Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
 1.1.1.7.4.1 04-Apr-2009  snj file fetch.c was added on branch netbsd-4 on 2009-06-05 17:19:28 +0000
 1.1.1.7.2.2 05-Jun-2009  snj Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
 1.1.1.7.2.1 04-Apr-2009  snj file fetch.c was added on branch netbsd-4-0 on 2009-06-05 17:01:45 +0000
 1.1.1.4.2.1 13-May-2009  jym Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.3.4.2 15-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings; useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.3.4.1 30-May-2009  snj branches: 1.1.1.3.4.1.2;
Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.3.4.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.3.2.2 03-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.3.2.1 30-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.2.2 19-Oct-2008  haad Sync with HEAD.
 1.1.1.2.2.1 07-Oct-2008  haad file fetch.c was added on branch haad-dm on 2008-10-19 22:39:50 +0000
 1.2 24-Mar-2010  joerg Merge
 1.1 30-Sep-2008  joerg branches: 1.1.1;
Initial revision
 1.1.1.5 15-Oct-2009  joerg libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.
 1.1.1.4 21-Aug-2009  joerg Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it
 1.1.1.3 14-Feb-2009  joerg branches: 1.1.1.3.2; 1.1.1.3.4;
Update to libfetch-2.22:
- Support for conditional fetch
- Allow correctly overwriting fetchRestartCalls from signal handlers by
making it volatile
- Explicitly document that the size of struct url can increase.
 1.1.1.2 29-Oct-2008  joerg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6;
Import libfetch-2.19 from pkgsrc:
- fix bug in URL quoting
- man page improvements
- remove passive mode flag, add flag to force active mode and fallback
from passive to active on syntax errors automatically
 1.1.1.1 30-Sep-2008  joerg branches: 1.1.1.1.4;
Import libfetch from pkgsrc, which remains authoritive.

libfetch is a high-level interface for retreiving and uploading files
using URLs. Currently implemented are local file access, FTP, HTTP and
basic HTTPS support, upload only for local files and FTP.
 1.1.1.3.4.4 13-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1390):

external/bsd/fetch/dist/libfetch/common.c: patch
external/bsd/fetch/dist/libfetch/common.h: patch
external/bsd/fetch/dist/libfetch/fetch.cat3: removed
external/bsd/fetch/dist/libfetch/ftp.c: patch

libfetch-2.31:

PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
 1.1.1.3.4.3 12-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1384):
external/bsd/fetch/dist/libfetch/common.c 1.1.1.6-8
external/bsd/fetch/dist/libfetch/common.h 1.1.1.5-6
external/bsd/fetch/dist/libfetch/fetch.3 1.1.1.7-8
external/bsd/fetch/dist/libfetch/fetch.c 1.1.1.8
external/bsd/fetch/dist/libfetch/fetch.cat3 1.1.1.4-5
external/bsd/fetch/dist/libfetch/fetch.h 1.1.1.5-7
external/bsd/fetch/dist/libfetch/file.c 1.1.1.5-6
external/bsd/fetch/dist/libfetch/ftp.c 1.1.1.7-10
external/bsd/fetch/dist/libfetch/http.c 1.1.1.5-7

Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.3.4.2 05-Jun-2009  snj Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
 1.1.1.3.4.1 14-Feb-2009  snj file fetch.cat3 was added on branch netbsd-4 on 2009-06-05 17:19:28 +0000
 1.1.1.3.2.2 05-Jun-2009  snj Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
 1.1.1.3.2.1 14-Feb-2009  snj file fetch.cat3 was added on branch netbsd-4-0 on 2009-06-05 17:01:45 +0000
 1.1.1.2.6.2 15-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings; useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.6.1 30-May-2009  snj branches: 1.1.1.2.6.1.2;
Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.6.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.4.1 13-May-2009  jym Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.2.2.2 03-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.2.1 30-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.1.4.2 19-Oct-2008  haad Sync with HEAD.
 1.1.1.1.4.1 30-Sep-2008  haad file fetch.cat3 was added on branch haad-dm on 2008-10-19 22:39:50 +0000
 1.2 11-Apr-2026  wiz libfetch: convert (name in comment) to UTF-8
 1.1 30-Sep-2008  joerg branches: 1.1.1;
Initial revision
 1.1.1.7 30-Jan-2010  joerg libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.6 15-Oct-2009  joerg libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.
 1.1.1.5 04-Apr-2009  joerg branches: 1.1.1.5.2; 1.1.1.5.4;
Reimport libfetch-2.23 from pkgsrc, at least one change was lost.
 1.1.1.4 10-Mar-2009  joerg Import libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
for if-modified-since on local files.
 1.1.1.3 14-Feb-2009  joerg Update to libfetch-2.22:
- Support for conditional fetch
- Allow correctly overwriting fetchRestartCalls from signal handlers by
making it volatile
- Explicitly document that the size of struct url can increase.
 1.1.1.2 07-Oct-2008  joerg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
Update to libfetch-2.17. Fix a bug in the line buffering code to not
drop output if the server actually send more than one line.
 1.1.1.1 30-Sep-2008  joerg Import libfetch from pkgsrc, which remains authoritive.

libfetch is a high-level interface for retreiving and uploading files
using URLs. Currently implemented are local file access, FTP, HTTP and
basic HTTPS support, upload only for local files and FTP.
 1.1.1.5.4.3 12-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1384):
external/bsd/fetch/dist/libfetch/common.c 1.1.1.6-8
external/bsd/fetch/dist/libfetch/common.h 1.1.1.5-6
external/bsd/fetch/dist/libfetch/fetch.3 1.1.1.7-8
external/bsd/fetch/dist/libfetch/fetch.c 1.1.1.8
external/bsd/fetch/dist/libfetch/fetch.cat3 1.1.1.4-5
external/bsd/fetch/dist/libfetch/fetch.h 1.1.1.5-7
external/bsd/fetch/dist/libfetch/file.c 1.1.1.5-6
external/bsd/fetch/dist/libfetch/ftp.c 1.1.1.7-10
external/bsd/fetch/dist/libfetch/http.c 1.1.1.5-7

Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.5.4.2 05-Jun-2009  snj Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
 1.1.1.5.4.1 04-Apr-2009  snj file fetch.h was added on branch netbsd-4 on 2009-06-05 17:19:28 +0000
 1.1.1.5.2.2 05-Jun-2009  snj Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
 1.1.1.5.2.1 04-Apr-2009  snj file fetch.h was added on branch netbsd-4-0 on 2009-06-05 17:01:45 +0000
 1.1.1.2.8.2 15-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings; useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.8.1 30-May-2009  snj branches: 1.1.1.2.8.1.2;
Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.8.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.6.1 13-May-2009  jym Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.2.4.2 03-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.4.1 30-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.2.2 19-Oct-2008  haad Sync with HEAD.
 1.1.1.2.2.1 07-Oct-2008  haad file fetch.h was added on branch haad-dm on 2008-10-19 22:39:50 +0000
 1.3 11-Apr-2026  wiz libfetch: convert (name in comment) to UTF-8
 1.2 25-Jun-2011  christos delint
 1.1 30-Sep-2008  joerg branches: 1.1.1;
Initial revision
 1.1.1.6 15-Oct-2009  joerg libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.
 1.1.1.5 04-Apr-2009  joerg branches: 1.1.1.5.2; 1.1.1.5.4;
Reimport libfetch-2.23 from pkgsrc, at least one change was lost.
 1.1.1.4 10-Mar-2009  joerg Import libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
for if-modified-since on local files.
 1.1.1.3 14-Feb-2009  joerg Update to libfetch-2.22:
- Support for conditional fetch
- Allow correctly overwriting fetchRestartCalls from signal handlers by
making it volatile
- Explicitly document that the size of struct url can increase.
 1.1.1.2 07-Oct-2008  joerg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
Update to libfetch-2.17. Fix a bug in the line buffering code to not
drop output if the server actually send more than one line.
 1.1.1.1 30-Sep-2008  joerg Import libfetch from pkgsrc, which remains authoritive.

libfetch is a high-level interface for retreiving and uploading files
using URLs. Currently implemented are local file access, FTP, HTTP and
basic HTTPS support, upload only for local files and FTP.
 1.1.1.5.4.3 12-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1384):
external/bsd/fetch/dist/libfetch/common.c 1.1.1.6-8
external/bsd/fetch/dist/libfetch/common.h 1.1.1.5-6
external/bsd/fetch/dist/libfetch/fetch.3 1.1.1.7-8
external/bsd/fetch/dist/libfetch/fetch.c 1.1.1.8
external/bsd/fetch/dist/libfetch/fetch.cat3 1.1.1.4-5
external/bsd/fetch/dist/libfetch/fetch.h 1.1.1.5-7
external/bsd/fetch/dist/libfetch/file.c 1.1.1.5-6
external/bsd/fetch/dist/libfetch/ftp.c 1.1.1.7-10
external/bsd/fetch/dist/libfetch/http.c 1.1.1.5-7

Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.5.4.2 05-Jun-2009  snj Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
 1.1.1.5.4.1 04-Apr-2009  snj file file.c was added on branch netbsd-4 on 2009-06-05 17:19:28 +0000
 1.1.1.5.2.2 05-Jun-2009  snj Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
 1.1.1.5.2.1 04-Apr-2009  snj file file.c was added on branch netbsd-4-0 on 2009-06-05 17:01:45 +0000
 1.1.1.2.8.2 15-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings; useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.8.1 30-May-2009  snj branches: 1.1.1.2.8.1.2;
Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.8.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.6.1 13-May-2009  jym Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.2.4.2 03-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.4.1 30-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.2.2 19-Oct-2008  haad Sync with HEAD.
 1.1.1.2.2.1 07-Oct-2008  haad file file.c was added on branch haad-dm on 2008-10-19 22:39:50 +0000
 1.13 16-Apr-2026  wiz libfetch: reduce diffs to pkgsrc/

style changes
 1.12 16-Apr-2026  wiz libfetch: reduce diffs to pkgsrc

reduce variable scope
 1.11 16-Apr-2026  wiz libfetch: reduce diffs to src

add prototypes
 1.10 16-Apr-2026  wiz libfetch: reduce diffs to pkgsrc

call getenv directly instead of caching in a variable
 1.9 11-Apr-2026  wiz libfetch: convert (name in comment) to UTF-8
 1.8 02-Feb-2024  christos Sync with pkgsrc and try to fix more memory corruption from PR/57179.
 1.7 07-Jan-2014  joerg branches: 1.7.36;
Annotate format strings. Add a bunch of int casts for size limits.
 1.6 19-Oct-2013  mrg avoid a strict aliasing problem copying the mapped v4 address out of
a ipv6 address.
 1.5 17-Aug-2011  christos branches: 1.5.2; 1.5.8;
fix gcc array out of bounds confusion.
 1.4 25-Jun-2011  christos delint
 1.3 25-Jun-2011  christos add missing paren
 1.2 25-Jun-2011  christos It is a lot nicer to getenv() what you need once and makes the code a lot
more readable.
 1.1 30-Sep-2008  joerg branches: 1.1.1;
Initial revision
 1.1.1.11 24-Mar-2010  joerg libfetch-2.31:

PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
 1.1.1.10 30-Jan-2010  joerg libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.9 11-Jan-2010  joerg libfetch-2.27:
Fix a bug in the connection caching for FTP.
 1.1.1.8 15-Oct-2009  joerg libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.
 1.1.1.7 21-Aug-2009  joerg Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it
 1.1.1.6 04-Apr-2009  joerg branches: 1.1.1.6.2; 1.1.1.6.4;
Reimport libfetch-2.23 from pkgsrc, at least one change was lost.
 1.1.1.5 10-Mar-2009  joerg Import libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
for if-modified-since on local files.
 1.1.1.4 14-Feb-2009  joerg Update to libfetch-2.22:
- Support for conditional fetch
- Allow correctly overwriting fetchRestartCalls from signal handlers by
making it volatile
- Explicitly document that the size of struct url can increase.
 1.1.1.3 29-Oct-2008  joerg branches: 1.1.1.3.2; 1.1.1.3.4; 1.1.1.3.6;
Import libfetch-2.19 from pkgsrc:
- fix bug in URL quoting
- man page improvements
- remove passive mode flag, add flag to force active mode and fallback
from passive to active on syntax errors automatically
 1.1.1.2 07-Oct-2008  joerg branches: 1.1.1.2.2;
Update to libfetch-2.17. Fix a bug in the line buffering code to not
drop output if the server actually send more than one line.
 1.1.1.1 30-Sep-2008  joerg Import libfetch from pkgsrc, which remains authoritive.

libfetch is a high-level interface for retreiving and uploading files
using URLs. Currently implemented are local file access, FTP, HTTP and
basic HTTPS support, upload only for local files and FTP.
 1.1.1.6.4.4 13-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1390):

external/bsd/fetch/dist/libfetch/common.c: patch
external/bsd/fetch/dist/libfetch/common.h: patch
external/bsd/fetch/dist/libfetch/fetch.cat3: removed
external/bsd/fetch/dist/libfetch/ftp.c: patch

libfetch-2.31:

PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
 1.1.1.6.4.3 12-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1384):
external/bsd/fetch/dist/libfetch/common.c 1.1.1.6-8
external/bsd/fetch/dist/libfetch/common.h 1.1.1.5-6
external/bsd/fetch/dist/libfetch/fetch.3 1.1.1.7-8
external/bsd/fetch/dist/libfetch/fetch.c 1.1.1.8
external/bsd/fetch/dist/libfetch/fetch.cat3 1.1.1.4-5
external/bsd/fetch/dist/libfetch/fetch.h 1.1.1.5-7
external/bsd/fetch/dist/libfetch/file.c 1.1.1.5-6
external/bsd/fetch/dist/libfetch/ftp.c 1.1.1.7-10
external/bsd/fetch/dist/libfetch/http.c 1.1.1.5-7

Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.6.4.2 05-Jun-2009  snj Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
 1.1.1.6.4.1 04-Apr-2009  snj file ftp.c was added on branch netbsd-4 on 2009-06-05 17:19:28 +0000
 1.1.1.6.2.2 05-Jun-2009  snj Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
 1.1.1.6.2.1 04-Apr-2009  snj file ftp.c was added on branch netbsd-4-0 on 2009-06-05 17:01:45 +0000
 1.1.1.3.6.2 15-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings; useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.3.6.1 30-May-2009  snj branches: 1.1.1.3.6.1.2;
Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.3.6.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.3.4.1 13-May-2009  jym Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.3.2.3 20-Nov-2010  riz Pull up following revision(s) (requested by joerg in ticket #1351):
external/bsd/fetch/dist/libfetch/common.c: patch
external/bsd/fetch/dist/libfetch/common.h: patch
external/bsd/fetch/dist/libfetch/ftp.c: patch
update to libfetch-2.31:

PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
 1.1.1.3.2.2 03-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.3.2.1 30-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.2.2 19-Oct-2008  haad Sync with HEAD.
 1.1.1.2.2.1 07-Oct-2008  haad file ftp.c was added on branch haad-dm on 2008-10-19 22:39:50 +0000
 1.5.8.1 19-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.7.36.1 15-Oct-2024  martin Pull up the following revisions, requested by wiz in ticket #980:

external/bsd/fetch/dist/libfetch/common.c up to 1.7
external/bsd/fetch/dist/libfetch/common.h up to 1.3
external/bsd/fetch/dist/libfetch/fetch.3 up to 1.5
external/bsd/fetch/dist/libfetch/ftp.c up to 1.8
external/bsd/fetch/dist/libfetch/http.c up to 1.6

libfetch: fix pkg_install core dumps reported in PR 57179
 1.1 30-Sep-2008  joerg branches: 1.1.1;
Initial revision
 1.1.1.4 04-Apr-2009  joerg branches: 1.1.1.4.2; 1.1.1.4.4;
Reimport libfetch-2.23 from pkgsrc, at least one change was lost.
 1.1.1.3 10-Mar-2009  joerg Import libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
for if-modified-since on local files.
 1.1.1.2 07-Oct-2008  joerg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
Update to libfetch-2.17. Fix a bug in the line buffering code to not
drop output if the server actually send more than one line.
 1.1.1.1 30-Sep-2008  joerg Import libfetch from pkgsrc, which remains authoritive.

libfetch is a high-level interface for retreiving and uploading files
using URLs. Currently implemented are local file access, FTP, HTTP and
basic HTTPS support, upload only for local files and FTP.
 1.1.1.4.4.2 05-Jun-2009  snj Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
 1.1.1.4.4.1 04-Apr-2009  snj file ftp.errors was added on branch netbsd-4 on 2009-06-05 17:19:28 +0000
 1.1.1.4.2.2 05-Jun-2009  snj Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
 1.1.1.4.2.1 04-Apr-2009  snj file ftp.errors was added on branch netbsd-4-0 on 2009-06-05 17:01:45 +0000
 1.1.1.2.8.2 15-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings; useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.8.1 30-May-2009  snj branches: 1.1.1.2.8.1.2;
Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.8.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.6.1 13-May-2009  jym Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.2.4.2 03-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.4.1 30-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.2.2 19-Oct-2008  haad Sync with HEAD.
 1.1.1.2.2.1 07-Oct-2008  haad file ftp.errors was added on branch haad-dm on 2008-10-19 22:39:50 +0000
 1.14 16-Apr-2026  wiz libfetch: sync with pkgsrc

whitespace
 1.13 16-Apr-2026  wiz libfetch: sync with pkgsrc

add missing line, not sure where that got lost
sync whitespace
 1.12 16-Apr-2026  wiz libfetch: sync with pkgsrc

revision 1.43
date: 2025-02-18 13:59:54 +0100; author: wiz; state: Exp; lines: +24 -7; commitid: FUNM7pDAcd8v2XJF;
libfetch: Fix proxy connections.

From Jonathan Perkin <jperkin@smartos.org>
via drecklypkg commit $e6083c3a737b5451887c0c803b807c63e63aa046
 1.11 16-Apr-2026  wiz libfetch: reduce diffs to pkgsrc/

style changes
 1.10 16-Apr-2026  wiz libfetch: reduce diffs to src

add prototypes
 1.9 16-Apr-2026  wiz libfetch: reduce diffs to pkgsrc

portability (xenix, __apple__)
 1.8 16-Apr-2026  wiz libfetch: reduce diffs to pkgsrc

Remove unused variable
 1.7 11-Apr-2026  wiz libfetch: convert (name in comment) to UTF-8
 1.6 01-Sep-2024  christos PR/58656: RVP: Fix proxy authentication for https and when proxy does not
add any extra headers.
 1.5 02-Feb-2024  christos branches: 1.5.2;
Sync with pkgsrc and try to fix more memory corruption from PR/57179.
 1.4 01-Jun-2020  kamil branches: 1.4.6;
Avoid redefining _REENTRANT under sanitizers

Switch away from -Wno-macro-redefined which was Clang/LLVM specific.
 1.3 07-Jan-2014  joerg Annotate format strings. Add a bunch of int casts for size limits.
 1.2 25-Jun-2011  christos branches: 1.2.2; 1.2.8;
delint
 1.1 30-Sep-2008  joerg branches: 1.1.1;
Initial revision
 1.1.1.7 30-Jan-2010  joerg libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.6 15-Oct-2009  joerg libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.
 1.1.1.5 04-Apr-2009  joerg branches: 1.1.1.5.2; 1.1.1.5.4;
Reimport libfetch-2.23 from pkgsrc, at least one change was lost.
 1.1.1.4 10-Mar-2009  joerg Import libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
for if-modified-since on local files.
 1.1.1.3 14-Feb-2009  joerg Update to libfetch-2.22:
- Support for conditional fetch
- Allow correctly overwriting fetchRestartCalls from signal handlers by
making it volatile
- Explicitly document that the size of struct url can increase.
 1.1.1.2 07-Oct-2008  joerg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
Update to libfetch-2.17. Fix a bug in the line buffering code to not
drop output if the server actually send more than one line.
 1.1.1.1 30-Sep-2008  joerg Import libfetch from pkgsrc, which remains authoritive.

libfetch is a high-level interface for retreiving and uploading files
using URLs. Currently implemented are local file access, FTP, HTTP and
basic HTTPS support, upload only for local files and FTP.
 1.1.1.5.4.3 12-Jun-2010  riz Pull up following revision(s) (requested by joerg in ticket #1384):
external/bsd/fetch/dist/libfetch/common.c 1.1.1.6-8
external/bsd/fetch/dist/libfetch/common.h 1.1.1.5-6
external/bsd/fetch/dist/libfetch/fetch.3 1.1.1.7-8
external/bsd/fetch/dist/libfetch/fetch.c 1.1.1.8
external/bsd/fetch/dist/libfetch/fetch.cat3 1.1.1.4-5
external/bsd/fetch/dist/libfetch/fetch.h 1.1.1.5-7
external/bsd/fetch/dist/libfetch/file.c 1.1.1.5-6
external/bsd/fetch/dist/libfetch/ftp.c 1.1.1.7-10
external/bsd/fetch/dist/libfetch/http.c 1.1.1.5-7

Import libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.5.4.2 05-Jun-2009  snj Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
 1.1.1.5.4.1 04-Apr-2009  snj file http.c was added on branch netbsd-4 on 2009-06-05 17:19:28 +0000
 1.1.1.5.2.2 05-Jun-2009  snj Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
 1.1.1.5.2.1 04-Apr-2009  snj file http.c was added on branch netbsd-4-0 on 2009-06-05 17:01:45 +0000
 1.1.1.2.8.2 15-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings; useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.8.1 30-May-2009  snj branches: 1.1.1.2.8.1.2;
Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.8.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.6.1 13-May-2009  jym Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.2.4.2 03-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.4.1 30-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.2.2 19-Oct-2008  haad Sync with HEAD.
 1.1.1.2.2.1 07-Oct-2008  haad file http.c was added on branch haad-dm on 2008-10-19 22:39:50 +0000
 1.2.8.1 19-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4.6.1 15-Oct-2024  martin Pull up the following revisions, requested by wiz in ticket #980:

external/bsd/fetch/dist/libfetch/common.c up to 1.7
external/bsd/fetch/dist/libfetch/common.h up to 1.3
external/bsd/fetch/dist/libfetch/fetch.3 up to 1.5
external/bsd/fetch/dist/libfetch/ftp.c up to 1.8
external/bsd/fetch/dist/libfetch/http.c up to 1.6

libfetch: fix pkg_install core dumps reported in PR 57179
 1.5.2.1 02-Aug-2025  perseant Sync with HEAD
 1.1 30-Sep-2008  joerg branches: 1.1.1;
Initial revision
 1.1.1.5 04-Apr-2009  joerg branches: 1.1.1.5.2; 1.1.1.5.4;
Reimport libfetch-2.23 from pkgsrc, at least one change was lost.
 1.1.1.4 10-Mar-2009  joerg Import libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
for if-modified-since on local files.
 1.1.1.3 14-Feb-2009  joerg Update to libfetch-2.22:
- Support for conditional fetch
- Allow correctly overwriting fetchRestartCalls from signal handlers by
making it volatile
- Explicitly document that the size of struct url can increase.
 1.1.1.2 07-Oct-2008  joerg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
Update to libfetch-2.17. Fix a bug in the line buffering code to not
drop output if the server actually send more than one line.
 1.1.1.1 30-Sep-2008  joerg Import libfetch from pkgsrc, which remains authoritive.

libfetch is a high-level interface for retreiving and uploading files
using URLs. Currently implemented are local file access, FTP, HTTP and
basic HTTPS support, upload only for local files and FTP.
 1.1.1.5.4.2 05-Jun-2009  snj Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
 1.1.1.5.4.1 04-Apr-2009  snj file http.errors was added on branch netbsd-4 on 2009-06-05 17:19:28 +0000
 1.1.1.5.2.2 05-Jun-2009  snj Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
 1.1.1.5.2.1 04-Apr-2009  snj file http.errors was added on branch netbsd-4-0 on 2009-06-05 17:01:45 +0000
 1.1.1.2.8.2 15-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings; useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.8.1 30-May-2009  snj branches: 1.1.1.2.8.1.2;
Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.8.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.6.1 13-May-2009  jym Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.2.4.2 03-Feb-2010  snj Apply patch (requested by joerg in ticket #1294):
Update libfetch to 2.30.
Changes:
libfetch-2.25:
- address a number of lint warnings
- fix strict-alignment issues for GCC 4.4
- fix a bug in the line reading optimisation
- do not reuse a FTP connection if there is an active transfer on it

libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.

libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
 1.1.1.2.4.1 30-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #670):
external/bsd/fetch/dist/libfetch/common.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/common.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/errlist.sh: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.cat3: libfetch-2-23
external/bsd/fetch/dist/libfetch/fetch.h: libfetch-2-23
external/bsd/fetch/dist/libfetch/file.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/ftp.errors: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.c: libfetch-2-23
external/bsd/fetch/dist/libfetch/http.errors: libfetch-2-23
Pull up libfetch-2.23:
- if-not-modified support
- document that struct URL is not part of the ABI
- fetchRestartCalls cleanup for signal handlers
- allow HTTP basic auth to be specified in the URL, allow : as part of
the cleartext password
- fix a file descriptor leak in the file:// iteration code
 1.1.1.2.2.2 19-Oct-2008  haad Sync with HEAD.
 1.1.1.2.2.1 07-Oct-2008  haad file http.errors was added on branch haad-dm on 2008-10-19 22:39:50 +0000

RSS XML Feed