/[packages]/cauldron/autofs/current/SOURCES/autofs-5.0.5-fix-included-map-read-fail-handling.patch
ViewVC logotype

Contents of /cauldron/autofs/current/SOURCES/autofs-5.0.5-fix-included-map-read-fail-handling.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 49039 - (show annotations) (download)
Tue Feb 8 16:35:13 2011 UTC (13 years, 2 months ago) by ennael
File size: 1227 byte(s)
imported package autofs
1 autofs-5.0.5 - fix included map read fail handling
2
3 From: Ian Kent <raven@themaw.net>
4
5 If an included map read fails an error is returned and subsequent
6 master map entries are not read. We should report the failure but
7 we shouldn't stop reading the master map.
8 ---
9
10 CHANGELOG | 4 ++++
11 modules/lookup_file.c | 7 -------
12 2 files changed, 4 insertions(+), 7 deletions(-)
13
14
15 diff --git a/CHANGELOG b/CHANGELOG
16 index e734cb3..674a48b 100644
17 --- a/CHANGELOG
18 +++ b/CHANGELOG
19 @@ -1,3 +1,7 @@
20 +??/??/20?? autofs-5.0.6
21 +-----------------------
22 +- fix included map read fail handling.
23 +
24 03/09/2009 autofs-5.0.5
25 -----------------------
26 - fix dumb libxml2 check
27 diff --git a/modules/lookup_file.c b/modules/lookup_file.c
28 index a4ca39d..e43ab2f 100644
29 --- a/modules/lookup_file.c
30 +++ b/modules/lookup_file.c
31 @@ -438,13 +438,6 @@ int lookup_read_master(struct master *master, time_t age, void *context)
32 MODPREFIX
33 "failed to read included master map %s",
34 master->name);
35 - if (!master->recurse) {
36 - master->name = save_name;
37 - master->depth--;
38 - master->recurse = 0;
39 - fclose(f);
40 - return NSS_STATUS_UNAVAIL;
41 - }
42 }
43 master->depth--;
44 master->recurse = 0;

  ViewVC Help
Powered by ViewVC 1.1.30