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.
---
daemon/lookup.c | 1 +
1 file changed, 1 insertion(+)
--- autofs-5.0.4.orig/daemon/lookup.c
+++ autofs-5.0.4/daemon/lookup.c
@@ -398,6 +398,7 @@ static enum nsswitch_status read_map_sou
tmap.instance = map->instance;
tmap.recurse = map->recurse;
tmap.depth = map->depth;
+ tmap.stale = map->stale;
tmap.argc = 0;
tmap.argv = NULL;