summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-fix-use-get_proximity-without-libtirpc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-fix-use-get_proximity-without-libtirpc.patch')
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-fix-use-get_proximity-without-libtirpc.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-fix-use-get_proximity-without-libtirpc.patch b/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-fix-use-get_proximity-without-libtirpc.patch
new file mode 100644
index 0000000000..74ed8fa642
--- /dev/null
+++ b/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-fix-use-get_proximity-without-libtirpc.patch
@@ -0,0 +1,54 @@
1autofs-5.0.7 - fix use get_proximity() without libtirpc
2
3From: Ian Kent <raven@themaw.net>
4
5If autofs is not using libtirpc and there are any configured IPv6
6interfaces then get_proximity() will fail with PROXIMITY_UNSUPPORTED.
7
8In this case when checking interfaces the IPv6 interfaces need to be
9ignored.
10---
11
12 CHANGELOG | 1 +
13 modules/replicated.c | 8 ++------
14 2 files changed, 3 insertions(+), 6 deletions(-)
15
16
17diff --git a/CHANGELOG b/CHANGELOG
18index 5bcb1af..460bd27 100644
19--- a/CHANGELOG
20+++ b/CHANGELOG
21@@ -20,6 +20,7 @@
22 - fix nobind man page description.
23 - fix submount offset delete.
24 - fix init script status return.
25+- fix use get_proximity() without libtirpc.
26
27 25/07/2012 autofs-5.0.7
28 =======================
29diff --git a/modules/replicated.c b/modules/replicated.c
30index bd6003b..6b96320 100644
31--- a/modules/replicated.c
32+++ b/modules/replicated.c
33@@ -184,9 +184,7 @@ static unsigned int get_proximity(struct sockaddr *host_addr)
34 break;
35
36 case AF_INET6:
37-#ifndef WITH_LIBTIRPC
38- return PROXIMITY_UNSUPPORTED;
39-#else
40+#ifdef WITH_LIBTIRPC
41 if (host_addr->sa_family == AF_INET)
42 break;
43 if6_addr = (struct sockaddr_in6 *) this->ifa_addr;
44@@ -251,9 +249,7 @@ static unsigned int get_proximity(struct sockaddr *host_addr)
45 break;
46
47 case AF_INET6:
48-#ifndef WITH_LIBTIRPC
49- return PROXIMITY_UNSUPPORTED;
50-#else
51+#ifdef WITH_LIBTIRPC
52 if (host_addr->sa_family == AF_INET)
53 break;
54 if6_addr = (struct sockaddr_in6 *) this->ifa_addr;