Blame SOURCES/autofs-5.1.2-dont-fail-on-master-map-read-fail-timeout.patch

304803
autofs-5.1.2 - dont exit on master map read fail timeout
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
If there is a persistent master map read failure autofs should
304803
continue on after the configured retry wait, as it would have
304803
done previously.
304803
304803
Signed-off-by: Ian Kent <raven@themaw.net>
304803
---
304803
 CHANGELOG          |    1 +
304803
 daemon/automount.c |   12 ++++++++----
304803
 2 files changed, 9 insertions(+), 4 deletions(-)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -209,6 +209,7 @@
304803
 - wait for master map available at start.
304803
 - add master read wait option.
304803
 - fix included master map not found return.
304803
+- dont exit on master map read fail timeout.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/daemon/automount.c
304803
+++ autofs-5.0.7/daemon/automount.c
304803
@@ -2510,10 +2510,14 @@ int main(int argc, char *argv[])
304803
 		 * error.
304803
 		 */
304803
 		if (!do_master_read_master(master_list, master_wait)) {
304803
-			logerr("%s: failed to read master map!", program);
304803
-			master_kill(master_list);
304803
-			release_flag_file();
304803
-			exit(3);
304803
+			logmsg("%s: warning: could not read at least one "
304803
+				"map source after waiting, continuing ...",
304803
+				 program);
304803
+			/*
304803
+			 * Failed to read master map, continue with what
304803
+			 * we have anyway.
304803
+			 */
304803
+			master_read_master(master_list, age, 1);
304803
 		}
304803
 	}
304803