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
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
*/
#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>
(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