rpcbind/rpcbind-0.2.3-services-sunrpc.patch

24 lines
962 B
Diff
Raw Permalink Normal View History

diff -Nru rpcbind-0.2.1.orig/src/rpcbind.c rpcbind-0.2.1/src/rpcbind.c
--- rpcbind-0.2.1.orig/src/rpcbind.c 2014-05-10 10:49:15.907412342 +0000
+++ rpcbind-0.2.1/src/rpcbind.c 2014-05-10 10:50:50.537551178 +0000
@@ -117,7 +117,7 @@
char *udp_uaddr; /* Universal UDP address */
char *tcp_uaddr; /* Universal TCP address */
#endif
-static char servname[] = "rpcbind";
+static char servname[] = "sunrpc";
static char superuser[] = "superuser";
int main __P((int, char *[]));
--- rpcbind-0.2.3/src/rpcinfo.c.orig 2015-05-09 10:44:05.776854429 +0200
+++ rpcbind-0.2.3/src/rpcinfo.c 2015-05-09 13:01:39.717254681 +0200
@@ -1842,7 +1842,7 @@
/* Get the address of the rpcbind */
memset (&hints, 0, sizeof hints);
- if ((getaddrinfo (host, "rpcbind", &hints, &res) != 0) &&
+ if ((getaddrinfo (host, "sunrpc", &hints, &res) != 0) &&
(getaddrinfo (host, "portmapper",&hints, &res) != 0))
{
rpc_createerr.cf_stat = RPC_N2AXLATEFAILURE;