#
9a46c769 |
| 19-Dec-2009 |
Attilio Rao <attilio@FreeBSD.org> |
MFC r199801: Fix a socket leak.
Sponsored by: Sandvine Incorporated
|
#
f413289e |
| 25-Nov-2009 |
Attilio Rao <attilio@FreeBSD.org> |
Fix a socket leak in ftp_request() after that a connection is established.
Submitted by: Sandvine Incorporated Reviewed by: des, emaste Sponsored by: Sandvine Incorporated MFC: 1 week
|
Revision tags: release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0 |
|
#
340b079b |
| 08-Feb-2008 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Use memcpy(3) instead of the BSD-specific bcopy(3).
Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> MFC after: 2 weeks
|
#
b2a9c5a1 |
| 23-Jan-2008 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
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
|
Revision tags: release/6.3.0_cvs, release/6.3.0 |
|
#
facd9827 |
| 19-Dec-2007 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
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
|
#
62a2681c |
| 18-Dec-2007 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
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 t
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
show more ...
|
#
836e34ee |
| 18-Dec-2007 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
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
|
#
a1b37df2 |
| 14-Dec-2007 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Clean up namespace violations.
MFC after: 1 week
|
#
f5e97105 |
| 23-Apr-2007 |
Nate Lawson <njl@FreeBSD.org> |
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. Si
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
show more ...
|
Revision tags: release/6.2.0_cvs, release/6.2.0 |
|
#
9aa2cb86 |
| 13-Jun-2006 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Respect FETCH_BIND_ADDRESS when opening the data connection.
PR: misc/98872
|
#
c23fb8a4 |
| 13-Jun-2006 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
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:
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
show more ...
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
254f2fa2 |
| 19-Jan-2006 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
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
|
Revision tags: release/6.0.0_cvs, release/6.0.0 |
|
#
fd04cc77 |
| 12-Aug-2005 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
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
|
Revision tags: release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0 |
|
#
2cbbf9da |
| 21-Sep-2004 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Update copyright years.
|
Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0 |
|
#
fd8f6d22 |
| 29-Aug-2003 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Don't close a FILE * which we know is bogus.
|
#
39082bb4 |
| 19-Aug-2003 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
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
|
Revision tags: release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0 |
|
#
4418f9df |
| 19-Mar-2003 |
Mike Makonnen <mtm@FreeBSD.org> |
The flags passed in to _ftp_get_proxy may be null
Approved by: des, markm (mentor)(implicit)
|
#
b91d6074 |
| 11-Mar-2003 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
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.
|
#
930105c1 |
| 28-Jan-2003 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
style(9): add parentheses to sizeof even when not strictly required.
MFC after: 3 days
|
#
9f808a4d |
| 22-Jan-2003 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Hook in the .netrc code + don't use pointers as if they were booleans.
|
Revision tags: release/5.0.0_cvs, release/5.0.0 |
|
#
13cc1c83 |
| 25-Oct-2002 |
Nate Lawson <njl@FreeBSD.org> |
The FTP connection caching needs a better interface -- connections are closed through _fetch_close() which is the only one who knows the connection REALLY was closed (since ref -> 0). However, FTP k
The FTP connection caching needs a better interface -- connections are closed through _fetch_close() which is the only one who knows the connection REALLY was closed (since ref -> 0). However, FTP keeps its own local cached_connection and checks if it is valid by comparing it to NULL. This is bogus since it may have been freed elsewhere by _fetch_close().
This change checks if we are closing the cached_connection and the ref is 1 (soon to be 0). If so, set cached_connection to NULL so we don't accidentally reuse it. The REAL fix should be to move connection caching to the common.c level (_fetch_* functions) and NULL the cache(s) in _fetch_close(). Then all layers could benefit from caching.
show more ...
|
#
9d649c1f |
| 20-Oct-2002 |
Tim J. Robbins <tjr@FreeBSD.org> |
When recycling a cached connection, increment the reference count so that the heap block does not get freed and reused. This should fix the pkg_add -r crashes that have been happening for months.
|
Revision tags: release/4.7.0_cvs |
|
#
40cfbfd5 |
| 17-Sep-2002 |
Bill Fenner <fenner@FreeBSD.org> |
Make _fetch_connect() always set the error code. Tell ftp that _fetch_connect() always sets the error code (http already knew)
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
f8fa093e |
| 02-Jul-2002 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
Cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attach scope identifier).
Approved by: des MFC after: 3 weeks
|
#
f606d589 |
| 11-Jun-2002 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Add a reference count to struct fetchconn so we don't prematurely close and free a cached FTP connection.
|