1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/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 Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libcompat Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libcrypt Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libcurses Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libdisk Brought in changes from rev 1.14.2.1 into main branch. 1995-08-26 04:57:03 +00:00
libedit Update to 4.4lite2 (initialize arrow key data completely). 1995-10-22 18:49:04 +00:00
libf2c Update to the 1995/09/20 version. Previous version was 1993/12/17. 1995-09-28 20:49:15 +00:00
libF77 Update to the 1995/09/20 version. Previous version was 1993/12/17. 1995-09-28 20:49:15 +00:00
libforms Removed libdialog. 1995-09-16 16:25:25 +00:00
libftp Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libI77 Update to the 1995/09/20 version. Previous version was 1993/12/17. 1995-09-28 20:49:15 +00:00
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 Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libmd Back out that last change; we don't build this shared. 1995-09-06 14:34:50 +00:00
libmytinfo Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
libncurses Finally catch up with the Frenchmen, and create the German message 1995-10-21 23:47:43 +00:00
libpam/modules Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
libpcap Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
libresolv
librpc
librpcsvc If we are going to set the OBJS target, don't add to the old target. This 1995-03-04 17:39:24 +00:00
libscsi Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libskey Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libss Install non-source files with the optional flag ${COPY}, not with the flag -c. 1995-08-06 12:41:07 +00:00
libtelnet Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libterm
libtermcap Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
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 Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
rpcsvc
Makefile Reviewed by: julian and jhay@mikom.csir.co.za 1995-10-26 20:31:59 +00:00
Makefile.inc