diff --git a/authd-1.4.3-ipv6-mapping.patch b/authd-1.4.3-ipv6-mapping.patch new file mode 100644 index 0000000..c128fc4 --- /dev/null +++ b/authd-1.4.3-ipv6-mapping.patch @@ -0,0 +1,24 @@ +--- authd-1.4.3/authd.c.old 2005-06-24 16:08:04.000000000 +0200 ++++ authd-1.4.3/authd.c 2005-06-24 16:12:06.000000000 +0200 +@@ -485,8 +485,19 @@ + + assert(opt.mapped != NULL); + strcpy(peer_128, opt.mapped); strcpy(host_128, opt.mapped); +- strncpy(host_128, addr_hex, z); +- strncpy(peer_128, peer_addr_hex, strlen(peer_addr_hex)); ++ ++ /* ++ If mapping IPV4 to IPV6 space is enabled, ++ take only last 4 numbers of IPV6 ++ */ ++ if(opt.mapped[0]) { ++ strncpy(host_128, addr_hex+z-8, 8); ++ strncpy(peer_128, peer_addr_hex, 8); ++ } else { ++ strncpy(host_128, addr_hex, z); ++ strncpy(peer_128, peer_addr_hex, strlen(peer_addr_hex)); ++ } ++ + if (strcmp(peer_128, host_128) != 0) return addr; + } + // hex addr must have even number of digits diff --git a/authd.spec b/authd.spec index fee06c5..40da044 100644 --- a/authd.spec +++ b/authd.spec @@ -1,7 +1,7 @@ Summary: a RFC 1413 ident protocol daemon Name: authd Version: 1.4.3 -Release: 4.devel +Release: 5.devel License: GPL Group: System Environment/Daemons Obsoletes: pidentd @@ -10,8 +10,10 @@ Requires(post): openssl Source0: %{name}-%{version}.tar.gz Patch0: authd-1.4.3-gcc4.patch Patch1: authd-1.4.3-disable.patch +Patch2: authd-1.4.3-ipv6-mapping.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: openssl-devel +Prereq: xinetd %description authd is a small and fast RFC 1413 ident protocol daemon @@ -23,6 +25,7 @@ of pidentd. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 -b .ipv6map sed -i -e "s|/etc|%{_sysconfdir}|" config.h %build @@ -63,6 +66,10 @@ service xinetd reload %{_sbindir}/in.authd %changelog +* Thu Jun 24 2005 Martin Stransky - 1.4.3-5.devel +- add xinetd to Prereq +- fix for #150502 (authd doesn't map IPv6 to IPv4 from xinetd) + * Fri Apr 8 2005 Martin Stransky - 1.4.3-4.devel - clear last update