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
>Organization:
ECS, Victoria Uni. of Wellington, New Zealand.
>Environment:
	
	
System: NetBSD green-mountain.ecs.vuw.ac.nz 9.99.99 NetBSD 9.99.99 (GENERIC) #9: Sat Jul 30 17:06:37 NZST 2022 mark%turakirae.ecs.vuw.ac.nz@localhost:/local/SAVE/cur64.obj/src/work/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	Trying to configure an rpc service in inetd.conf results in the error:
              "rpc services not supported"

>How-To-Repeat:
	uncomment one of the prc services in inetd.conf

>Fix:
	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
+#endif
+
+#ifdef RPC
+#include <rpc/rpc.h>
+#include <rpc/rpcb_clnt.h>
+#include <netconfig.h>
+#endif
+
 static void    config(void);
 static void    endconfig(void);
 static struct servtab  *enter(struct servtab *);

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index