Hi,

Am Montag, den 27.05.2013, 21:23 +0100 schrieb Adam D. Barratt:
> Alternatively, the patch could just be applied to the existing stable
> package. That might not play nicely with automating the build from git,
> but it would produce a minimal diff.

done that, and uploaded.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata

diff -Nru libnss-myhostname-0.3/debian/changelog libnss-myhostname-0.3/debian/changelog
--- libnss-myhostname-0.3/debian/changelog	2012-01-17 22:08:50.000000000 +0100
+++ libnss-myhostname-0.3/debian/changelog	2013-05-29 20:06:49.000000000 +0200
@@ -1,3 +1,9 @@
+libnss-myhostname (0.3-5~deb7u1) stable; urgency=low
+
+  * Ignore link-local addresses (Closes: #705900)
+
+ -- Joachim Breitner <nome...@debian.org>  Wed, 29 May 2013 20:05:35 +0200
+
 libnss-myhostname (0.3-4) unstable; urgency=low
 
   * Fix Package's description to reflect changed behaviour. (Closes: #656218)
diff -Nru libnss-myhostname-0.3/debian/patches/0005-Ignore-link-local-addresses.patch libnss-myhostname-0.3/debian/patches/0005-Ignore-link-local-addresses.patch
--- libnss-myhostname-0.3/debian/patches/0005-Ignore-link-local-addresses.patch	1970-01-01 01:00:00.000000000 +0100
+++ libnss-myhostname-0.3/debian/patches/0005-Ignore-link-local-addresses.patch	2013-05-29 20:07:00.000000000 +0200
@@ -0,0 +1,27 @@
+From cce547eac7d27b4476e646bfead3ba14b57a6ccc Mon Sep 17 00:00:00 2001
+From: Joachim Breitner <m...@joachim-breitner.de>
+Date: Mon, 13 May 2013 10:34:57 +0200
+Subject: Ignore link-local addresses
+
+Closes: #705900
+---
+ netlink.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/netlink.c b/netlink.c
+index 29f38e3..9bbed7e 100644
+--- a/netlink.c
++++ b/netlink.c
+@@ -178,6 +178,12 @@ int ifconf_acquire_addresses(struct address **_list, unsigned *_n_list) {
+                         if (!address)
+                                 continue;
+ 
++			// Avoid link-local address
++			// http://bugs.debian.org/705900
++			if (ifaddrmsg->ifa_family == AF_INET6 &&
++			    IN6_IS_ADDR_LINKLOCAL((const struct in6_addr *)address))
++			    continue;
++
+                         list = realloc(list, (n_list+1) * sizeof(struct address));
+                         if (!list) {
+                                 r = -ENOMEM;
diff -Nru libnss-myhostname-0.3/debian/patches/series libnss-myhostname-0.3/debian/patches/series
--- libnss-myhostname-0.3/debian/patches/series	2011-06-28 12:52:53.000000000 +0200
+++ libnss-myhostname-0.3/debian/patches/series	2013-05-29 20:07:00.000000000 +0200
@@ -2,3 +2,4 @@
 0002-Use-172.0.1.1.patch
 0003-Use-legacy-getifaddrs-on-GNU-kFreeBSD.patch
 0004-Ensure-a-LANG-independent-generated-README.patch
+0005-Ignore-link-local-addresses.patch

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to