1
autofs-5.0.5 - fix random selection option
3
From: Ian Kent <raven@themaw.net>
5
When parsing the master map we fail to check if the random selection
6
option has been seen and set the random selection option unconditionally.
10
lib/master_parse.y | 3 ++-
11
2 files changed, 3 insertions(+), 1 deletions(-)
14
diff --git a/CHANGELOG b/CHANGELOG
15
index f38fc3f..c976f79 100644
19
- fix memory leak on reload.
20
- update kernel patches for 2.6.18 and 2.6.19.
21
- dont connect at ldap lookup module init.
22
+- fix random selection option.
24
03/09/2009 autofs-5.0.5
25
-----------------------
26
diff --git a/lib/master_parse.y b/lib/master_parse.y
27
index 454a2ed..8adb393 100644
28
--- a/lib/master_parse.y
29
+++ b/lib/master_parse.y
30
@@ -811,7 +811,8 @@ int master_parse_entry(const char *buffer, unsigned int default_timeout, unsigne
31
ops->timeout(ap->logopt, ap->ioctlfd, &tout);
34
- entry->ap->flags |= MOUNT_FLAG_RANDOM_SELECT;
35
+ if (random_selection)
36
+ entry->ap->flags |= MOUNT_FLAG_RANDOM_SELECT;
38
entry->ap->negative_timeout = negative_timeout;