autofs-5.0.9 - fix macro usage in lookup_program.c

From: Ian Kent <raven@themaw.net>

The macro MAPFMT_DEFAULT is used incorrectly in a comparison in
modules/lookup_program.c:lookup_one().

Signed-off-by: Ian Kent <raven@themaw.net>
---
 CHANGELOG                |    1 +
 modules/lookup_program.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG
index 693be8c..71a3f84 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -31,6 +31,7 @@
 - fix map option parsing for 'strictatime'.
 - fix showmount search in auto.net.
 - remove obsolete comment in auto.net.
+- fix macro usage in lookup_program.c.
 
 28/03/2014 autofs-5.0.9
 =======================
diff --git a/modules/lookup_program.c b/modules/lookup_program.c
index d1f0ef7..4dfa0f4 100644
--- a/modules/lookup_program.c
+++ b/modules/lookup_program.c
@@ -283,7 +283,7 @@ int lookup_mount(struct autofs_point *ap, const char *name, int name_len, void *
 		 * MAPFMT_DEFAULT must be "sun" for ->parse_init() to have setup
 		 * the macro table.
 		 */
-		if (ctxt->mapfmt && strcmp(ctxt->mapfmt, "MAPFMT_DEFAULT")) {
+		if (ctxt->mapfmt && !strcmp(ctxt->mapfmt, MAPFMT_DEFAULT)) {
 			struct parse_context *pctxt = (struct parse_context *) ctxt->parse->context;
 			/* Add standard environment as seen by sun map parser */
 			pctxt->subst = addstdenv(pctxt->subst, prefix);