- minor changes in default configuration ('pedantic' changes only)
- fix wrong errno assigment in __res_vinit function (#245857) - removed wrong patch to #150288
This commit is contained in:
parent
e5705701dd
commit
c90d3f2232
|
@ -0,0 +1,30 @@
|
||||||
|
diff -up bind-9.5.0a5/lib/bind/resolv/res_init.c.errno bind-9.5.0a5/lib/bind/resolv/res_init.c
|
||||||
|
--- bind-9.5.0a5/lib/bind/resolv/res_init.c.errno 2007-07-02 14:55:54.000000000 +0200
|
||||||
|
+++ bind-9.5.0a5/lib/bind/resolv/res_init.c 2007-07-02 14:57:03.000000000 +0200
|
||||||
|
@@ -168,7 +168,7 @@ __res_vinit(res_state statp, int preinit
|
||||||
|
union res_sockaddr_union u[2];
|
||||||
|
int maxns = MAXNS;
|
||||||
|
|
||||||
|
- h_errno = 0;
|
||||||
|
+ RES_SET_H_ERRNO(statp, 0);
|
||||||
|
if (statp->_u._ext.ext != NULL)
|
||||||
|
res_ndestroy(statp);
|
||||||
|
|
||||||
|
@@ -231,7 +231,7 @@ __res_vinit(res_state statp, int preinit
|
||||||
|
* to check our return code wont be able to make
|
||||||
|
* queries anyhow.
|
||||||
|
*/
|
||||||
|
- h_errno = statp->res_h_errno = NETDB_INTERNAL;
|
||||||
|
+ RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
|
||||||
|
maxns = 0;
|
||||||
|
}
|
||||||
|
#ifdef RESOLVSORT
|
||||||
|
@@ -498,7 +498,7 @@ __res_vinit(res_state statp, int preinit
|
||||||
|
if ((cp = getenv("RES_OPTIONS")) != NULL)
|
||||||
|
res_setoptions(statp, cp, "env");
|
||||||
|
statp->options |= RES_INIT;
|
||||||
|
- return (h_errno);
|
||||||
|
+ return (statp->res_h_errno);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
17
bind.spec
17
bind.spec
|
@ -16,7 +16,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
|
||||||
Name: bind
|
Name: bind
|
||||||
License: BSD-like
|
License: BSD-like
|
||||||
Version: 9.5.0a5
|
Version: 9.5.0a5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Epoch: 31
|
Epoch: 31
|
||||||
Url: http://www.isc.org/products/BIND/
|
Url: http://www.isc.org/products/BIND/
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
@ -50,12 +50,12 @@ Patch5: bind-nonexec.patch
|
||||||
Patch6: bind-9.2.2-nsl.patch
|
Patch6: bind-9.2.2-nsl.patch
|
||||||
Patch10: bind-9.3.2b1-PIE.patch
|
Patch10: bind-9.3.2b1-PIE.patch
|
||||||
Patch13: bind-9.3.1rc1-fix_libbind_includedir.patch
|
Patch13: bind-9.3.1rc1-fix_libbind_includedir.patch
|
||||||
Patch14: libbind-9.3.1rc1-fix_h_errno.patch
|
|
||||||
Patch16: bind-9.3.2-redhat_doc.patch
|
Patch16: bind-9.3.2-redhat_doc.patch
|
||||||
Patch32: bind-9.3.2-prctl_set_dumpable.patch
|
Patch32: bind-9.3.2-prctl_set_dumpable.patch
|
||||||
Patch52: bind-9.3.3-edns.patch
|
Patch52: bind-9.3.3-edns.patch
|
||||||
Patch63: bind-9.4.0-dnssec-directory.patch
|
Patch63: bind-9.4.0-dnssec-directory.patch
|
||||||
Patch69: bind-9.5.0-generate-xml.patch
|
Patch69: bind-9.5.0-generate-xml.patch
|
||||||
|
Patch70: bind-9.5.0-errno-init.patch
|
||||||
|
|
||||||
# SDB patches
|
# SDB patches
|
||||||
Patch11: bind-9.3.2b2-sdbsrc.patch
|
Patch11: bind-9.3.2b2-sdbsrc.patch
|
||||||
|
@ -228,7 +228,6 @@ cp -fp contrib/sdb/sqlite/zone2sqlite.c bin/sdb_tools
|
||||||
%endif
|
%endif
|
||||||
%if %{LIBBIND}
|
%if %{LIBBIND}
|
||||||
%patch13 -p1 -b .fix_libbind_includedir
|
%patch13 -p1 -b .fix_libbind_includedir
|
||||||
%patch14 -p1 -b .fix_h_errno
|
|
||||||
%endif
|
%endif
|
||||||
%patch16 -p1 -b .redhat_doc
|
%patch16 -p1 -b .redhat_doc
|
||||||
%if %{WITH_DBUS}
|
%if %{WITH_DBUS}
|
||||||
|
@ -264,6 +263,7 @@ pushd contrib/idn
|
||||||
%patch64 -p0 -b .autotools
|
%patch64 -p0 -b .autotools
|
||||||
popd
|
popd
|
||||||
%patch65 -p1 -b .idn
|
%patch65 -p1 -b .idn
|
||||||
|
%patch70 -p1 -b .errno-init
|
||||||
:;
|
:;
|
||||||
|
|
||||||
|
|
||||||
|
@ -397,7 +397,7 @@ find ${RPM_BUILD_ROOT}/%{_libdir} -name '*.la' -exec '/bin/rm' '-f' '{}' ';';
|
||||||
touch ${RPM_BUILD_ROOT}/etc/named.conf
|
touch ${RPM_BUILD_ROOT}/etc/named.conf
|
||||||
# configuration files:
|
# configuration files:
|
||||||
tar -C ${RPM_BUILD_ROOT} -xf %{SOURCE28}
|
tar -C ${RPM_BUILD_ROOT} -xf %{SOURCE28}
|
||||||
for f in /etc/named.conf /var/named/{named.ca,named.localhost,named.loopback,named.loopback.ipv6,named.empty}; do
|
for f in /etc/named.conf /var/named/{named.ca,named.localhost,named.loopback,named.empty}; do
|
||||||
touch ${RPM_BUILD_ROOT}/%{chroot_prefix}/$f;
|
touch ${RPM_BUILD_ROOT}/%{chroot_prefix}/$f;
|
||||||
done
|
done
|
||||||
install -m 644 %{SOURCE5} ./rfc1912.txt
|
install -m 644 %{SOURCE5} ./rfc1912.txt
|
||||||
|
@ -409,7 +409,7 @@ install -m 754 bind-chroot-admin ${RPM_BUILD_ROOT}/%{_sbindir}
|
||||||
mkdir -p sample/etc sample/var/named/{data,slaves}
|
mkdir -p sample/etc sample/var/named/{data,slaves}
|
||||||
cp -fp %{SOURCE25} sample/etc/named.conf
|
cp -fp %{SOURCE25} sample/etc/named.conf
|
||||||
cp -fp ${RPM_BUILD_ROOT}/etc/named.rfc1912.zones sample/etc/named.rfc1912.zones
|
cp -fp ${RPM_BUILD_ROOT}/etc/named.rfc1912.zones sample/etc/named.rfc1912.zones
|
||||||
cp -fp ${RPM_BUILD_ROOT}/var/named/{named.ca,named.localhost,named.loopback,named.loopback.ipv6,named.empty} sample/var/named
|
cp -fp ${RPM_BUILD_ROOT}/var/named/{named.ca,named.localhost,named.loopback,named.empty} sample/var/named
|
||||||
for f in my.internal.zone.db slaves/my.slave.internal.zone.db slaves/my.ddns.internal.zone.db my.external.zone.db; do
|
for f in my.internal.zone.db slaves/my.slave.internal.zone.db slaves/my.ddns.internal.zone.db my.external.zone.db; do
|
||||||
echo '@ in soa localhost. root 1 3H 15M 1W 1D
|
echo '@ in soa localhost. root 1 3H 15M 1W 1D
|
||||||
ns localhost.' > sample/var/named/$f;
|
ns localhost.' > sample/var/named/$f;
|
||||||
|
@ -563,8 +563,6 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||||
%ghost %config %{chroot_prefix}/var/named/named.localhost
|
%ghost %config %{chroot_prefix}/var/named/named.localhost
|
||||||
%config %verify(not link) /var/named/named.loopback
|
%config %verify(not link) /var/named/named.loopback
|
||||||
%ghost %config %{chroot_prefix}/var/named/named.loopback
|
%ghost %config %{chroot_prefix}/var/named/named.loopback
|
||||||
%config %verify(not link) /var/named/named.loopback.ipv6
|
|
||||||
%ghost %config %{chroot_prefix}/var/named/named.loopback.ipv6
|
|
||||||
%config %verify(not link) /var/named/named.empty
|
%config %verify(not link) /var/named/named.empty
|
||||||
%ghost %config %{chroot_prefix}/var/named/named.empty
|
%ghost %config %{chroot_prefix}/var/named/named.empty
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
|
@ -704,6 +702,11 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 02 2007 Adam Tkac <atkac redhat com> 31:9.5.0a5-2.fc8
|
||||||
|
- minor changes in default configuration
|
||||||
|
- fix h_errno assigment during resolver initialization (unbounded recursion, #245857)
|
||||||
|
- removed wrong patch to #150288
|
||||||
|
|
||||||
* Tue Jun 19 2007 Adam Tkac <atkac redhat com> 31:9.5.0a5-1.fc8
|
* Tue Jun 19 2007 Adam Tkac <atkac redhat com> 31:9.5.0a5-1.fc8
|
||||||
- updated to latest upstream
|
- updated to latest upstream
|
||||||
|
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
--- bind-9.3.1rc1/lib/bind/irs/irs_data.c.fix_h_errno 2004-11-29 20:15:43.000000000 -0500
|
|
||||||
+++ bind-9.3.1rc1/lib/bind/irs/irs_data.c 2005-03-09 21:05:52.000000000 -0500
|
|
||||||
@@ -222,12 +222,7 @@
|
|
||||||
void
|
|
||||||
__h_errno_set(struct __res_state *res, int err) {
|
|
||||||
|
|
||||||
-
|
|
||||||
-#if (__GLIBC__ > 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)
|
|
||||||
- res->res_h_errno = err;
|
|
||||||
-#else
|
|
||||||
h_errno = res->res_h_errno = err;
|
|
||||||
-#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /*__BIND_NOSTATIC*/
|
|
||||||
--- bind-9.3.1rc1/lib/bind/resolv/res_query.c.fix_h_errno 2004-03-16 07:34:19.000000000 -0500
|
|
||||||
+++ bind-9.3.1rc1/lib/bind/resolv/res_query.c 2005-03-09 21:53:34.000000000 -0500
|
|
||||||
@@ -192,6 +192,8 @@
|
|
||||||
}
|
|
||||||
return (-1);
|
|
||||||
}
|
|
||||||
+ if( n > 0 )
|
|
||||||
+ RES_SET_H_ERRNO(statp,0);
|
|
||||||
return (n);
|
|
||||||
}
|
|
||||||
|
|
2
sources
2
sources
|
@ -1,4 +1,4 @@
|
||||||
beb3f6e7e8e1f804d1fb79dd11319e1e bind-9.5.0a5.tar.gz
|
beb3f6e7e8e1f804d1fb79dd11319e1e bind-9.5.0a5.tar.gz
|
||||||
dd2b4f4b795a0a989b0a01f93db3a57b bind-chroot.tar.bz2
|
dd2b4f4b795a0a989b0a01f93db3a57b bind-chroot.tar.bz2
|
||||||
c6e0f999e5d387aa2564f1d02ccba6db config.tar
|
bdea8168751a29e61525f11e8195ad48 config.tar
|
||||||
13fef79f99fcefebb51d84b08805de51 libbind-man.tar.gz
|
13fef79f99fcefebb51d84b08805de51 libbind-man.tar.gz
|
||||||
|
|
Loading…
Reference in New Issue