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

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