diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-05 12:11:36 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-05 12:11:36 +0000 |
commit | 1b276bb2b9770bf7ccb69ba7aebfc1a2556f3404 (patch) | |
tree | 2214b8bcde3cc59f326612d519f8a6c9f7cc4f0c /package/bind/bind-9.5.1-P1-susv3-legacy.patch | |
parent | 2676c2029beecfe271af02b059755d0a47570972 (diff) |
bind: bump version and convert to Makefile.autotools.in
Patch by Gustavo Zacarias <gustavo@zacarias.com.ar>
Closes #145.
Current bind package is version 9.3.2 which is from the 9.3 branch and is
EOLed. It has many security bugs probably fixed in 9.3.6-P1 but since it
won't be supported for long it's probably metter to move on to a supported
branch. CVE-2009-0025, CVE-2008-1447, CVE-2008-0122, CVE-2007-2926 and
probably more. While at it migrate to Makefile.autotools.in too. Also
introduced an option for/not to install userland tools (dig, host, nslookup,
nsupdate).
[ Peter: don't install into staging ]
Diffstat (limited to 'package/bind/bind-9.5.1-P1-susv3-legacy.patch')
-rw-r--r-- | package/bind/bind-9.5.1-P1-susv3-legacy.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/package/bind/bind-9.5.1-P1-susv3-legacy.patch b/package/bind/bind-9.5.1-P1-susv3-legacy.patch new file mode 100644 index 000000000..01a38b29c --- /dev/null +++ b/package/bind/bind-9.5.1-P1-susv3-legacy.patch @@ -0,0 +1,23 @@ +diff -Nura bind-9.5.1-P1/lib/isc/unix/ifiter_ioctl.c bind-9.5.1-P1.nosusv3/lib/isc/unix/ifiter_ioctl.c +--- bind-9.5.1-P1/lib/isc/unix/ifiter_ioctl.c 2007-08-30 03:02:28.000000000 -0300 ++++ bind-9.5.1-P1.nosusv3/lib/isc/unix/ifiter_ioctl.c 2009-03-04 16:31:20.000000000 -0200 +@@ -17,6 +17,8 @@ + + /* $Id: ifiter_ioctl.c,v 1.58 2007/08/30 06:02:28 marka Exp $ */ + ++#include <string.h> ++ + /*! \file + * \brief + * Obtain the list of network interfaces using the SIOCGLIFCONF ioctl. +@@ -479,8 +481,8 @@ + for (i = 0; i < 16; i++) { + unsigned char byte; + static const char hex[] = "0123456789abcdef"; +- byte = ((index(hex, address[i * 2]) - hex) << 4) | +- (index(hex, address[i * 2 + 1]) - hex); ++ byte = ((strchr(hex, address[i * 2]) - hex) << 4) | ++ (strchr(hex, address[i * 2 + 1]) - hex); + addr6.s6_addr[i] = byte; + } + iter->current.af = AF_INET6; |