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

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