-/* $OpenBSD: ypserv_db.c,v 1.10 1997/03/11 09:12:25 maja Exp $ */
+/* $OpenBSD: ypserv_db.c,v 1.11 1997/04/12 16:53:06 deraadt Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypserv_db.c,v 1.10 1997/03/11 09:12:25 maja Exp $";
+static char rcsid[] = "$OpenBSD: ypserv_db.c,v 1.11 1997/04/12 16:53:06 deraadt Exp $";
#endif
/*
else
close(fd);
+ if (strchr(domain, '/')) {
+ *status = YP_NODOM;
+ return (NULL);
+ }
+ if (strchr(domain, '/')) {
+ *status = YP_NOMAP;
+ return (NULL);
+ }
+
/*
* check for domain, file.
*/