- fix the hostname resolving patch for x86_64

This commit is contained in:
Tomas Janousek 2007-06-06 12:54:31 +00:00
parent 7e27adec3c
commit 659023996e
2 changed files with 19 additions and 5 deletions

View File

@ -1,5 +1,16 @@
--- tcp_wrappers_7.6/hosts_access.c.220015 2007-02-08 15:39:51.000000000 +0100
+++ tcp_wrappers_7.6/hosts_access.c 2007-02-08 15:39:51.000000000 +0100
--- tcp_wrappers_7.6/tcpd.h.220015 2007-06-06 14:46:32.000000000 +0200
+++ tcp_wrappers_7.6/tcpd.h 2007-06-06 14:50:44.000000000 +0200
@@ -171,6 +171,8 @@
extern void sock_hostname __P((struct host_info *));
/* address to printable address */
extern void sock_hostaddr __P((struct host_info *));
+/* resolve hostname */
+extern const char * sock_resolve __P((const char *hostname, int family));
#define sock_methods(r) \
{ (r)->hostname = sock_hostname; (r)->hostaddr = sock_hostaddr; }
--- tcp_wrappers_7.6/hosts_access.c.220015 2007-06-06 14:46:32.000000000 +0200
+++ tcp_wrappers_7.6/hosts_access.c 2007-06-06 14:46:32.000000000 +0200
@@ -312,8 +312,28 @@
} else if ((mask = split_at(tok, '/')) != 0) { /* net/mask */
return (masked_match(tok, mask, eval_hostaddr(host)));
@ -31,8 +42,8 @@
}
}
--- tcp_wrappers_7.6/socket.c.220015 2007-02-08 15:39:51.000000000 +0100
+++ tcp_wrappers_7.6/socket.c 2007-02-08 15:41:38.000000000 +0100
--- tcp_wrappers_7.6/socket.c.220015 2007-06-06 14:46:32.000000000 +0200
+++ tcp_wrappers_7.6/socket.c 2007-06-06 14:46:32.000000000 +0200
@@ -435,3 +435,43 @@
(void) recvfrom(fd, buf, sizeof(buf), 0, (struct sockaddr *) & sin, &size);

View File

@ -1,7 +1,7 @@
Summary: A security tool which acts as a wrapper for TCP daemons.
Name: tcp_wrappers
Version: 7.6
Release: 46%{?dist}
Release: 47%{?dist}
%define LIB_MAJOR 0
%define LIB_MINOR 7
@ -143,6 +143,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_mandir}/man3/*
%changelog
* Wed Jun 06 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-47
- fix the hostname resolving patch for x86_64
* Mon May 28 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-46
- modified the fix for #112975 to fix #156373 as well