summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-30 02:00:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-30 02:00:27 +0000
commitc621e66f206dff3d24c2fffdb44b63daa58bcdfd (patch)
tree37a1c5cdbc87bb21414acc25a054afd6e9721eba /usr.sbin
parent8d76d3a589743f688ae452e095ee8ca44deb25af (diff)
domainname care
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ypbind/ypbind.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index 763f5d72a60..428d7ff43fe 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypbind.c,v 1.14 1997/01/22 08:54:14 deraadt Exp $ */
+/* $OpenBSD: ypbind.c,v 1.15 1997/01/30 02:00:26 deraadt Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt <deraadt@theos.com>
@@ -34,7 +34,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypbind.c,v 1.14 1997/01/22 08:54:14 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypbind.c,v 1.15 1997/01/30 02:00:26 deraadt Exp $";
#endif
#include <sys/param.h>
@@ -889,6 +889,9 @@ int force;
char path[MAXPATHLEN];
int fd;
+ if (strchr(dom, "/") || strchr(dom, ".")
+ return;
+
#ifdef DEBUG
printf("returned from %s about %s\n", inet_ntoa(raddrp->sin_addr), dom);
#endif