Blame SOURCES/autofs-5.0.8-fix-lookup_nss_mount-map-lookup.patch

4d476f
autofs-5.0.8 - fix lookup_nss_mount() map lookup
4d476f
4d476f
From: Ian Kent <raven@themaw.net>
4d476f
4d476f
A mount that may have multiple maps (direct mounts) should try each
4d476f
source and if nsswicth is used then each instance should be tried
4d476f
before moving to the next map.
4d476f
4d476f
Moving to the next map if an nss instance is not found makes no sense.
4d476f
---
4d476f
 CHANGELOG       |    1 +
4d476f
 daemon/lookup.c |    4 +---
4d476f
 2 files changed, 2 insertions(+), 3 deletions(-)
4d476f
4d476f
--- autofs-5.0.7.orig/CHANGELOG
4d476f
+++ autofs-5.0.7/CHANGELOG
4d476f
@@ -96,6 +96,7 @@
4d476f
 - make autofs(5) consistent with auto.master(5).
4d476f
 - fix map source with type lookup.
4d476f
 - fix fix map source with type lookup.
4d476f
+- fix lookup_nss_mount() map lookup.
4d476f
 
4d476f
 25/07/2012 autofs-5.0.7
4d476f
 =======================
4d476f
--- autofs-5.0.7.orig/daemon/lookup.c
4d476f
+++ autofs-5.0.7/daemon/lookup.c
4d476f
@@ -1045,10 +1045,8 @@ int lookup_nss_mount(struct autofs_point
4d476f
 
4d476f
 			result = lookup_map_name(this, ap, map, name, name_len);
4d476f
 
4d476f
-			if (result == NSS_STATUS_UNKNOWN) {
4d476f
-				map = map->next;
4d476f
+			if (result == NSS_STATUS_UNKNOWN)
4d476f
 				continue;
4d476f
-			}
4d476f
 
4d476f
 			status = check_nss_result(this, result);
4d476f
 			if (status >= 0) {