|
|
ab3a3d |
autofs-5.0.7 - fix use get_proximity() without libtirpc
|
|
|
ab3a3d |
|
|
|
ab3a3d |
From: Ian Kent <raven@themaw.net>
|
|
|
ab3a3d |
|
|
|
ab3a3d |
If autofs is not using libtirpc and there are any configured IPv6
|
|
|
ab3a3d |
interfaces then get_proximity() will fail with PROXIMITY_UNSUPPORTED.
|
|
|
ab3a3d |
|
|
|
ab3a3d |
In this case when checking interfaces the IPv6 interfaces need to be
|
|
|
ab3a3d |
ignored.
|
|
|
ab3a3d |
---
|
|
|
ab3a3d |
|
|
|
ab3a3d |
CHANGELOG | 1 +
|
|
|
ab3a3d |
modules/replicated.c | 8 ++------
|
|
|
ab3a3d |
2 files changed, 3 insertions(+), 6 deletions(-)
|
|
|
ab3a3d |
|
|
|
ab3a3d |
|
|
|
ab3a3d |
diff --git a/CHANGELOG b/CHANGELOG
|
|
|
ab3a3d |
index 5bcb1af..460bd27 100644
|
|
|
ab3a3d |
--- a/CHANGELOG
|
|
|
ab3a3d |
+++ b/CHANGELOG
|
|
|
ab3a3d |
@@ -20,6 +20,7 @@
|
|
|
ab3a3d |
- fix nobind man page description.
|
|
|
ab3a3d |
- fix submount offset delete.
|
|
|
ab3a3d |
- fix init script status return.
|
|
|
ab3a3d |
+- fix use get_proximity() without libtirpc.
|
|
|
ab3a3d |
|
|
|
ab3a3d |
25/07/2012 autofs-5.0.7
|
|
|
ab3a3d |
=======================
|
|
|
ab3a3d |
diff --git a/modules/replicated.c b/modules/replicated.c
|
|
|
ab3a3d |
index bd6003b..6b96320 100644
|
|
|
ab3a3d |
--- a/modules/replicated.c
|
|
|
ab3a3d |
+++ b/modules/replicated.c
|
|
|
ab3a3d |
@@ -184,9 +184,7 @@ static unsigned int get_proximity(struct sockaddr *host_addr)
|
|
|
ab3a3d |
break;
|
|
|
ab3a3d |
|
|
|
ab3a3d |
case AF_INET6:
|
|
|
ab3a3d |
-#ifndef WITH_LIBTIRPC
|
|
|
ab3a3d |
- return PROXIMITY_UNSUPPORTED;
|
|
|
ab3a3d |
-#else
|
|
|
ab3a3d |
+#ifdef WITH_LIBTIRPC
|
|
|
ab3a3d |
if (host_addr->sa_family == AF_INET)
|
|
|
ab3a3d |
break;
|
|
|
ab3a3d |
if6_addr = (struct sockaddr_in6 *) this->ifa_addr;
|
|
|
ab3a3d |
@@ -251,9 +249,7 @@ static unsigned int get_proximity(struct sockaddr *host_addr)
|
|
|
ab3a3d |
break;
|
|
|
ab3a3d |
|
|
|
ab3a3d |
case AF_INET6:
|
|
|
ab3a3d |
-#ifndef WITH_LIBTIRPC
|
|
|
ab3a3d |
- return PROXIMITY_UNSUPPORTED;
|
|
|
ab3a3d |
-#else
|
|
|
ab3a3d |
+#ifdef WITH_LIBTIRPC
|
|
|
ab3a3d |
if (host_addr->sa_family == AF_INET)
|
|
|
ab3a3d |
break;
|
|
|
ab3a3d |
if6_addr = (struct sockaddr_in6 *) this->ifa_addr;
|