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

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