summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypbind
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-01-30 18:26:55 +0000
committerderaadt <deraadt@openbsd.org>1997-01-30 18:26:55 +0000
commitc8b8162e7169d773c7616e5bb2330ad0225f3394 (patch)
treeb6a89e444492fbdbf4332ed9a02de52510c996df /usr.sbin/ypbind
parentAdded ICMP Destination Unreachable codes from RFC-1812: (diff)
downloadwireguard-openbsd-c8b8162e7169d773c7616e5bb2330ad0225f3394.tar.xz
wireguard-openbsd-c8b8162e7169d773c7616e5bb2330ad0225f3394.zip
avoid being too paranoid... make it work!
Diffstat (limited to 'usr.sbin/ypbind')
-rw-r--r--usr.sbin/ypbind/ypbind.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index ce154b3cc73..f235f92bdb2 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypbind.c,v 1.18 1997/01/30 07:47:29 deraadt Exp $ */
+/* $OpenBSD: ypbind.c,v 1.19 1997/01/30 18:26:55 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.18 1997/01/30 07:47:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypbind.c,v 1.19 1997/01/30 18:26:55 deraadt Exp $";
#endif
#include <sys/param.h>
@@ -156,7 +156,7 @@ ypbindproc_domain_2x(transp, argp, clnt)
char path[MAXPATHLEN];
time_t now;
- if (strchr((char *)argp, '/') || strchr((char *)argp, '.'))
+ if (strchr((char *)argp, '/'))
return NULL;
memset(&res, 0, sizeof res);
@@ -495,7 +495,7 @@ main(argc, argv)
rmtcr.xdr_results = xdr_bool;
rmtcr.results_ptr = (caddr_t)&rmtcr_outval;
- if (strchr(domain, '/') || strchr(domain, '.'))
+ if (strchr(domain, '/'))
errx(1, "bad domainname %s", domain);
/* build initial domain binding, make it "unsuccessful" */
@@ -984,7 +984,7 @@ int force;
char path[MAXPATHLEN];
int fd;
- if (strchr(dom, '/') || strchr(dom, '.'))
+ if (strchr(dom, '/'))
return;
#ifdef DEBUG