-/* $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>
*/
#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>
char path[MAXPATHLEN];
time_t now;
- if (strchr((char *)argp, '/') || strchr((char *)argp, '.'))
+ if (strchr((char *)argp, '/'))
return NULL;
memset(&res, 0, sizeof res);
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" */
char path[MAXPATHLEN];
int fd;
- if (strchr(dom, '/') || strchr(dom, '.'))
+ if (strchr(dom, '/'))
return;
#ifdef DEBUG