rpms/autofs/devel autofs-5.0.5-fix-stale-init-for-file-map-instance.patch, NONE, 1.1 autofs.spec, 1.289, 1.290

Ian Kent iankent at fedoraproject.org
Tue Nov 3 01:26:33 UTC 2009


Author: iankent

Update of /cvs/pkgs/rpms/autofs/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25976

Modified Files:
	autofs.spec 
Added Files:
	autofs-5.0.5-fix-stale-init-for-file-map-instance.patch 
Log Message:
* Tue Nov 3 2009 Ian Kent <ikent at redhat.com> - 1:5.0.5-3
- fix stale initialization for file map instance.


autofs-5.0.5-fix-stale-init-for-file-map-instance.patch:
 CHANGELOG       |    1 +
 daemon/lookup.c |    1 +
 2 files changed, 2 insertions(+)

--- NEW FILE autofs-5.0.5-fix-stale-init-for-file-map-instance.patch ---
autofs-5.0.5 - fix stale initialization for file map instance

From: Ian Kent <raven at themaw.net>

Somehow, during the changes to minimize reading of file maps, an error
of not initializing a field of the map source instance structure got
through undetected. This has the effect of preventing all file map
lookups, following the first one, to fail.
---

 CHANGELOG       |    1 +
 daemon/lookup.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/CHANGELOG b/CHANGELOG
index 7997d1d..8b62370 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -7,6 +7,7 @@
 - fix compile fail with when LDAP is excluded.
 - more code analysis corrections (and fix a typo in an init script).
 - fix backwards #ifndef INET6.
+- fix stale initialization for file map instance.
 
 03/09/2009 autofs-5.0.5
 -----------------------
diff --git a/daemon/lookup.c b/daemon/lookup.c
index 9d5a5c8..665ada0 100644
--- a/daemon/lookup.c
+++ b/daemon/lookup.c
@@ -398,6 +398,7 @@ static enum nsswitch_status read_map_source(struct nss_source *this,
 	tmap.instance = map->instance;
 	tmap.recurse = map->recurse;
 	tmap.depth = map->depth;
+	tmap.stale = map->stale;
 	tmap.argc = 0;
 	tmap.argv = NULL;
 


Index: autofs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/autofs/devel/autofs.spec,v
retrieving revision 1.289
retrieving revision 1.290
diff -u -p -r1.289 -r1.290
--- autofs.spec	6 Oct 2009 05:23:13 -0000	1.289
+++ autofs.spec	3 Nov 2009 01:26:33 -0000	1.290
@@ -4,7 +4,7 @@
 Summary: A tool for automatically mounting and unmounting filesystems
 Name: autofs
 Version: 5.0.5
-Release: 2%{?dist}
+Release: 3%{?dist}
 Epoch: 1
 License: GPLv2+
 Group: System Environment/Daemons
@@ -117,6 +117,9 @@ fi
 %{_libdir}/autofs/
 
 %changelog
+* Tue Nov 3 2009 Ian Kent <ikent at redhat.com> - 1:5.0.5-3
+- fix stale initialization for file map instance.
+
 * Tue Oct 6 2009 Ian Kent <kent at redhat.com> - 1:5.0.5-2
 - fix included map read fail handling.
 - refactor ldap sasl authentication bind to eliminate extra connect




More information about the fedora-extras-commits mailing list