autofs/autofs-5.0.5-fix-fix-cache_init-on-source-re-read.patch
Ian Kent 634bf33499 * Tue Aug 10 2010 Ian Kent <ikent@redhat.com> - 1:5.0.5-28
- remove extra read master map call.
- remove extra cache create call in master_add_map_source().
- fix error handing in do_mount_indirect().
- expire thread use pending mutex.
- explicity link against the Kerberos library.
- remove some log message duplication for verbose logging.
2010-08-10 16:51:22 +08:00

29 lines
653 B
Diff

autofs-5.0.5 - fix "fix cache_init() on source re-read"
From: Ian Kent <raven@themaw.net>
Remove extra cache create call in master_add_map_source().
---
lib/master.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/lib/master.c b/lib/master.c
index 03d8f77..12f2d22 100644
--- a/lib/master.c
+++ b/lib/master.c
@@ -188,12 +188,6 @@ master_add_map_source(struct master_mapent *entry,
source->argc = argc;
source->argv = tmpargv;
- source->mc = cache_init(entry->ap, source);
- if (!source->mc) {
- master_free_map_source(source, 0);
- return NULL;
- }
-
master_source_writelock(entry);
if (!entry->maps) {