~ubuntu-branches/ubuntu/precise/autofs5/precise

« back to all changes in this revision

Viewing changes to debian/patches/autofs-5.0.5-fix-fix-cache_init-on-source-re-read.patch

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-07-03 14:35:46 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110703143546-nej26krjij0rf792
Tags: 5.0.6-0ubuntu1
* New upstream release:
  - Dropped upstream patches 
  - Refreshed debian/patches/17ld.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
autofs-5.0.5 - fix "fix cache_init() on source re-read"
2
 
 
3
 
From: Ian Kent <raven@themaw.net>
4
 
 
5
 
Remove extra cache create call in master_add_map_source().
6
 
---
7
 
 
8
 
 lib/master.c |    6 ------
9
 
 1 files changed, 0 insertions(+), 6 deletions(-)
10
 
 
11
 
 
12
 
diff --git a/lib/master.c b/lib/master.c
13
 
index 03d8f77..12f2d22 100644
14
 
--- a/lib/master.c
15
 
+++ b/lib/master.c
16
 
@@ -188,12 +188,6 @@ master_add_map_source(struct master_mapent *entry,
17
 
        source->argc = argc;
18
 
        source->argv = tmpargv;
19
 
 
20
 
-       source->mc = cache_init(entry->ap, source);
21
 
-       if (!source->mc) {
22
 
-               master_free_map_source(source, 0);
23
 
-               return NULL;
24
 
-       }
25
 
-
26
 
        master_source_writelock(entry);
27
 
 
28
 
        if (!entry->maps) {