package/bullet: bump to version 2.85.1
[buildroot-gz.git] / package / rpcbind / 0001-Remove-yellow-pages-support.patch
blob314e32e9c8e9b78276f9035d775fc47ac8a01bf9
1 From 226b9c57ff403b407dbf1ff8a615da455a4cbd23 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sat, 10 Nov 2012 22:03:43 +0100
4 Subject: [PATCH] Remove yellow pages support
6 This support requires yellow pages support in libtirpc, which isn't
7 available. As most Buildroot users are most likely never going to need
8 such feature, get rid of it.
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 ---
12 src/security.c | 18 ------------------
13 1 file changed, 18 deletions(-)
15 diff --git a/src/security.c b/src/security.c
16 index 0c9453f..abc81bb 100644
17 --- a/src/security.c
18 +++ b/src/security.c
19 @@ -24,9 +24,6 @@
20 #include <rpcsvc/mount.h>
21 #include <rpcsvc/rquota.h>
22 #include <rpcsvc/nfs_prot.h>
23 -#include <rpcsvc/yp.h>
24 -#include <rpcsvc/ypclnt.h>
25 -#include <rpcsvc/yppasswd.h>
26 #else
27 # define MOUNTPROC_MNT 1
28 # define MOUNTPROC_UMNT 3
29 @@ -325,24 +322,9 @@ check_callit(SVCXPRT *xprt, struct r_rmtcall_args *args, int versnum /*__unused*
30 args->rmt_proc != MOUNTPROC_UMNT)
31 break;
32 goto deny;
33 - case YPBINDPROG:
34 - if (args->rmt_proc != YPBINDPROC_SETDOM)
35 - break;
36 - /* FALLTHROUGH */
37 - case YPPASSWDPROG:
38 case NFS_PROGRAM:
39 case RQUOTAPROG:
40 goto deny;
41 - case YPPROG:
42 - switch (args->rmt_proc) {
43 - case YPPROC_ALL:
44 - case YPPROC_MATCH:
45 - case YPPROC_FIRST:
46 - case YPPROC_NEXT:
47 - goto deny;
48 - default:
49 - break;
50 - }
51 default:
52 break;
54 --
55 2.4.5