summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1997-04-10 21:16:49 +0000
committerBill Paul <wpaul@FreeBSD.org>1997-04-10 21:16:49 +0000
commit6a5f34d3b49375c793da040551d3dd5e8fec2118 (patch)
tree07e29715e3cc6f2f21efd79a324bb2a922a707d2 /lib
parent504cef64656777d863e2c0b6a853084b463e7eb3 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/yp/yplib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/yp/yplib.c b/lib/libc/yp/yplib.c
index 5f66986656a5..ab1820d48d63 100644
--- a/lib/libc/yp/yplib.c
+++ b/lib/libc/yp/yplib.c
@@ -28,7 +28,7 @@
*/
#ifndef LINT
-static char *rcsid = "$Id: yplib.c,v 1.10.4.6 1996/06/25 17:53:33 wpaul Exp $";
+static char *rcsid = "$Id: yplib.c,v 1.10.4.7 1996/11/08 02:06:30 wpaul Exp $";
#endif
#include <sys/param.h>
@@ -204,6 +204,10 @@ struct dom_binding **ypdb;
int new = 0, r;
int retries = 0;
+ /* Not allowed; bad doggie. Bad. */
+ if (strchr(dom, '/') != NULL)
+ return(YPERR_BADARGS);
+
gpid = getpid();
if( !(pid==-1 || pid==gpid) ) {
ysd = _ypbindlist;