- always read file maps mount lookup map read fix. - fix direct map not updating on reread. - add external bind method. - fix add simple bind auth. - add option to dump configured automount maps. - wait for master map to be available at start.
41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
autofs-5.0.5 - fix direct map not updating on reread
|
|
|
|
From: Ian Kent <raven@themaw.net>
|
|
|
|
If the map type is explicitly specified for a map the map isn't
|
|
properly updated when a re-read is requested. This is because
|
|
the map stale flag is incorrectly cleared after after the lookup
|
|
module reads the map instead of at the completion of the update
|
|
procedure. The map stale flag should only be cleared if the map
|
|
read fails for some reason, otherwise it is updated when the
|
|
refresh is completed.
|
|
---
|
|
|
|
CHANGELOG | 1 +
|
|
daemon/lookup.c | 3 ++-
|
|
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
|
|
--- autofs-5.0.5.orig/CHANGELOG
|
|
+++ autofs-5.0.5/CHANGELOG
|
|
@@ -50,6 +50,7 @@
|
|
- fix init script restart option.
|
|
- fix init script status privilege error.
|
|
- always read file maps mount lookup map read fix.
|
|
+- fix direct map not updating on reread.
|
|
|
|
03/09/2009 autofs-5.0.5
|
|
-----------------------
|
|
--- autofs-5.0.5.orig/daemon/lookup.c
|
|
+++ autofs-5.0.5/daemon/lookup.c
|
|
@@ -295,7 +295,8 @@ static int do_read_map(struct autofs_poi
|
|
|
|
status = lookup->lookup_read_map(ap, age, lookup->context);
|
|
|
|
- map->stale = 0;
|
|
+ if (status != NSS_STATUS_SUCCESS)
|
|
+ map->stale = 0;
|
|
|
|
/*
|
|
* For maps that don't support enumeration return success
|