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

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