Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1http://projects.archlinux.org/svntogit/packages.git/tree/trunk/rpcbind-sunrpc.patch?h=packages/rpcbind 2 3Lookup "sunrpc" instead of "rpcbind" in /etc/services, since the former is the 4official IANA name. 5 6diff -ru3 rpcbind-0.2.3/src/rpcbind.c rpcbind-0.2.3.new/src/rpcbind.c 7--- rpcbind-0.2.3/src/rpcbind.c 2015-04-27 17:07:43.000000000 +0300 8+++ rpcbind-0.2.3.new/src/rpcbind.c 2015-05-18 16:29:24.938380694 +0300 9@@ -132,7 +132,7 @@ 10 char *udp_uaddr; /* Universal UDP address */ 11 char *tcp_uaddr; /* Universal TCP address */ 12 #endif 13-static char servname[] = "rpcbind"; 14+static char servname[] = "sunrpc"; 15 static char superuser[] = "superuser"; 16 17 int main __P((int, char *[])); 18diff -ru3 rpcbind-0.2.3/src/rpcinfo.c rpcbind-0.2.3.new/src/rpcinfo.c 19--- rpcbind-0.2.3/src/rpcinfo.c 2015-04-27 17:07:43.000000000 +0300 20+++ rpcbind-0.2.3.new/src/rpcinfo.c 2015-05-18 16:30:14.197025336 +0300 21@@ -1842,7 +1842,7 @@ 22 23 /* Get the address of the rpcbind */ 24 memset (&hints, 0, sizeof hints); 25- if ((getaddrinfo (host, "rpcbind", &hints, &res) != 0) && 26+ if ((getaddrinfo (host, "sunrpc", &hints, &res) != 0) && 27 (getaddrinfo (host, "portmapper",&hints, &res) != 0)) 28 { 29 rpc_createerr.cf_stat = RPC_N2AXLATEFAILURE;