Ian Kent 62ad96
autofs-5.0.3 - fix fail on included browse map not found
Ian Kent 62ad96
Ian Kent 62ad96
From: Ian Kent <raven@themaw.net>
Ian Kent 62ad96
Ian Kent 62ad96
When looking up nsswitch sources, if nsswitch action check tells us
Ian Kent 62ad96
to continue we need to set the returned result to success so we
Ian Kent 62ad96
don't return a false failure.
Ian Kent 62ad96
---
Ian Kent 62ad96
Ian Kent 62ad96
 daemon/lookup.c |    2 ++
Ian Kent 62ad96
 1 files changed, 2 insertions(+), 0 deletions(-)
Ian Kent 62ad96
Ian Kent 62ad96
Ian Kent 62ad96
diff --git a/daemon/lookup.c b/daemon/lookup.c
Ian Kent 62ad96
index 29a1491..3c22a35 100644
Ian Kent 62ad96
--- a/daemon/lookup.c
Ian Kent 62ad96
+++ b/daemon/lookup.c
Ian Kent 62ad96
@@ -545,6 +545,8 @@ int lookup_nss_read_map(struct autofs_point *ap, struct map_source *source, time
Ian Kent 62ad96
 				map = NULL;
Ian Kent 62ad96
 				break;
Ian Kent 62ad96
 			}
Ian Kent 62ad96
+
Ian Kent 62ad96
+			result = NSS_STATUS_SUCCESS;
Ian Kent 62ad96
 		}
Ian Kent 62ad96
 		pthread_cleanup_pop(1);
Ian Kent 62ad96