freebsd-nq/lib/libc
Bill Paul f067dfeabc Fix behavior of YP library routines in environments with multiple domains,
where one or more of the non-default domains are not yet bound.

If we make a YP request for a domain other than the default domain,
and there is no binding for the new domain yet, _yp_dobind() sees
that the /var/yp/binding/DOMAIN.VERS file for the unbound domain is
not locked (by ypbind) and from this it concludes that the NIS system
is dead, so it gives up.

This behavior has been changed: before giving up in this case, we now
make a second check to see if the binding file for the *default* domain
is also not locked. Only if the default domain binding file is also
unlocked to we now assume that ypbind has bought the farm and bail out.
(Note: this assumes that the user hasn't changed the default domain
while ypbind is running.)

With this change, _do_ypbind() is allowed to proceed into the next
section of code wherein it prods ypbind into establishing a binding
for the new domain. This first call times out after ten seconds,
after which it should retry and succeed. From then on, the binding
for the second domain should be handled normally.
1995-04-09 19:26:23 +00:00
..
amd64 First round of changes to clean up the RCSID mess in libc: 1995-01-23 01:30:24 +00:00
compat-43 gethostid.2 is now gethostid.3. Instal the correct one. 1994-08-28 17:08:36 +00:00
db Added the mpool.3 manpage to the installed manpages. It is referred from the 1994-12-11 22:03:05 +00:00
gen Add missing header reference 1995-04-09 04:59:40 +00:00
gmon Added support for kernel profiling to mcount.c 1994-09-15 16:00:41 +00:00
i386 First round of changes to clean up the RCSID mess in libc: 1995-01-23 01:30:24 +00:00
locale Reviewed by: ache and wollman (long ago) 1995-04-07 11:52:17 +00:00
net Add ether_addr functions to libc. This seems to be the logical place 1995-04-02 01:31:17 +00:00
nls Fix manpage rule 1995-04-02 19:35:40 +00:00
quad BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
regex First crack at making libc work with the new make macros. It compiles on 1994-08-05 01:19:12 +00:00
rpc 'Fix' for esoteric misfeature discovered while searching for another bug: 1995-04-04 05:53:22 +00:00
stdio Obtained from: 1.1.5 (originally by jtc) 1995-04-06 16:28:15 +00:00
stdlib Fix a missing _hash() to prevent namespace pollution with the db/hash routines. 1995-03-28 08:41:02 +00:00
stdtime On snap 950210, format %s (print seconds from the epoch) is missing 1995-03-01 23:08:40 +00:00
string Don't build swab.o here. It gets built in libc/i386/string. Previously 1995-03-07 04:19:11 +00:00
sys Add "before inclusion of any header which ... " 1995-04-04 11:29:51 +00:00
xdr More directory cleanup after YP merge. 1994-08-07 22:21:14 +00:00
yp Fix behavior of YP library routines in environments with multiple domains, 1995-04-09 19:26:23 +00:00
Makefile Add nls include to Makefile. 1995-03-30 12:46:36 +00:00