summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* When removing the local domain, only do so when the result will be abrooks2005-10-051-3/+1
| | | | | | | | | host name. This is matches the documented behaviro. The previous behavior would remove the domain name even if the result retained a dot. This fixes rsh connections from a.example.com to example.com. Reviewed by: ceri (at least the concept)
* Remove an unused variable.stefanf2005-10-041-2/+1
| | | | Reviewed by: ken
* Merge makelist rev 1.10 and map.c rev 1.22 from NetBSD. They just patch thestefanf2005-10-042-14/+14
| | | | | bug fixed in the last commit to map.c in a different way. Follow NetBSD to facilitate future merges.
* Merge NetBSD's rev. 1.49:stefanf2005-10-041-6/+6
| | | | | | Fix double if (from Alexey E. Suslikov via jmc@openbsd). While here, re-word both H_[GS]ETUNIQUE descriptions so they make more sense. Bump date.
* Merge NetBSD's rev. 1.41:stefanf2005-10-041-3/+3
| | | | | PR/31012: Barry Naujok: libedit el_get with EL_EDITOR op does not work Fixed as suggested.
* Catch up with the import of bsnmp-1.11. Add a couple of newharti2005-10-041-0/+2
| | | | configuration flags to CFLAGS and set the WARNS level to 6.
* Sort function names.davidxu2005-10-041-2/+2
|
* Add function pthread_timedjoin_np, the function is similar with pthread_joindavidxu2005-10-042-9/+51
| | | | | except the function will return ETIMEDOUT if target thread does not exit before specified absolute time passes.
* Fix a long line in copyright notice.cognet2005-10-031-1/+2
| | | | Pointed out by: Gavin Atkinson gavin.atkinson ury york ac uk
* Add an asm version of strlen() for arm (how useful).cognet2005-10-032-1/+78
|
* libkvm bits for arm.cognet2005-10-031-18/+162
|
* Commenting out WARNS actually brought it up to 4.ru2005-09-281-1/+1
|
* Comment out WARNS, the OpenSSL headers don't compile cleanly on some platforms.des2005-09-281-1/+1
|
* Increase WARNS.des2005-09-261-1/+1
|
* Correct the logic for determining whether the user has already entereddes2005-09-261-4/+7
| | | | | | a password. Also, work around some harmless type pun warnings. MFC after: 3 days
* minor style.Makefile(5) fixes:keramida2005-09-261-2/+7
| | | | | | | - WARNS before CFLAGS - CFLAGS -DXXX before -IXXX Approved by: ru
* signed/unsigned fixes (thanks to GCC4) and a few related minor style ↵kientzle2005-09-249-15/+23
| | | | corrections.
* Modify the code path of the ifdef NOTYET part of _kse_single_thread():brian2005-09-244-16/+22
| | | | | | | | | | | | | | | | | | | | o Don't reinitialise the atfork() handler list in the child. We are meant to call the child handler, and on subsequent fork()s should call all three functions as normal. o Don't reinitialise the thread specific keyed data in the child after a fork. Applications may require this for context. o Reinitialise curthread->tlflags after removing ourselves from (and reinitialising) the various internal thread lists. o Reinitialise __malloc_lock in the child after fork() (to balance our explicitly taking the lock prior to the fork()). With these changes, it is possible to enable the NOTYET code in thr_kern.c to allow the use of non-async-safe functions after fork()ing from a threaded program. Reviewed by: Daniel Eischen <deischen@freebsd.org> [_malloc_lock reinitialisation has since been moved to avoid polluting the !NOTYET code]
* Do not use passphraseless keys for authentication unless the nullokdes2005-09-222-2/+13
| | | | | | | | option was specified. PR: bin/81231 Submitted by: "Daniel O'Connor" <doconnor@gsoft.com.au> MFC after: 3 days
* Narrow the use of user credentials.des2005-09-211-14/+10
| | | | | | Fix one case where openpam_restore_cred() might be called twice in a row. MFC after: 3 days
* In archive_read_open(), do not set the internal archive state tokientzle2005-09-211-2/+4
| | | | | | | | | | | | "HEADER" unless the open is successful. Instead, leave the state as "NEW." In particular, if archive_read_open() fails, a subsequent call to archive_read_next_header() will now cause an explicit assertion failure instead of a silent segmentation fault. This may need a little more work to fully realize the intention: If archive_read_open() fails, you should be able to call it again on the same archive handle to open a different archive (or the same archive using a different mechanism).
* Add a lot of error checks, based on the patches provided by Dan Lukes.kientzle2005-09-2114-8/+90
| | | | | | | Also fixes a memory leak reported by Andrew Turner. PR: bin/83476 Thanks to: Dan Lukes, Andrew Turner
* Correct the documentation for archive_read_data_into_buffer()kientzle2005-09-201-1/+1
| | | | | | Thanks to: Marcus Alves Grando PR: docs/85854 MFC after: 7 days
* When (re)allocating space for an array of pointers to char, usecperciva2005-09-191-1/+1
| | | | | | | | | | | | sizeof(*list), not sizeof(**list). (i.e., sizeof(pointer) rather than sizeof(char)). It is possible that this buffer overflow is exploitable, but it was added after RELENG_5 forked and hasn't been MFCed, so this will not receive an advisory. Submitted by: Vitezslav Novy MFC after: 1 day
* Fixed aliasing bugs in TRUNC() by using the fdlibm macros for accessbde2005-09-193-12/+26
| | | | | | | | | | | | | | | | | | | | to doubles as bits. fdlibm-1.1 had similar aliasing bugs, but these were fixed by NetBSD or Cygnus before a modified version of fdlibm was imported in 1994. TRUNC() is only used by tgamma() and some implementation-detail functions. The aliasing bugs were detected by compiling with gcc -O2 but don't seem to have broken tgamma() on i386's or amd64's. They broke my modified version of tgamma(). Moved the definition of TRUNC() to mathimpl.h so that it can be fixed in one place, although the general version is even slower than necessary because it has to operate on pointers to volatiles to handle its arg sometimes being volatile. Inefficiency of the fdlibm macros slows down libm generally, and tgamma() is a relatively unimportant part of libm. The macros act as if on 32-bit words in memory, so they are hard to optimize to direct actions on 64-bit double registers for (non-i386) machines where this is possible. The optimization is too hard for gcc on amd64's, and declaring variables as volatile makes it impossible.
* Connect smbfs build on powerpc.imura2005-09-191-0/+4
|
* Just by allocating size*2 bytes we can't be sure that new size will be enough,ache2005-09-181-2/+2
| | | | | | | | | | | so change two if (size not enough) { reallocf(size*2); } into while (size not enough) { reallocf(size*2); }
* Use the correct function name as .Nm argument.brueffer2005-09-181-1/+1
| | | | | | PR: 86169 Submitted by: Toby Peterson <toby@apple.com> MFC after: 3 days
* Pidfiles should be created with permission preventing users from openingpjd2005-09-161-1/+1
| | | | | | | them for reading. When user can open file for reading, he can also flock(2) it, which can lead to confusions. Pointed out by: green
* Cosmetic fixes to prev. commit.ache2005-09-151-4/+4
| | | | | | | | Change first MAXPATHLEN to more standard PATH_MAX Change second MAXPATHLEN to 1024 (it is temp buffer not related) Change comment to reflect that. Suggested by: bde
* Remove any hardcoded assumptions about malloc's way of allocating,ache2005-09-141-4/+4
| | | | | | | | | just use MAXPATHLEN. It prevents potential buffer overflow with other malloc implementations. (this change based on submitted patch) PR: 86135 Submitted by: Trevor Blackwell <tlb@tlb.org>
* Don't reuse *pl to skip [], it is already used for {} parts in the loop aboveache2005-09-141-3/+3
| | | | | | | (submitted patch slightly modified) PR: 86038 Submitted by: Gerd Rausch <gerd@juniper.net>
* Correct type.pjd2005-09-141-4/+4
| | | | OK'ed by: cperciva
* Add a missing ldexpf() alias for amd64.das2005-09-121-0/+3
| | | | Noticed by: bz@, tjr@
* Include a couple of headers to ensure consistency between the prototype andstefanf2005-09-1216-0/+22
| | | | the function definition.
* - Add prototypes for __cmpdi2() and __ucmpdi2().stefanf2005-09-121-10/+2
| | | | - Remove GCC 1 stuff.
* Use prototypes for CHIN1() and CHIN().stefanf2005-09-121-6/+2
|
* Move the declaration of __cleanup to libc_private.h as it is used in bothstefanf2005-09-125-4/+12
| | | | stdio/ and stdlib/. Don't define __cleanup twice.
* Add a couple of missing MLINKS.stefanf2005-09-111-0/+17
|
* The arguments for time2posix() and posix2time() are time_t values, notstefanf2005-09-111-3/+3
| | | | pointers.
* Style issue: Don't include <wchar.h> where it is not actually needed.kientzle2005-09-106-10/+49
| | | | | | | | | (wchar_t is defined in stddef.h, and only two files need more than that.) Portability: Since the wchar requirements are really quite modest, it's easy to define basic replacements for wcslen, wcscmp, wcscpy, etc, for use on systems that lack <wchar.h>. In particular, this allows libarchive to be used on older OpenBSD systems.
* Add mkfifo(2) to the man page SEE ALSO list for umask(2) -- it'srwatson2005-09-101-0/+1
| | | | | | mentioned in the description. MFC after: 2 days
* Fix some errors in archive_read_data that caused failures in bsdtar'skientzle2005-09-101-12/+11
| | | | | | | pass-through filtering. Thanks to: Bjoern Koenigönig PR: bin/82878
* Add an MLINK for devname_r().stefanf2005-09-101-0/+1
|
* The header and the man page say that sethostid() returns void, so make thestefanf2005-09-101-4/+4
| | | | definition match. Include <unistd.h>.
* Fix parameter types of close and get members in DB.stefanf2005-09-101-2/+2
|
* Fix fallout from the previous commit:yar2005-09-091-4/+7
| | | | | | | We shouldn't call chmod() if we've just used fchmod() OK on the same file. Approved by: kientzle
* Terminate metadata restore early only on failure, not success.kientzle2005-09-051-2/+4
| | | | In particular, this bug was preventing the restore of fflags.
* Remove references to nonexistent "FreeBSD Security Architecture" document.tjr2005-09-055-25/+0
|
* Include needed headers that were obtained through <pthread.h>. Sort headersstefanf2005-09-0111-9/+28
| | | | while here.
OpenPOWER on IntegriCloud