Blame SOURCES/autofs-5.1.4-fix-age-setting-at-startup.patch

135b98
autofs-5.1.4 - fix age setting at startup
135b98
135b98
From: Ian Kent <raven@themaw.net>
135b98
135b98
Commit 2b567ace7d, which resets the master map list on startup
135b98
before retrying a read, incorrectly sets age using time() when
135b98
it should use monotonic_time().
135b98
135b98
This causes lookup failures for submounts in cases where a master
135b98
map read retry was needed.
135b98
135b98
The failure happens because the mount entry age is greater than
135b98
the map entry age which is meant to indicate the map is no longer
135b98
valid which is not the case.
135b98
135b98
Signed-off-by: Ian Kent <raven@themaw.net>
135b98
---
135b98
 CHANGELOG          |    1 +
135b98
 daemon/automount.c |    2 +-
135b98
 2 files changed, 2 insertions(+), 1 deletion(-)
135b98
135b98
--- autofs-5.1.4.orig/CHANGELOG
135b98
+++ autofs-5.1.4/CHANGELOG
135b98
@@ -32,6 +32,7 @@ xx/xx/2018 autofs-5.1.5
135b98
 - mark removed cache entry negative.
135b98
 - set bind mount as propagation slave.
135b98
 - add master map pseudo options for mount propagation.
135b98
+- fix age setting at startup.
135b98
 
135b98
 19/12/2017 autofs-5.1.4
135b98
 - fix spec file url.
135b98
--- autofs-5.1.4.orig/daemon/automount.c
135b98
+++ autofs-5.1.4/daemon/automount.c
135b98
@@ -2610,7 +2610,7 @@ int main(int argc, char *argv[])
135b98
 			 * we have anyway.
135b98
 			 */
135b98
 			do_master_list_reset(master_list);
135b98
-			age = time(NULL);
135b98
+			age = monotonic_time(NULL);
135b98
 			master_read_master(master_list, age, 1);
135b98
 		}
135b98
 	}