summaryrefslogtreecommitdiff
path: root/lib/libfetch
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-3/+3
| | | | Notes: svn path=/head/; revision=84306
* Add __FBSDID()s to libfetchMatthew Dillon2001-09-305-10/+15
| | | | Notes: svn path=/head/; revision=84203
* Use fseeko() instead of fseek() (u->offset is already an off_t), and markDag-Erling Smørgrav2001-09-051-4/+4
| | | | | | | some function arguments as unused. Notes: svn path=/head/; revision=83076
* Handle snprintf() returning < 0 (not just -1)Brian Somers2001-08-201-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=81985
* Handle snrintf overflows.Brian Somers2001-08-201-0/+2
| | | | | | | Spotted by: bde Notes: svn path=/head/; revision=81978
* Handle snprintf() returning -1.Brian Somers2001-08-201-1/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=81972
* The fix for schemeless and hostless URLs (rev. 1.27) broke the schemelessStefan Eßer2001-07-281-1/+2
| | | | | | | | | | | | proxy specification, which seems to be valid according to the man page. Change the logic to consider "hostname:port" a hostname and port instead of a file URL. Approved by: des Notes: svn path=/head/; revision=80520
* Unbreak parsing URLs that have a host part but no document part.Dag-Erling Smørgrav2001-07-171-2/+3
| | | | | | | While we're here, fix a snprintf() usage warning. Notes: svn path=/head/; revision=79834
* Remove whitespace at EOL.Dima Dorfman2001-07-151-19/+19
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-1/+0
| | | | Notes: svn path=/head/; revision=79454
* Handle shemeless, hostless URLs correctly.Dag-Erling Smørgrav2001-07-081-3/+5
| | | | Notes: svn path=/head/; revision=79423
* mdoc(7) police: fixed markup and typo.Ruslan Ermilov2001-07-051-16/+16
| | | | Notes: svn path=/head/; revision=79315
* Don't call _ftp_closefn() upon EOF in _ftp_readfn(); just return 0. ThisDag-Erling Smørgrav2001-06-111-1/+1
| | | | | | | fixes a bug in pkg_add(1) (which nobody noticed because of another bug). Notes: svn path=/head/; revision=78071
* Implement a HTTP_USER_AGENT environment variable.Dag-Erling Smørgrav2001-05-272-1/+8
| | | | | | | | PR: 27669 Submitted by: Eoin Lawless <eoin@maths.tcd.ie> Notes: svn path=/head/; revision=77261
* Document the authentication callback interface.Dag-Erling Smørgrav2001-05-261-3/+42
| | | | | | | Update RFC references (should have done that ages ago...) Notes: svn path=/head/; revision=77240
* Bump major number.Dag-Erling Smørgrav2001-05-261-1/+1
| | | | Notes: svn path=/head/; revision=77239
* Add rudimentary support for an authentication callback function.Dag-Erling Smørgrav2001-05-264-59/+91
| | | | Notes: svn path=/head/; revision=77238
* MAXPATHLEN -> PATH_MAXDag-Erling Smørgrav2001-05-262-2/+2
| | | | Notes: svn path=/head/; revision=77237
* Plug memory leak.Dag-Erling Smørgrav2001-05-261-6/+3
| | | | | | | PR: 27506 Notes: svn path=/head/; revision=77234
* Add some error codes that were added in RFC2616.Dag-Erling Smørgrav2001-05-231-0/+3
| | | | Notes: svn path=/head/; revision=77056
* Apply 'const' liberally.Archie Cobbs2001-04-248-129/+134
| | | | | | | Fix some other minor glitches. Notes: svn path=/head/; revision=75891
* 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