summaryrefslogtreecommitdiffstats
path: root/usr.sbin/portmap
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:57:47 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:57:47 +0000
commit4f960dd75f181e9fa2edc44324f15f0ab5c64b37 (patch)
tree15a9c7203efd47ba6dde2896fdb6327dddd4547f /usr.sbin/portmap
parent30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (diff)
downloadFreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.zip
FreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'usr.sbin/portmap')
-rw-r--r--usr.sbin/portmap/from_local.c2
-rw-r--r--usr.sbin/portmap/pmap_check.c16
-rw-r--r--usr.sbin/portmap/pmap_dump/pmap_dump.c2
-rw-r--r--usr.sbin/portmap/pmap_set/pmap_set.c2
-rw-r--r--usr.sbin/portmap/portmap.c40
5 files changed, 31 insertions, 31 deletions
diff --git a/usr.sbin/portmap/from_local.c b/usr.sbin/portmap/from_local.c
index dc5583a..9daacba 100644
--- a/usr.sbin/portmap/from_local.c
+++ b/usr.sbin/portmap/from_local.c
@@ -1,6 +1,6 @@
/*
* Check if an address belongs to the local system. Adapted from:
- *
+ *
* @(#)pmap_svc.c 1.32 91/03/11 Copyright 1984,1990 Sun Microsystems, Inc.
* @(#)get_myaddress.c 2.1 88/07/29 4.0 RPCSRC.
*/
diff --git a/usr.sbin/portmap/pmap_check.c b/usr.sbin/portmap/pmap_check.c
index 1d1ed61..eb0653b 100644
--- a/usr.sbin/portmap/pmap_check.c
+++ b/usr.sbin/portmap/pmap_check.c
@@ -1,24 +1,24 @@
/*
* pmap_check - additional portmap security.
- *
+ *
* Always reject non-local requests to update the portmapper tables.
- *
+ *
* Refuse to forward mount requests to the nfs mount daemon. Otherwise, the
* requests would appear to come from the local system, and nfs export
* restrictions could be bypassed.
- *
+ *
* Refuse to forward requests to the nfsd process.
- *
+ *
* Refuse to forward requests to NIS (YP) daemons; The only exception is the
* YPPROC_DOMAIN_NONACK broadcast rpc call that is used to establish initial
* contact with the NIS server.
- *
+ *
* Always allocate an unprivileged port when forwarding a request.
- *
+ *
* If compiled with -DCHECK_PORT, require that requests to register or
* unregister a privileged port come from a privileged port. This makes it
* more difficult to replace a critical service by a trojan.
- *
+ *
* If compiled with -DHOSTS_ACCESS, reject requests from hosts that are not
* authorized by the /etc/hosts.{allow,deny} files. The local system is
* always treated as an authorized host. The access control tables are never
@@ -26,7 +26,7 @@
* for requests from other hosts. Access control is based on IP addresses
* only; attempts to map an address to a host name might cause the
* portmapper to hang.
- *
+ *
* Author: Wietse Venema (wietse@wzv.win.tue.nl), dept. of Mathematics and
* Computing Science, Eindhoven University of Technology, The Netherlands.
*/
diff --git a/usr.sbin/portmap/pmap_dump/pmap_dump.c b/usr.sbin/portmap/pmap_dump/pmap_dump.c
index 2bddcbb..9d57d65 100644
--- a/usr.sbin/portmap/pmap_dump/pmap_dump.c
+++ b/usr.sbin/portmap/pmap_dump/pmap_dump.c
@@ -1,6 +1,6 @@
/*
* pmap_dump - dump portmapper table in format readable by pmap_set
- *
+ *
* Author: Wietse Venema (wietse@wzv.win.tue.nl), dept. of Mathematics and
* Computing Science, Eindhoven University of Technology, The Netherlands.
*/
diff --git a/usr.sbin/portmap/pmap_set/pmap_set.c b/usr.sbin/portmap/pmap_set/pmap_set.c
index ab82fd5..92e7994 100644
--- a/usr.sbin/portmap/pmap_set/pmap_set.c
+++ b/usr.sbin/portmap/pmap_set/pmap_set.c
@@ -1,6 +1,6 @@
/*
* pmap_set - set portmapper table from data produced by pmap_dump
- *
+ *
* Author: Wietse Venema (wietse@wzv.win.tue.nl), dept. of Mathematics and
* Computing Science, Eindhoven University of Technology, The Netherlands.
*/
diff --git a/usr.sbin/portmap/portmap.c b/usr.sbin/portmap/portmap.c
index 6c40795..5ef8b2d 100644
--- a/usr.sbin/portmap/portmap.c
+++ b/usr.sbin/portmap/portmap.c
@@ -58,23 +58,23 @@ static char sccsid[] = "@(#)portmap.c 1.32 87/08/06 Copyr 1984 Sun Micro";
* may copy or modify Sun RPC without charge, but are not authorized
* to license or distribute it to anyone else except as part of a product or
* program developed by the user.
- *
+ *
* SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
* WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
* PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- *
+ *
* Sun RPC is provided with no support and without any obligation on the
* part of Sun Microsystems, Inc. to assist in its use, correction,
* modification or enhancement.
- *
+ *
* SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
* INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
* OR ANY PART THEREOF.
- *
+ *
* In no event will Sun Microsystems, Inc. be liable for any lost revenue
* or profits or other special, indirect and consequential damages, even if
* Sun has been advised of the possibility of such damages.
- *
+ *
* Sun Microsystems, Inc.
* 2550 Garcia Avenue
* Mountain View, California 94043
@@ -227,7 +227,7 @@ find_service(prog, vers, prot)
return (hit);
}
-/*
+/*
* 1 OK, 0 not
*/
void
@@ -239,7 +239,7 @@ reg_service(rqstp, xprt)
struct pmaplist *pml, *prevpml, *fnd;
int ans, port;
caddr_t t;
-
+
/*
* Later wrappers change the logging severity on the fly. Reset to
* defaults before handling the next request.
@@ -270,11 +270,11 @@ reg_service(rqstp, xprt)
svcerr_decode(xprt);
else {
/* reject non-local requests, protect priv. ports */
- if (!check_setunset(svc_getcaller(xprt),
+ if (!check_setunset(svc_getcaller(xprt),
rqstp->rq_proc, reg.pm_prog, reg.pm_port)) {
ans = 0;
goto done;
- }
+ }
/*
* check to see if already used
* find_service returns a hit even if
@@ -291,7 +291,7 @@ reg_service(rqstp, xprt)
goto done;
}
} else {
- /*
+ /*
* add to END of list
*/
pml = (struct pmaplist *)
@@ -325,7 +325,7 @@ reg_service(rqstp, xprt)
else {
ans = 0;
/* reject non-local requests */
- if (!check_setunset(svc_getcaller(xprt),
+ if (!check_setunset(svc_getcaller(xprt),
rqstp->rq_proc, reg.pm_prog, (u_long) 0))
goto done;
for (prevpml = NULL, pml = pmaplist; pml != NULL; ) {
@@ -338,9 +338,9 @@ reg_service(rqstp, xprt)
}
/* found it; pml moves forward, prevpml stays */
/* privileged port check */
- if (!check_privileged_port(svc_getcaller(xprt),
- rqstp->rq_proc,
- reg.pm_prog,
+ if (!check_privileged_port(svc_getcaller(xprt),
+ rqstp->rq_proc,
+ reg.pm_prog,
pml->pml_map.pm_port)) {
ans = 0;
break;
@@ -370,8 +370,8 @@ reg_service(rqstp, xprt)
svcerr_decode(xprt);
else {
/* remote host authorization check */
- if (!check_default(svc_getcaller(xprt),
- rqstp->rq_proc,
+ if (!check_default(svc_getcaller(xprt),
+ rqstp->rq_proc,
reg.pm_prog)) {
ans = 0;
goto done;
@@ -398,7 +398,7 @@ reg_service(rqstp, xprt)
else {
/* remote host authorization check */
struct pmaplist *p;
- if (!check_default(svc_getcaller(xprt),
+ if (!check_default(svc_getcaller(xprt),
rqstp->rq_proc, (u_long) 0)) {
p = 0; /* send empty list */
} else {
@@ -417,7 +417,7 @@ reg_service(rqstp, xprt)
* Calls a procedure on the local machine. If the requested
* procedure is not registered this procedure does not return
* error information!!
- * This procedure is only supported on rpc/udp and calls via
+ * This procedure is only supported on rpc/udp and calls via
* rpc/udp. It passes null authentication parameters.
*/
callit(rqstp, xprt);
@@ -531,7 +531,7 @@ xdr_len_opaque_parms(xdrs, cap)
* a machine should shut-up instead of complain, less the requestor be
* overrun with complaints at the expense of not hearing a valid reply ...
*
- * This now forks so that the program & process that it calls can call
+ * This now forks so that the program & process that it calls can call
* back to the portmapper.
*/
static void
@@ -555,7 +555,7 @@ callit(rqstp, xprt)
if (!svc_getargs(xprt, xdr_rmtcall_args, &a))
return;
/* host and service access control */
- if (!check_callit(svc_getcaller(xprt),
+ if (!check_callit(svc_getcaller(xprt),
rqstp->rq_proc, a.rmt_prog, a.rmt_proc))
return;
if ((pml = find_service(a.rmt_prog, a.rmt_vers,
OpenPOWER on IntegriCloud