13c8ef04c5
(I have been using this for years.) This is an RPC portmapper that prevents theft of NIS (YP), NFS, and other sensitive information via the portmapper. As an option, the program supports access control in the style of the TCP Wrappers (log_tcp) package. Daemons that offer RPC services tell the portmapper on what port they listen. And clients asks the portmapper what port the daemon is using. RPC network port numbers may change each time the system is booted. This is Wietse Venema's fourth replacement portmapper. It is derived from source code in the RPCSRC 4.0 and the TIRPC source distributions.
29 lines
649 B
Text
29 lines
649 B
Text
$NetBSD: patch-ab,v 1.1.1.1 2008/03/07 23:40:06 reed Exp $
|
|
|
|
--- portmap.c.orig 2003-03-19 23:42:46.000000000 -0800
|
|
+++ portmap.c 2003-03-19 23:44:06.000000000 -0800
|
|
@@ -85,6 +85,7 @@
|
|
#include <stdio.h>
|
|
#include <syslog.h>
|
|
#include <netdb.h>
|
|
+#include <errno.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/wait.h>
|
|
@@ -124,7 +125,6 @@
|
|
static void callit();
|
|
struct pmaplist *pmaplist;
|
|
int debugging = 0;
|
|
-extern int errno;
|
|
|
|
#include "pmap_check.h"
|
|
|
|
@@ -235,7 +235,7 @@
|
|
/* need to override perror calls in rpc library */
|
|
void
|
|
perror(what)
|
|
- const char *what;
|
|
+ __const char *what;
|
|
{
|
|
|
|
syslog(LOG_ERR, "%s: %m", what);
|