- fix stale initialization for file map instance.

This commit is contained in:
Ian Kent 2009-11-03 01:26:33 +00:00
parent a3a09e335c
commit b2ae6432fb
2 changed files with 43 additions and 1 deletions

View File

@ -0,0 +1,39 @@
autofs-5.0.5 - fix stale initialization for file map instance
From: Ian Kent <raven@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;

View File

@ -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@redhat.com> - 1:5.0.5-3
- fix stale initialization for file map instance.
* Tue Oct 6 2009 Ian Kent <kent@redhat.com> - 1:5.0.5-2
- fix included map read fail handling.
- refactor ldap sasl authentication bind to eliminate extra connect