kumquat-buildroot/package/rpcbind/rpcbind-0001-Remove-yellow-pages-support.patch
Thomas Petazzoni bff62a2a87 rpcbind: convert to git patch
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-11-14 23:00:27 +01:00

57 lines
1.4 KiB
Diff

From 6b5db966ae01c0bdaa7b3b90d9332394af6ea0be Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Sat, 10 Nov 2012 22:03:43 +0100
Subject: [PATCH] Remove yellow pages support
This support requires yellow pages support in libtirpc, which isn't
available. As most Buildroot users are most likely never going to need
such feature, get rid of it.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
src/security.c | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/src/security.c b/src/security.c
index 0edeac6..c6c977f 100644
--- a/src/security.c
+++ b/src/security.c
@@ -23,9 +23,6 @@
#include <rpcsvc/mount.h>
#include <rpcsvc/rquota.h>
#include <rpcsvc/nfs_prot.h>
-#include <rpcsvc/yp.h>
-#include <rpcsvc/ypclnt.h>
-#include <rpcsvc/yppasswd.h>
#include "rpcbind.h"
@@ -322,24 +319,9 @@ check_callit(SVCXPRT *xprt, struct r_rmtcall_args *args, int versnum /*__unused*
args->rmt_proc != MOUNTPROC_UMNT)
break;
goto deny;
- case YPBINDPROG:
- if (args->rmt_proc != YPBINDPROC_SETDOM)
- break;
- /* FALLTHROUGH */
- case YPPASSWDPROG:
case NFS_PROGRAM:
case RQUOTAPROG:
goto deny;
- case YPPROG:
- switch (args->rmt_proc) {
- case YPPROC_ALL:
- case YPPROC_MATCH:
- case YPPROC_FIRST:
- case YPPROC_NEXT:
- goto deny;
- default:
- break;
- }
default:
break;
}
--
1.7.9.5