Blame SOURCES/autofs-5.1.0-fix-hosts-map-options-check-in-lookup_amd_instance.patch

6bbd11
autofs-5.1.0 - fix hosts map options check in lookup_amd_instance()
6bbd11
6bbd11
From: Ian Kent <ikent@redhat.com>
6bbd11
6bbd11
Ongoing bug fixes have caused a hosts map source check in lookup_amd_instance()
6bbd11
to be inconsistent and consequently not find the iexpected map source.
6bbd11
---
6bbd11
 CHANGELOG       |    1 +
6bbd11
 daemon/lookup.c |    2 +-
6bbd11
 2 files changed, 2 insertions(+), 1 deletion(-)
6bbd11
6bbd11
--- autofs-5.0.7.orig/CHANGELOG
6bbd11
+++ autofs-5.0.7/CHANGELOG
6bbd11
@@ -147,6 +147,7 @@
6bbd11
 - fix leak in parse_mount().
6bbd11
 - add mutex call return check in defaults.c.
6bbd11
 - force disable browse mode for amd format maps.
6bbd11
+- fix hosts map options check in lookup_amd_instance().
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
@@ -843,7 +843,7 @@ static int lookup_amd_instance(struct au
6bbd11
 		return NSS_STATUS_UNKNOWN;
6bbd11
 	}
6bbd11
 
6bbd11
-	if (entry->opts) {
6bbd11
+	if (entry->opts && *entry->opts) {
6bbd11
 		argv[0] = entry->opts;
6bbd11
 		argv[1] = NULL;
6bbd11
 		pargv = argv;