rpcbind-sunrpc.patch 1.0 KB

123456789101112131415161718192021222324252627
  1. Index: rpcbind-0.2.0/src/rpcbind.c
  2. ===================================================================
  3. --- rpcbind-0.2.0.orig/src/rpcbind.c
  4. +++ rpcbind-0.2.0/src/rpcbind.c
  5. @@ -114,7 +114,7 @@ char *tcptrans; /* Name of TCP transpor
  6. char *udp_uaddr; /* Universal UDP address */
  7. char *tcp_uaddr; /* Universal TCP address */
  8. #endif
  9. -static char servname[] = "rpcbind";
  10. +static char servname[] = "sunrpc";
  11. static char superuser[] = "superuser";
  12. int main __P((int, char *[]));
  13. Index: rpcbind-0.2.0/src/rpcinfo.c
  14. ===================================================================
  15. --- rpcbind-0.2.0.orig/src/rpcinfo.c
  16. +++ rpcbind-0.2.0/src/rpcinfo.c
  17. @@ -632,7 +632,7 @@ get_inet_address (addr, host)
  18. {
  19. memset (&hints, 0, sizeof hints);
  20. hints.ai_family = AF_INET;
  21. - if ((error = getaddrinfo (host, "rpcbind", &hints, &res)) != 0 &&
  22. + if ((error = getaddrinfo (host, "sunrpc", &hints, &res)) != 0 &&
  23. (error = getaddrinfo (host, "portmapper", &hints, &res)) != 0)
  24. {
  25. fprintf (stderr, "rpcinfo: %s: %s\n",