Group :: Rede/Outros
RPM: udptunnel
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: udptunnel-no-explicit-nis.patch
Download
Download
--- udptunnel-1.1/configure.in.orig 2001-09-06 21:07:21.000000000 +0200
+++ udptunnel-1.1/configure.in 2020-08-25 21:38:54.273078764 +0200
@@ -13,8 +13,8 @@
dnl Checks for libraries.
-AC_CHECK_LIB(nsl, gethostname)
-AC_CHECK_LIB(socket, socket)
+AC_SEARCH_LIBS(gethostname, nsl)
+AC_SEARCH_LIBS(socket, socket)
dnl Checks for header files.
AC_HEADER_STDC
--- udptunnel-1.1/host2ip.c.orig 1999-05-19 21:58:25.000000000 +0200
+++ udptunnel-1.1/host2ip.c 2020-08-25 21:44:26.851277034 +0200
@@ -37,19 +37,9 @@
else if ((hep = gethostbyname(host))) {
in = *(struct in_addr *)(hep->h_addr_list[0]);
}
- /* As a last resort, try YP. */
else {
- static char *domain = 0; /* YP domain */
- char *value; /* key value */
- int value_len; /* length of returned value */
-
- if (!domain) yp_get_default_domain(&domain);
- if (yp_match(domain, "hosts.byname", host, strlen(host), &value, &value_len) == 0) {
- in.s_addr = inet_addr(value);
- } else {
/* Everything failed */
in.s_addr = INADDR_ANY;
- }
}
return in;
} /* host2ip */
diff --git a/udptunnel/host2ip.c b/udptunnel/host2ip.c
index 78f23aa..e435285 100755
--- udptunnel/host2ip.c
+++ udptunnel/host2ip.c
@@ -4,7 +4,6 @@
#include <netdb.h> /* gethostbyname() */
#include <netinet/in.h> /* sockaddr_in */
#include <arpa/inet.h> /* inet_addr() */
-#include <rpcsvc/ypclnt.h> /* YP */
#include <ctype.h> /* isspace() */
#include "host2ip.h"