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

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