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

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