Module Name: src Committed By: mlelstv Date: Mon Dec 11 13:56:48 UTC 2023
Modified Files: src/usr.bin/rpcinfo: rpcinfo.c Log Message: Use IANA registerd service name "sunrpc" instead of "rpcbind". To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 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.38 --- src/usr.bin/rpcinfo/rpcinfo.c:1.37 Fri May 24 23:09:45 2013 +++ src/usr.bin/rpcinfo/rpcinfo.c Mon Dec 11 13:56:47 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: rpcinfo.c,v 1.37 2013/05/24 23:09:45 christos Exp $ */ +/* $NetBSD: rpcinfo.c,v 1.38 2023/12/11 13:56:47 mlelstv 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; }