Module Name: src
Committed By: martin
Date: Tue Feb 6 12:16:26 UTC 2024
Modified Files:
src/usr.bin/rpcinfo [netbsd-10]: rpcinfo.c
Log Message:
Pull up following revision(s) (requested by mlelstv in ticket #584):
usr.bin/rpcinfo/rpcinfo.c: revision 1.38
Use IANA registerd service name "sunrpc" instead of "rpcbind".
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.37.38.1 src/usr.bin/rpcinfo/rpcinfo.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/rpcinfo/rpcinfo.c
diff -u src/usr.bin/rpcinfo/rpcinfo.c:1.37 src/usr.bin/rpcinfo/rpcinfo.c:1.37.38.1
--- src/usr.bin/rpcinfo/rpcinfo.c:1.37 Fri May 24 23:09:45 2013
+++ src/usr.bin/rpcinfo/rpcinfo.c Tue Feb 6 12:16:26 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: rpcinfo.c,v 1.37 2013/05/24 23:09:45 christos Exp $ */
+/* $NetBSD: rpcinfo.c,v 1.37.38.1 2024/02/06 12:16:26 martin Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -569,7 +569,7 @@ get_inet_address(struct sockaddr_in *add
} else {
(void)memset(&hints, 0, sizeof hints);
hints.ai_family = AF_INET;
- if ((error = getaddrinfo(host, "rpcbind", &hints, &res))
+ if ((error = getaddrinfo(host, "sunrpc", &hints, &res))
!= 0) {
errx(1, "%s: %s", host, gai_strerror(error));
} else {
@@ -1628,7 +1628,7 @@ getclnthandle(const char *host, const st
/* Get the address of the rpcbind */
(void)memset(&hints, 0, sizeof hints);
- if (getaddrinfo(host, "rpcbind", &hints, &res) != 0) {
+ if (getaddrinfo(host, "sunrpc", &hints, &res) != 0) {
rpc_createerr.cf_stat = RPC_N2AXLATEFAILURE;
return NULL;
}