36 lines
1007 B
Diff
36 lines
1007 B
Diff
autofs-5.0.5 - fix random selection option
|
|
|
|
From: Ian Kent <raven@themaw.net>
|
|
|
|
When parsing the master map we fail to check if the random selection
|
|
option has been seen and set the random selection option unconditionally.
|
|
---
|
|
|
|
CHANGELOG | 1 +
|
|
lib/master_parse.y | 3 ++-
|
|
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
|
|
--- autofs-5.0.5.orig/CHANGELOG
|
|
+++ autofs-5.0.5/CHANGELOG
|
|
@@ -18,6 +18,7 @@
|
|
- fix rpc fail on large export list.
|
|
- fix memory leak on reload.
|
|
- dont connect at ldap lookup module init.
|
|
+- fix random selection option.
|
|
|
|
03/09/2009 autofs-5.0.5
|
|
-----------------------
|
|
--- autofs-5.0.5.orig/lib/master_parse.y
|
|
+++ autofs-5.0.5/lib/master_parse.y
|
|
@@ -811,7 +811,8 @@ int master_parse_entry(const char *buffe
|
|
ops->timeout(ap->logopt, ap->ioctlfd, &tout);
|
|
}
|
|
}
|
|
- entry->ap->flags |= MOUNT_FLAG_RANDOM_SELECT;
|
|
+ if (random_selection)
|
|
+ entry->ap->flags |= MOUNT_FLAG_RANDOM_SELECT;
|
|
if (negative_timeout)
|
|
entry->ap->negative_timeout = negative_timeout;
|
|
|