summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix the case where the file name is preceded by a lone slash.des2000-07-201-1/+1
|
* Don't try to skip to the requested offset if the server returns more datades2000-07-191-8/+10
| | | | | | than requested. Instead, inform the caller of the real offset by modifying the offset field in the original struct url, and let him decide how to handle the situation.
* pthread_once --> pthread_once_t.jasone2000-07-192-2/+2
|
* Update stale references to update(4) with references to the newsheldonh2000-07-193-4/+4
| | | | syncer(4) manual page.
* To define A RR to root (.) is valid in DNS. So, h_name = "" shouldn'tume2000-07-191-2/+2
| | | | | | | | be treated as NULL. PR: bin/19816 Submitted by: Bill Fenner <fenner@research.att.com> Reviewed by: Atsushi Onoe <onoe@sm.sony.co.jp>
* Const'ify parameters to ethers(3) routines as appropriate.archie2000-07-182-10/+10
|
* Simplify kqueue API slightly.jlemon2000-07-181-2/+2
| | | | Discussed on: -arch
* Substitute UT_NAMESIZE for 8 when truncating long usernames.sheldonh2000-07-181-1/+3
| | | | | PR: 19886 Reported by: Gregory Bond <gnb@itga.com.au>
* Fix header inclusions in preparation for a fix for PR 19886.sheldonh2000-07-181-4/+3
| | | | The CVS Id tag FreeBSD was added to satisfy commit_prep.pl.
* Drop the references to index(3) and rindex(3), which are non-standardalex2000-07-189-18/+0
| | | | | | and people shouldn't be encouraged to use them. Asked by: sheldonh
* Don't take a failure to stat a file to mean that it doesn't exist, as it maydes2000-07-181-1/+5
| | | | | be a dynamically created file, e.g. a tarball on servers that support sending tarballs of directories.
* Change my email address in the copyright notices for the sake of consistencyjasone2000-07-1865-65/+65
| | | | (jasone@canonware.com --> jasone@freebsd.org).
* Deal correctly with statically initialized condition variables injasone2000-07-173-54/+51
| | | | | | | | | pthread_cond_signal(), pthread_cond_broadcast(), and pthread_cond_timedwait(). Do not dump core in pthread_cond_timedwait() (due to a NULL pointer dereference) if attempting to wait on an uninitialized condition variable. PR: bin/18099
* Reshuffle the SEE ALSO section.jasone2000-07-179-21/+21
| | | | Prompted by: sheldonh
* Introduce fetchXGet*(), which combine the functionalities of fetchGet*() anddes2000-07-176-113/+236
| | | | | | fetchStat*(). In most cases, either fetchGet*() or fetchXGet*() is a wrapper around the other; in all cases, calling fetchGet*() is identical to calling fetchXGet*() with the second argument set to NULL.
* Don't forget to set file descriptor to -1 after closing it, since the codedes2000-07-171-1/+1
| | | | | | | outside the loop inspects it to determine whether or not we succeeded in retrieving the requested document. This fixes a bug where fetchGetHTTP() would return a FILE with an invalid file descriptor if it hit the redirect limit without locating the requested document.
* Use a symbolic constant instead of hardcoding 999des2000-07-171-10/+11
|
* Don't forget to declare fetchRestartCalls.des2000-07-171-0/+1
|
* Introduce the (undocumented) variable fetchRestartCalls, which controls whetherdes2000-07-172-2/+3
| | | | | | | or not interrupted system calls will be restarted. This fixes a bug where fetch(1) would hang (potentially forever) if a server stopped responding, because the signal handler would absorb the user's efforts to interrupt the transfer.
* Remove fetchContentType(), which disappeared in the HTTP rewrite.des2000-07-171-1/+0
|
* Add SEE ALSO section, as with the other string functions.alex2000-07-171-0/+11
| | | | Submitted by: dcs
* #ifdef DEBUG -> #ifndef NDEBUGdes2000-07-161-2/+2
| | | | Pointed out by: ache
* Reinsert the MIT copyright, which applies to the base64 code and wasdes2000-07-161-0/+32
| | | | left out by accident during the rewrite.
* Make the NAME section a bit less confusing.ben2000-07-152-2/+2
| | | | | | PR: 19262 Submitted by: NOKUBI Hirotaka <nokubi@ff.iij4u.or.jp> Reviewed by: sheldonh
* Sshd writes connected host into utmp directly. If the connection isume2000-07-141-7/+14
| | | | | | via IPv6, the hostname is trimed due to the length of IPv6 address. This change saves it as possible. I have a grudge against the shortage of UT_HOSTSIZE.
* Add IPv6 scoped address support.ume2000-07-141-1/+0
| | | | | | | | It enables us to control link-local connections by interface like this: ALL : [fe80::%ed0]/10 : allow ALL : [fe80::]/10 : deny
* Make sbsize a size instead of a number. This allows the usual suffixessheldonh2000-07-142-2/+2
| | | | | | | | | to be applied to the value given. This does not break installed /etc/login.conf files, since un-suffixed numbers are interpreted as they were before. PR: 19750 Submitted by: Paul Herman <pherman@frenchfries.net>
* Fix typo, teh -> the.asmodai2000-07-142-2/+2
|
* Fix a bug (misplaced continue) that caused redirects to fail. Lots of codedes2000-07-131-16/+29
| | | | | | | | moved around, but the acutal functional changes are small. Add support for site-internal redirects (where the Location: header gives a path instead of an absolute URI) Pointed out by: kuriyama
* - Allow support for MBR boot loaders that are longer than one sector. Asjhb2000-07-126-62/+16
| | | | | | with fdisk, ensure that they are a multiple of the sector size in length. - Axe all the 1024 cylinder checks as they are no longer relevant with the fixed bootstrap.
* Fully document the HTTP authorization feature.des2000-07-121-12/+18
| | | | Update the BUGS section to reflect the HTTP rewrite.
* Extensive rewrite of the HTTP code. The new code is significantly cleaner anddes2000-07-121-446/+685
| | | | | | | | more robust, and somewhat more efficient. It also handles authorization and redirects properly, and supports timeouts like the FTP code. Many thanks to Umemoto-san for his assistance with IPv6 support, both here and in other parts of libfetch.
* Don't call warn() without a format string.kris2000-07-121-1/+1
|
* Use fetch_putln()des2000-07-111-11/+5
|
* Add _fetch_putln()des2000-07-112-6/+30
|
* Don't call printf without a format string.kris2000-07-111-1/+1
|
* Document that basic authorization now kinda works.des2000-07-111-16/+20
|
* Rework the authorization code.des2000-07-111-78/+83
| | | | | | Only send absolute URI if connected to a proxy, since Apache doesn't always understand absolute URIs. Clean up some of the debugging output.
* Clean up the debugging outputdes2000-07-112-12/+3
|
* Fix typo; sa_siginfo -> sa_sigactionben2000-07-111-1/+1
| | | | | PR: 19602 Submitted by: Tony Finch <dot@dotat.at>
* Try and fix the worst of some highly bogus malloc/free resourcepeter2000-07-111-1/+1
| | | | | | | | | | | management involving rcmd_af(), getaddrinfo(), freeaddrinfo(), etc. We set *ahost to point to ai->canonname; and later free the ai-> stuff and still leave the old pointers in *ahost to the freed data. Perhaps the best way to deal with this is a static buffer or a static strdup() that is freed on the next iteration or something. This gives me headaches just thinking about this. The new 'AJ' default for malloc() tripped this up.
* Free chunks obtained by getaddrinfo(3).ume2000-07-101-0/+1
| | | | Approved by: des
* Separate parsing code of 229 replies from the code for 227 and 228.ume2000-07-101-6/+13
| | | | Don't assume 227 and 228 replies enclose remote address with parentheses.
* Make EPSV work again. Separate parsing code of 229 replies fromume2000-07-101-7/+14
| | | | | | the code for 227 and 228. Submitted by: des
* Actually make it so this Makefile can build grot.green2000-07-101-1/+8
|
* Add a test case for one of the bugs found on the new additions todcs2000-07-091-0/+1
| | | | regex(3).
* Spencer's regex(3) test code.dcs2000-07-098-0/+1727
| | | | Obtained from: BSD/OS
* altoffset() always returned whenever it recursed, because at the enddcs2000-07-091-0/+4
| | | | | | | | | | | | | | of the processing of the recursion, "scan" would be pointing to O_CH (or O_QUEST), which would then be interpreted as being the end character for altoffset(). We avoid this by properly increasing scan before leaving the switch. Without this, something like (a?b?)?cc would result in a g->moffset of 1 instead of 2. I added a case to the soon-to-be-imported regex(3) test code to catch this error.
* Since g->moffset points to the _maximum_ offset at which the mustdcs2000-07-091-1/+1
| | | | | | | | | | | | | string may be found (from the beginning of the pattern), the point at which must is found minus that offset may actually point to some place before the start of the text. In that case, make start = start. Alternatively, this could be tested for in the preceding if, but it did not occur to me. :-) Caught by: regex(3) test code
* Add some casts here and there.dcs2000-07-091-3/+3
|
OpenPOWER on IntegriCloud