summaryrefslogtreecommitdiff
path: root/lib/libfetch
Commit message (Collapse)AuthorAgeFilesLines
* Grammar police: "its", not "it's", is the possessive form of "it".Dima Dorfman2001-04-151-1/+1
| | | | Notes: svn path=/head/; revision=75531
* If the server's reply to the SIZE command is unparseable, reset us->sizeDag-Erling Smørgrav2001-04-071-0/+1
| | | | | | | to -1 so the caller will know it's invalid. This is an MFC candidate. Notes: svn path=/head/; revision=75292
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74870
* Use high port range by default, and replace the 'h' option with an 'l' optionDag-Erling Smørgrav2001-03-242-7/+7
| | | | | | | that forces the ftp code to use the low (default) port range instead. Notes: svn path=/head/; revision=74716
* Don't remember an EINTR, since the caller may want to restart the call.Dag-Erling Smørgrav2001-03-071-2/+4
| | | | Notes: svn path=/head/; revision=73934
* Support lower-case versions of the proxy environment variables.Dag-Erling Smørgrav2001-03-073-3/+13
| | | | | | | PR: bin/25494 Notes: svn path=/head/; revision=73932
* mdoc(7) police: fixed broken references.Ruslan Ermilov2001-01-161-0/+1
| | | | Notes: svn path=/head/; revision=71107
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-161-1/+1
| | | | Notes: svn path=/head/; revision=71097
* The user name for anonymous ftp is now "anonymous".Dag-Erling Smørgrav2001-01-081-10/+17
| | | | | | | | Remove the period after the last man page reference. Add a reference to RFC1635, and sort the RFC references by number. Notes: svn path=/head/; revision=70797
* Back out previous (accidental) commit.Dag-Erling Smørgrav2001-01-081-1/+1
| | | | Notes: svn path=/head/; revision=70796
* Use "anonymous" rather than "ftp" as login name for anonymous ftp.Dag-Erling Smørgrav2001-01-082-4/+3
| | | | | | | | | Rather than have a separate (misnamed) FTP_ANONYMOUS_PASSWORD constant, use FTP_ANONYMOUS_USER (i.e. "anonymous") to construct the anonymous ftp password if getlogin() fails. Notes: svn path=/head/; revision=70795
* Document FTP_LOGIN.Dag-Erling Smørgrav2000-12-221-0/+2
| | | | Notes: svn path=/head/; revision=70274
* Check the FTP_LOGIN environment variable before falling back onDag-Erling Smørgrav2000-12-221-0/+2
| | | | | | | FTP_ANONYMOUS_USER. Notes: svn path=/head/; revision=70273
* Avoid a segfault (due to an unitialized pointer) when parsing URLs that haveDag-Erling Smørgrav2000-12-131-0/+2
| | | | | | | no scheme or host part. Notes: svn path=/head/; revision=69975
* Somewhere along the line, I misunderstood the whole FTP_PASSIVE_MODE debateDag-Erling Smørgrav2000-12-062-4/+4
| | | | | | | | | | and had libfetch selecting passive mode even when FTP_PASSIVE_MODE was not set at all, which is really quite surprising unless you know about it. So change it to the agreed default behaviour of selecting passive mode if FTP_PASSIVE_MODE is set, but not "no". Notes: svn path=/head/; revision=69670
* Remove some obsolete comments.Dag-Erling Smørgrav2000-12-011-13/+0
| | | | Notes: svn path=/head/; revision=69466
* Clean up the whitespace encoding code.Dag-Erling Smørgrav2000-12-011-5/+6
| | | | Notes: svn path=/head/; revision=69465
* Add SCHEME_HTTPS.Dag-Erling Smørgrav2000-12-011-0/+1
| | | | Notes: svn path=/head/; revision=69464
* Fix old-style proxy specs: default to FTP if FTP_PROXY was set; only defaultDag-Erling Smørgrav2000-11-271-2/+6
| | | | | | | to HTTP if HTTP_PROXY was used instead. Notes: svn path=/head/; revision=69272
* Don't try to get the proxy port number from /etc/services.Dag-Erling Smørgrav2000-11-271-4/+0
| | | | Notes: svn path=/head/; revision=69271
* Don't go haywire if the server closes the connection in the middle of aDag-Erling Smørgrav2000-11-221-1/+1
| | | | | | | multiline response (proper fix this time). Notes: svn path=/head/; revision=69044
* Revert previous commit, it was somewhat hasty.Dag-Erling Smørgrav2000-11-221-5/+1
| | | | Notes: svn path=/head/; revision=69043
* Don't go haywire if the server closes the connection during a multilineDag-Erling Smørgrav2000-11-221-1/+5
| | | | | | | response. Notes: svn path=/head/; revision=69041
* logRuslan Ermilov2000-11-221-1/+2
| | | | Notes: svn path=/head/; revision=69026
* Spell the des's name correctly.Ruslan Ermilov2000-11-141-2/+2
| | | | Notes: svn path=/head/; revision=68718
* Use Fx macro wherever possible.Ruslan Ermilov2000-11-141-1/+3
| | | | Notes: svn path=/head/; revision=68716
* Use the documented (and historical) defaults. Centralize the decision logicDag-Erling Smørgrav2000-11-104-37/+45
| | | | | | | | | in order to avoid this bug in the future. Submitted by: se Notes: svn path=/head/; revision=68551
* Use CHECK_FLAGDag-Erling Smørgrav2000-10-294-22/+22
| | | | Notes: svn path=/head/; revision=67892
* Stricter error checking in the I/O functions.Dag-Erling Smørgrav2000-10-291-1/+25
| | | | Notes: svn path=/head/; revision=67890
* Add CHECK_FLAGS, a macro for (safely) checking if a particular flag is set.Dag-Erling Smørgrav2000-10-291-0/+5
| | | | Notes: svn path=/head/; revision=67887
* Document FTP_PASSIVE_MODE and FTP_PASSWORD.Dag-Erling Smørgrav2000-10-291-1/+8
| | | | | | | | PR: docs/20626 Submitted by: nik Notes: svn path=/head/; revision=67871
* Fix this my way. David had absolutely no call overriding MAINTAINER withoutDag-Erling Smørgrav2000-10-281-3/+3
| | | | | | | even giving me 24 hours to read his mail and find the bug. Notes: svn path=/head/; revision=67810
* Install per function manpages so one doesn't mistakenly think we don'tDavid E. O'Brien2000-10-281-0/+8
| | | | | | | have manpages for libfetch's functions. Notes: svn path=/head/; revision=67809
* Repeat after me, "check to see that a pointer isn't NULL beforeDavid E. O'Brien2000-10-281-3/+3
| | | | | | | dereferenceing it". This fixes ``pkg_add -r''. Notes: svn path=/head/; revision=67807
* MFS: don't expect result code until you close the data connectionDag-Erling Smørgrav2000-10-271-3/+3
| | | | Notes: svn path=/head/; revision=67707
* Use funopen() instead of fdopen(). This fixes three problems:Dag-Erling Smørgrav2000-10-221-4/+118
| | | | | | | | | | | | | | | | | - ftpTimeout was not honored when reading actual data, as opposed to talking protocol - connection caching was broken because _ftp_cached_connect() would see the result of the transfer instead of the result of the NOOP. - if the RETR succeeded, but an error occurred later (as can happen when talking to a proxy), the error would not be detected. There still remains to register an atexit(3) callback to close the cached connection gracefully instead of just dropping it on the floor. Notes: svn path=/head/; revision=67430
* If the scheme is HTTP or HTTPS, percent-escape whitespace in the documentDag-Erling Smørgrav2000-10-211-1/+21
| | | | | | | | | part. Submitted by: green Notes: svn path=/head/; revision=67419
* Argh! Fix passive mode selection (again)Dag-Erling Smørgrav2000-10-171-2/+3
| | | | Notes: svn path=/head/; revision=67259
* Use the right user nameDag-Erling Smørgrav2000-10-131-3/+3
| | | | Notes: svn path=/head/; revision=67055
* Document recent changes in URL parsing and proxy handlingDag-Erling Smørgrav2000-10-121-10/+20
| | | | Notes: svn path=/head/; revision=67045
* ftp.c needs _http_request()Dag-Erling Smørgrav2000-10-121-0/+11
| | | | Notes: svn path=/head/; revision=67044
* Rework proxy handling so that proxies can be specified as URLs.Dag-Erling Smørgrav2000-10-122-206/+156
| | | | | | | As a side effect, remove a lot of duplicate and now redundant code. Notes: svn path=/head/; revision=67043
* Relax URL syntax so that schemeless URLs are supported.Dag-Erling Smørgrav2000-10-121-24/+23
| | | | Notes: svn path=/head/; revision=67042
* Add macros for the names of the URL schemes we support.Dag-Erling Smørgrav2000-10-121-0/+5
| | | | Notes: svn path=/head/; revision=67041
* Make the ENVIRONMENT section more legible, and mention that HTTP_AUTH isDag-Erling Smørgrav2000-10-121-4/+10
| | | | | | | colon-separated. Notes: svn path=/head/; revision=67028
* Work around buggy servers such as NCSA httpd which send an incompleteDag-Erling Smørgrav2000-09-241-9/+18
| | | | | | | HTTP-Version on the Status-Line (see RFC2616 sections 3.1 and 6.1). Notes: svn path=/head/; revision=66325
* Document the FTP_PROXY and HTTP_PROXY variables better.Dag-Erling Smørgrav2000-08-311-0/+4
| | | | Notes: svn path=/head/; revision=65291
* Grok 125 replies to passive RETR. This fixes an interoperability bug withDag-Erling Smørgrav2000-08-211-1/+2
| | | | | | | | | Microsoft FTP Service. Reported by: asmodai, eivind Notes: svn path=/head/; revision=64883
* Fix signedness bogon.Dag-Erling Smørgrav2000-08-021-7/+6
| | | | Notes: svn path=/head/; revision=64129
* Don't fail if _ftp_stat() reports a protocol error, since that most likelyDag-Erling Smørgrav2000-07-271-0/+1
| | | | | | | | | | means that the server doesn't understand SIZE or MDTM, which should not be a hard failure. Submitted by: ume Notes: svn path=/head/; revision=63910