summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/man/man8/yp.810
-rw-r--r--usr.sbin/ypbind/ypbind.c7
2 files changed, 13 insertions, 4 deletions
diff --git a/share/man/man8/yp.8 b/share/man/man8/yp.8
index 23057840ba6..3139f6050be 100644
--- a/share/man/man8/yp.8
+++ b/share/man/man8/yp.8
@@ -121,6 +121,10 @@ client subsystem is started automatically in
if the directory
.Pa /var/yp/binding
exists.
+The client subsystem can be turned on and off by creating or
+deleting that directory.
+.Xr ypbind 8
+will create that directory if run by hand.
.Pp
The
.Nm YP
@@ -129,11 +133,11 @@ server subsystem is started automatically in
if the directory
.Pa /var/yp/DOMAINNAME
exists.
-This directory is created when
+This directory is automatically created by
.Xr ypinit 8
-is run to initialize the machine as a
+(which initializes the machine as a
.Nm YP
-server.
+server.)
.Pp
If
.Nm ypbind
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index 2b0f68a8815..c45195a2235 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -31,7 +31,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$Id: ypbind.c,v 1.3 1996/04/24 21:44:45 deraadt Exp $";
+static char rcsid[] = "$Id: ypbind.c,v 1.4 1996/05/05 12:37:32 deraadt Exp $";
#endif
#include <sys/param.h>
@@ -350,6 +350,11 @@ main(argc, argv)
(void) unlink(path);
}
closedir(dirp);
+ } else {
+ printf("Enabling yp client subsystem.\n");
+ printf("To disable: kill ypbind and remove %s\n",
+ BINDINGDIR);
+ (void)mkdir(BINDINGDIR, 0755);
}
#ifdef O_SHLOCK