freebsd-dev/lib
Bill Paul 0f98415ed4 - Make _do_ypbind() check for /var/run/ypbind.lock and attempt to flock()
it before before trying to establish a binding. If /var/run/ypbind.lock
  doesn't exist, or if it exists and isn't locked, then ypbind isn't
  running, which means NIS is either turned off or hosed.

- Have _yp_check() call yp_unbind() after it sucessfully calls yp_bind()
  to make sure it frees resources correctly. (I don't think there's really
  a memory leak here, but it seems somehow wrong to call yp_bind() without
  making a corresponding call to yp_unbind() afterwards.)

This makes the NIS code behave a little better in cases where libc makes
calls to NIS, but it isn't running correctly (i.e. there's no ypbind).

This cleans up some strange libc behavior that manifests itself if
you have the system domain name set, but aren't actually running NIS.
In this event, the getrpcent(3) code could try to call into NIS and
cause several inexplicable "clnttcp_create error: RPC program not
registered" messages to appear. This happens because _yp_check() checks
if the system domain name is set and, if it is, proceeds to call
yp_bind() to attempt to establish a binding. Since there is no
binding file (remember: ypbind isn't running, so /var/yp/binding
will be empty), _yp_dobind() will attempt to contact ypbind to
prod it into binding the domain. And because ypbind isn't running,
the code generates the 'clnttcp_create' error. Ultimately the
_yp_check() fails and the getrpcent(3) code rolls over to the /etc/rpc
file, but the error messages are annoying, and the code should be
smart enough to forgo the binding attempt when NIS is turned off.
1995-11-05 05:39:04 +00:00
..
csu/i386 Remove my locale hack. Sigh. 1995-11-02 12:42:42 +00:00
libc - Make _do_ypbind() check for /var/run/ypbind.lock and attempt to flock() 1995-11-05 05:39:04 +00:00
libcom_err
libcompat
libcrypt
libcurses
libdisk
libedit Update to 4.4lite2 (initialize arrow key data completely). 1995-10-22 18:49:04 +00:00
libf2c
libF77
libforms
libftp
libI77
libipx Reviewed by: julian and jhay@mikom.csir.co.za 1995-10-26 20:31:59 +00:00
libkvm Removed unnecessary include of <sys/tty.h>. tty.h apparently once had 1995-10-22 18:52:23 +00:00
libm
libmd
libmytinfo
libncurses Finally catch up with the Frenchmen, and create the German message 1995-10-21 23:47:43 +00:00
libpam/modules
libpcap
libresolv
librpc
librpcsvc
libscsi
libskey
libss
libtelnet
libterm
libtermcap
libutil Update to 4.4lite2 (clean up includes; initialize the name of the master 1995-10-22 19:11:12 +00:00
libxpg4 Add more stuff moved out from XPG3 1995-11-03 09:03:00 +00:00
liby
msun Undo the the changes in the previous revision (MANSRC now works right again). 1995-10-22 19:16:01 +00:00
ncurses/ncurses
rpcsvc
Makefile Reviewed by: julian and jhay@mikom.csir.co.za 1995-10-26 20:31:59 +00:00
Makefile.inc