NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/56963: inetd not configured for rpc

>Number:         56963
>Category:       bin
>Synopsis:       inetd not configured for rpc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 10 03:00:00 +0000 2022
>Originator:     Mark Davies
>Release:        NetBSD 9.99.99
ECS, Victoria Uni. of Wellington, New Zealand.
System: NetBSD 9.99.99 NetBSD 9.99.99 (GENERIC) #9: Sat Jul 30 17:06:37 NZST 2022 amd64
Architecture: x86_64
Machine: amd64
	Trying to configure an rpc service in inetd.conf results in the error:
              "rpc services not supported"

	uncomment one of the prc services in inetd.conf

	When parse.c was split out of inetd.c the code setting the define RPC was not
	copied over.  The below patch copies it from inetd.c but probably should move it
	from both inetd.c and parse.c to inetd.h

Index: parse.c
RCS file: /src/cvs/netbsd/src/usr.sbin/inetd/parse.c,v
retrieving revision 1.3
diff -u -r1.3 parse.c
--- parse.c     22 May 2022 11:27:37 -0000      1.3
+++ parse.c     4 Aug 2022 05:00:57 -0000
@@ -93,6 +93,16 @@
 #include "inetd.h"
+#ifndef NO_RPC
+#define RPC
+#ifdef RPC
+#include <rpc/rpc.h>
+#include <rpc/rpcb_clnt.h>
+#include <netconfig.h>
 static void    config(void);
 static void    endconfig(void);
 static struct servtab  *enter(struct servtab *);


Home | Main Index | Thread Index | Old Index