des
ff0eb6dba4
Use memcpy(3) instead of the BSD-specific bcopy(3).
...
Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de>
MFC after: 2 weeks
2008-02-08 09:48:48 +00:00
des
1de1bb1bc6
s/MAXPATHLEN/PATH_MAX/ to reflect five-year old change to the code :)
...
Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de>
MFC after: 2 weeks
2008-02-08 09:44:34 +00:00
des
d129ae8c34
Add necessary cast for tolower() argument.
...
Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de>
MFC after: 1 week
2008-02-06 11:39:55 +00:00
des
a0d60019af
Fix a regression introduced in rev 1.99: replace fclose(f) with a comment
...
explaining why f cannot possibly be a valid FILE * at this point.
MFC after: 1 day
2008-01-23 20:57:59 +00:00
ru
512a90a235
Add missing dependencies on Makefile (fixes NO_CLEAN builds).
2007-12-19 05:10:07 +00:00
des
d198b4b8bb
As several people pointed out, I did all the ctype casts the wrong
...
way (not for the first time...)
Noticed by: bde, ru ++
MFC after: 1 week
2007-12-19 00:26:36 +00:00
des
fa879ad534
Document NO_PROXY / no_proxy.
...
MFC after: 3 weeks
2007-12-18 11:03:26 +00:00
des
f0e1aa6917
Add support for the NO_PROXY / no_proxy environment variable as used by
...
lynx, curl etc. Note that this patch differs significantly from that
in the PR, as the submitter refined it after submitting the PR.
PR: 110388
Submitted by: Alexander Pohoyda <alexander.pohoyda@gmx.net>
MFC after: 3 weeks
2007-12-18 11:03:07 +00:00
des
ddf13e4c29
Old patch I had lying around: correctly cast the argument to is*().
...
IWBNI gcc could warn about this the way it warns about printf() abuse.
MFC after: 1 week
2007-12-18 10:41:12 +00:00
des
a1830118ba
Clean up namespace violations.
...
MFC after: 1 week
2007-12-14 10:26:58 +00:00
des
74e15e6c70
Enable FTP_COMBINE_CWDS.
2007-05-24 20:28:14 +00:00
deischen
ff36458e08
Bump library versions in preparation for 7.0.
...
Ok'd by: kan
2007-05-21 02:49:08 +00:00
des
396660deb6
Handle temporary redirects (HTTP status code 307)
...
PR: kern/112515
Submitted by: Ryan C. Gordon <icculus@icculus.org>
MFC after: 3 weeks
2007-05-08 19:28:03 +00:00
njl
a22d768e0f
Add back the original behavior of changing the entire directory path at
...
once (CWD a/b/c vs. 3 CWDs). If an error occurs, we fall back to the default
method of a single CWD per directory element. Since this is technically
a violation of the basic FTP RFC, this behavior is under a compile-time
option FTP_COMBINE_CWDS and is off by default. It should work with most
Unix-based FTP daemons and can save latency.
MFC after: 2 weeks
2007-04-22 22:33:29 +00:00
yar
59f55ad58c
Respect MK_INET6_SUPPORT.
2006-07-27 04:54:03 +00:00
des
eb329791f1
Respect FETCH_BIND_ADDRESS when opening the data connection.
...
PR: misc/98872
2006-06-13 10:21:03 +00:00
des
a5357a7c3f
Fix a bug introduced in rev 1.92, where, when changing from one directory
...
to another, the first CWD after a string of CDUPs would incorrectly include
a slash before the directory name.
Reported by: obrien
PR: bin/83278
2006-06-13 10:19:59 +00:00
ru
388e590f95
Reimplementation of world/kernel build options. For details, see:
...
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html
The src.conf(5) manpage is to follow in a few days.
Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
2006-03-17 18:54:44 +00:00
des
fe60356e67
In order to maintain interoperability with certain broken FTP servers,
...
ignore a MODE failure if and only if the mode we attempted to set was S
(which is supposed to be the default).
PR: bin/91973
2006-01-19 08:31:47 +00:00
tmclaugh
1ecc8e42ea
Fix misspelling in Poul-Henning Kamp's email address under AUTHORS, from
...
pkh@ to phk@.
Approved by: ade
2005-11-30 04:08:45 +00:00
des
f202203775
Ignore HTTP_PROXY if it is defined but empty. This was already handled
...
correctly in the case of FTP_PROXY, because an empty FTP_PROXY has a
specific meaning ("don't use any proxy at all for ftp, even if HTTP_PROXY
is defined"), while an empty HTTP_PROXY has no meaning at all.
PR: bin/85185
Submitted by: Conall O'Brien <conallob=freebsd@maths.tcd.ie>
MFC after: 2 weeks
2005-08-24 12:28:05 +00:00
des
387b90c322
Change directory one level at a time, and use CDUP to back out. This is a
...
work in progress; it partially fixed bin/83278 and is a prerequisite to
fixing bin/83277.
PR: bin/83277, bin/83278
2005-08-12 12:48:50 +00:00
kensmith
f97f77429f
Bump the shared library version number of all libraries that have not
...
been bumped since RELENG_5.
Reviewed by: ru
Approved by: re (not needed for commit check but in principle...)
2005-07-22 17:19:05 +00:00
kbyanc
392eda7ce9
Set the TCP_NODELAY socket option and clear TCP_NOPUSH in order to flush
...
any pending HTTP request rather than calling shutdown(2) with SHUT_WR.
This makes libfetch (and thus fetch(1)) work again with Squid proxies
configured to not allow half-closed connections.
Reported by: Pawel Worach (pawel.worach AT telia DOT com)
2005-03-02 19:09:28 +00:00
des
ae4586a78e
Fix a memory leak: when freeing the connection structure, don't forget to
...
free the connection buffer as well.
PR: bin/76153
MFC after: 1 week
2005-02-16 12:46:46 +00:00
kbyanc
bdfff0682f
Set TCP_NOPUSH on HTTP requests, reducing the number of round-trips
...
necessary to establish each connection.
MFC after: 2 weeks
2005-02-16 00:22:20 +00:00
ru
6b6b8c04f6
Expand contractions.
2005-02-13 23:45:54 +00:00
ru
1541af42f1
Expand *n't contractions.
2005-02-13 22:25:33 +00:00
ru
f4c44b761b
NOCRYPT -> NO_CRYPT
2004-12-21 10:16:04 +00:00
des
d59f3ddc7e
Update copyright years.
2004-09-21 18:35:21 +00:00
des
4fb65f044c
Don't forget to allocate space for the terminating NUL when converting to
...
base 64.
PR: misc/70022
Submitted by: Herve Masson <herve-bsdbt@mindstep.com>
MFC after: 3 days
2004-08-07 20:23:50 +00:00
cperciva
e629b37603
Join the 21st century: Cryptography is no longer an optional component
...
of releases. The -DNOCRYPT build option still exists for anyone who
really wants to build non-cryptographic binaries, but the "crypto"
release distribution is now part of "base", and anyone installing from a
release will get cryptographic binaries.
Approved by: re (scottl), markm
Discussed on: freebsd-current, in late April 2004
2004-08-06 07:27:08 +00:00
ru
01548ace15
Mechanically kill hard sentence breaks.
2004-07-02 23:52:20 +00:00
des
df87448759
Slight tweak to previous commit: don't forget to call _http_seterr() if
...
we get a genuine 416 reply.
2004-02-11 09:35:27 +00:00
des
33bdcbd9cf
When restarting a transfer that has already completed, the server will
...
reply with a 416 error code (requested range not satisfiable) because
we ask it to start at the end of the file. Handle this gracefully by
considering a 416 reply a success if the requested offset exactly
matches the length of the file and the requested length is zero.
2004-02-11 09:31:39 +00:00
des
ddda756172
Re-wrap some comments.
2004-02-11 09:23:35 +00:00
des
42f562f3a8
I don't normally use my middle name, so remove it from attributions in
...
man pages (though not from copyright notices). While I'm here, add email
addresses where appropriate.
2004-01-25 11:39:42 +00:00
ume
2b7b4d364f
preparation for RFC3493. EAI_NODATA was deprecated.
2003-10-23 13:50:01 +00:00
ru
1c23ef339b
mdoc(7): Use the new feature of the .In macro.
2003-09-08 19:57:22 +00:00
des
8af1bcf602
Don't close a FILE * which we know is bogus.
2003-08-29 15:54:12 +00:00
des
a1cad5ae8b
Some servers respond to RETR in active mode with 125 (connection already
...
open) rather than 150 (opening connection). There's no reason why we
shouldn't accept that.
PR: misc/42172
MFC in: 3 days
2003-08-19 11:43:11 +00:00
ru
35d5e319f1
Make sure the crypto versions of libfetch and fetch(1) appear in
...
the "crypto" distribution.
Approved by: des
2003-07-22 13:54:31 +00:00
trhodes
3514f4bda7
Add an EXAMPLES section.
...
PR: 43899
Reviewed by: des, ru
2003-06-10 20:41:18 +00:00
ru
9bcac8799e
Assorted mdoc(7) fixes.
...
Approved by: re (blanket)
2003-05-22 13:02:28 +00:00
des
e5d2d778eb
Retire the useless NOSECURE knob.
...
Approved by: re (scottl)
2003-05-19 15:52:01 +00:00
des
9e8300e563
Mark libfetch as c99-clean. Always build at WARNS level 2 rather than
...
juggling with levels 2 and 3, as this has lead to world breakage for
NOCRYPT users in the past.
2003-05-01 14:39:43 +00:00
des
32c9a8b0bd
Don't dereference flags if NULL (see http.c rev 1.87)
2003-03-29 15:15:38 +00:00
mtm
a65d822bcd
The flags passed in to _ftp_get_proxy may be null
...
Approved by: des, markm (mentor)(implicit)
2003-03-19 21:39:00 +00:00
des
2d46bf6bbe
Don't parse the proxy URL unless we're actually going to use it. No real
...
functional difference, but debugging output will be less confusing.
2003-03-11 08:20:58 +00:00
des
66c619c7d8
Add and document support for a FETCH_BIND_ADDRESS environment variable
...
specifying a local address to bind sockets to. Caveat: lightly tested.
PR: bin/37572
2003-03-03 12:35:03 +00:00