diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-11-04 07:34:14 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-11-06 08:20:17 +0100 |
commit | 8bc245da2107d4cbd51ae86f90a6e6d5a1f151d8 (patch) | |
tree | 0fcbb155b911dc21c807d590b8292161270f4a41 /package/rpcbind/rpcbind-01-no-yp-support.patch | |
parent | 2fb1a48ad80a765a1f46e183d3ecf742adfbfca9 (diff) | |
download | buildroot-novena-8bc245da2107d4cbd51ae86f90a6e6d5a1f151d8.tar.gz buildroot-novena-8bc245da2107d4cbd51ae86f90a6e6d5a1f151d8.zip |
rpcbind: new package
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/rpcbind/rpcbind-01-no-yp-support.patch')
-rw-r--r-- | package/rpcbind/rpcbind-01-no-yp-support.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/package/rpcbind/rpcbind-01-no-yp-support.patch b/package/rpcbind/rpcbind-01-no-yp-support.patch new file mode 100644 index 000000000..e9e6c9d76 --- /dev/null +++ b/package/rpcbind/rpcbind-01-no-yp-support.patch @@ -0,0 +1,46 @@ +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> +Index: b/src/security.c +=================================================================== +--- 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 @@ + 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; + } |