Blame SOURCES/autofs-5.1.2-set-sane-default-master-read-wait-timeout.patch

304803
autofs-5.1.2 - set sane default master read wait timeout
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
If an unused map source is configured in nss, with the default
304803
of waiting indefinitely, autofs will not start.
304803
304803
To restore the previous behaviour of this case set a sensible
304803
default timeout for the configuration option master_wait.
304803
304803
Signed-off-by: Ian Kent <raven@themaw.net>
304803
---
304803
 CHANGELOG                      |    1 +
304803
 include/defaults.h             |    2 +-
304803
 man/autofs.conf.5.in           |    4 ++--
304803
 redhat/autofs.conf.default.in  |    6 +++---
304803
 samples/autofs.conf.default.in |    6 +++---
304803
 5 files changed, 10 insertions(+), 9 deletions(-)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -210,6 +210,7 @@
304803
 - add master read wait option.
304803
 - fix included master map not found return.
304803
 - dont exit on master map read fail timeout.
304803
+- set sane default master read wait timeout.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/include/defaults.h
304803
+++ autofs-5.0.7/include/defaults.h
304803
@@ -25,7 +25,7 @@
304803
 #define DEFAULT_MASTER_MAP_NAME	"auto.master"
304803
 
304803
 #define DEFAULT_TIMEOUT			"600"
304803
-#define DEFAULT_MASTER_WAIT		"-1"
304803
+#define DEFAULT_MASTER_WAIT		"10"
304803
 #define DEFAULT_NEGATIVE_TIMEOUT	"60"
304803
 #define DEFAULT_MOUNT_WAIT		"-1"
304803
 #define DEFAULT_UMOUNT_WAIT		"12"
304803
--- autofs-5.0.7.orig/man/autofs.conf.5.in
304803
+++ autofs-5.0.7/man/autofs.conf.5.in
304803
@@ -32,8 +32,8 @@ with earlier autofs releases.
304803
 .TP
304803
 .B master_wait
304803
 sets the default maximum time to wait for the master map to become
304803
-available if it cannot be read at program start (program default -1,
304803
-wait forever).
304803
+available if it cannot be read at program start (program default 10,
304803
+wait for 10 seconds then continue).
304803
 .TP
304803
 .B negative_timeout
304803
 .br
304803
--- autofs-5.0.7.orig/redhat/autofs.conf.default.in
304803
+++ autofs-5.0.7/redhat/autofs.conf.default.in
304803
@@ -16,10 +16,10 @@ timeout = 300
304803
 #
304803
 # master_wait - set the default maximum time to wait for the
304803
 # 		master map to become available if it cannot
304803
-# 		be read at program start (default -1, wait
304803
-# 		forever).
304803
+# 		be read at program start (default 10, wait
304803
+# 		for 10 seconds then continue).
304803
 #
304803
-#master_wait = -1
304803
+#master_wait = 10
304803
 #
304803
 # negative_timeout - set the default negative timeout for
304803
 # 		     failed mount attempts (default 60).
304803
--- autofs-5.0.7.orig/samples/autofs.conf.default.in
304803
+++ autofs-5.0.7/samples/autofs.conf.default.in
304803
@@ -16,10 +16,10 @@ timeout = 300
304803
 #
304803
 # master_wait - set the default maximum time to wait for the
304803
 # 		master map to become available if it cannot
304803
-# 		be read at program start (default -1, wait
304803
-# 		forever).
304803
+# 		be read at program start (default 10, wait
304803
+# 		for 10 seconds then continue).
304803
 #
304803
-# master_wait = -1
304803
+# master_wait = 10
304803
 #
304803
 # negative_timeout - set the default negative timeout for
304803
 # 		     failed mount attempts (default 60).