Go to file
cube 8ec7c6764b fd_lastfile should be -1 when there are no opened file descriptors.
Hence, make find_last_set return -1 in such situation, and initialize it
such.  Otherwise, with 0 meaning two things, it confused the F_CLOSEM
fcntl which could end up looping indifintely (PR#28929 by Brian Marcotte).

However, this change enlightens another bug in fdcopy(), where more entries
than needed were cleared in the new file descriptor table, so the memset()
call there is fixed too.

Analyzed with the help of Greg Oster.
2005-01-12 20:41:45 +00:00
bin PR/28940: David Laight: /bin/sh doesn't quote the output of trap. 2005-01-11 19:38:57 +00:00
contrib/sys Finalize import of the Atheros HAL 0.9.9.13, bringing ath(4) 2004-07-28 08:57:40 +00:00
crypto don't throw const away for no reason. 2004-12-11 06:58:20 +00:00
dist Fail closed for NetBSD. If /etc/pam.d and /etc/pam.conf are missing, then 2005-01-12 01:38:23 +00:00
distrib bump libutil. 2005-01-12 03:37:16 +00:00
doc note audio filter pipeline 2005-01-12 06:58:40 +00:00
etc Disable "pam" check/fix, since the current implementation will overwrite 2005-01-11 12:19:35 +00:00
games Convert from libc/threadlib-style mutex protection to pthread style. 2004-12-14 00:21:01 +00:00
gnu Only compile in IPv6 support if ${USE_INET6} != "no" 2005-01-10 02:58:58 +00:00
include modify footprint of pw_gensalt(). 2005-01-12 03:33:32 +00:00
lib Use \*[Am] and \*[Gt], like before the previous revision; use .In; minor other changes. 2005-01-12 14:44:11 +00:00
libexec Quote symbol names in a debug message (to make it easier to spot an empty 2005-01-11 21:58:27 +00:00
regress Only compile in IPv6 support if ${USE_INET6} != "no" 2005-01-10 02:58:58 +00:00
rescue Special-case the srcdirs for scp & ssh. 2005-01-10 13:04:04 +00:00
sbin apply "& WDOG_MODE_MASK" at some places, fixes termination of the 2005-01-12 16:18:39 +00:00
share Show "UID" on the first line (was broken after gawk -> nawk switch). 2005-01-12 17:58:45 +00:00
sys fd_lastfile should be -1 when there are no opened file descriptors. 2005-01-12 20:41:45 +00:00
tools Add some quotes to prevent a syntax error. 2005-01-09 03:48:30 +00:00
usr.bin * Kill __P() 2005-01-12 17:19:23 +00:00
usr.sbin Add a message to the catalog. 2005-01-12 17:53:45 +00:00
x11 Remove some redundant assignments. 2005-01-09 21:45:53 +00:00
build.sh Initial import of iyonix port. 2004-10-13 23:28:34 +00:00
BUILDING Fix some typo's/bad wording as highlighted in PR#27219 2004-10-12 04:07:09 +00:00
Makefile correct the comment describing the build order 2005-01-01 10:32:39 +00:00
Makefile.inc don't set KERNSRCDIR here; pull in <bsd.kernobj.mk> if you need it 2002-04-10 14:53:43 +00:00
UPDATING Mention /etc/pam.d requirement. 2005-01-09 07:31:31 +00:00