diff options
author | Philippe Charnier <charnier@FreeBSD.org> | 1997-10-29 07:25:05 +0000 |
---|---|---|
committer | Philippe Charnier <charnier@FreeBSD.org> | 1997-10-29 07:25:05 +0000 |
commit | 988345234d99a627568e5af317ec20f67f39552b (patch) | |
tree | c1a45162ab8ba734e2a4c9931f86bd6f71c0dea9 /usr.sbin/ypserv/yp_access.c | |
parent | 0fe7ca3165cb16c1d3a3113d4a5048d9077919c2 (diff) | |
download | src-988345234d99a627568e5af317ec20f67f39552b.tar.gz src-988345234d99a627568e5af317ec20f67f39552b.zip |
Typos in man page. Cosmetics in error strings.
Notes
Notes:
svn path=/head/; revision=30827
Diffstat (limited to 'usr.sbin/ypserv/yp_access.c')
-rw-r--r-- | usr.sbin/ypserv/yp_access.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/usr.sbin/ypserv/yp_access.c b/usr.sbin/ypserv/yp_access.c index 5b306a854e69..bb869f209d25 100644 --- a/usr.sbin/ypserv/yp_access.c +++ b/usr.sbin/ypserv/yp_access.c @@ -31,6 +31,11 @@ * */ +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ + #include <stdlib.h> #include <rpc/rpc.h> #include <rpcsvc/yp.h> @@ -52,10 +57,6 @@ #include "tcpd.h" #endif -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - extern int debug; /* NIS v1 */ @@ -241,11 +242,11 @@ int yp_access(map, rqstp) rqhost = svc_getcaller(rqstp->rq_xprt); if (debug) { - yp_error("Procedure %s called from %s:%d", yp_procedure, + yp_error("procedure %s called from %s:%d", yp_procedure, inet_ntoa(rqhost->sin_addr), ntohs(rqhost->sin_port)); if (map != NULL) - yp_error("Client is referencing map \"%s\".", map); + yp_error("client is referencing map \"%s\".", map); } /* Check the map name if one was supplied. */ @@ -267,14 +268,14 @@ possible spoof attempt from %s:%d", (rqstp->rq_prog == YPXFRD_FREEBSD_PROG && rqstp->rq_proc == YPXFRD_GETMAP)) && ntohs(rqhost->sin_port) >= IPPORT_RESERVED) { - yp_error("Access to %s denied -- client %s:%d \ + yp_error("access to %s denied -- client %s:%d \ not privileged", map, inet_ntoa(rqhost->sin_addr), ntohs(rqhost->sin_port)); return(1); } } #ifdef TCP_WRAPPER - status = hosts_ctl(progname, STRING_UNKNOWN, + status = hosts_ctl("ypserv", STRING_UNKNOWN, inet_ntoa(rqhost->sin_addr), ""); #else tmp = securenets; |