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