Blame SOURCES/autofs-5.1.0-beta1-fix-map-format-init-in-lookup_init.patch

6bbd11
autofs-5.1.0-beta1 - fix map format init in lookup_init()
6bbd11
6bbd11
From: Ian Kent <ikent@redhat.com>
6bbd11
6bbd11
is_format_amd is not initialized in modules/lookup_ldap.c:lookup_init()
6bbd11
which can cause it to be incorrect leading to a failure to locate a
6bbd11
base dn.
6bbd11
---
6bbd11
 CHANGELOG             |    1 +
6bbd11
 modules/lookup_ldap.c |    1 +
6bbd11
 2 files changed, 2 insertions(+)
6bbd11
6bbd11
--- autofs-5.0.7.orig/CHANGELOG
6bbd11
+++ autofs-5.0.7/CHANGELOG
6bbd11
@@ -113,6 +113,7 @@
6bbd11
 - fix out of order amd timestamp lookup.
6bbd11
 - fix ldap default schema config.
6bbd11
 - fix ldap default master map name config.
6bbd11
+- fix map format init in lookup_init().
6bbd11
 
6bbd11
 25/07/2012 autofs-5.0.7
6bbd11
 =======================
6bbd11
--- autofs-5.0.7.orig/modules/lookup_ldap.c
6bbd11
+++ autofs-5.0.7/modules/lookup_ldap.c
6bbd11
@@ -1647,6 +1647,7 @@ int lookup_init(const char *mapfmt, int
6bbd11
 	/* If a map type isn't explicitly given, parse it like sun entries. */
6bbd11
 	if (mapfmt == NULL)
6bbd11
 		mapfmt = MAPFMT_DEFAULT;
6bbd11
+	is_amd_format = 0;
6bbd11
 	if (!strcmp(mapfmt, "amd")) {
6bbd11
 		is_amd_format = 1;
6bbd11
 		ctxt->format = MAP_FLAG_FORMAT_AMD;