1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 01UPSTREAM_autofs-5.0.4-fix-map-type-info-parse-error.patch
4
## DP: Upstream patch on top of 5.0.4.
7
autofs-5.0.4 - fix map type info parse error
9
From: Ian Kent <raven@themaw.net>
11
Fix a mistake in map type info parsing introduced by the IPv6 parse
16
lib/parse_subs.c | 4 +++-
17
2 files changed, 4 insertions(+), 1 deletions(-)
20
diff --git a/CHANGELOG b/CHANGELOG
21
index 05e0206..3fd97d3 100644
25
- remount we created mount point fix.
26
- fix double free in sasl_bind().
27
- mannual umount recovery fixes.
28
+- fix map type info parse error.
30
4/11/2008 autofs-5.0.4
31
-----------------------
32
diff --git a/lib/parse_subs.c b/lib/parse_subs.c
33
index 0cba95a..0608cb7 100644
34
--- a/lib/parse_subs.c
35
+++ b/lib/parse_subs.c
36
@@ -315,6 +315,7 @@ struct map_type_info *parse_map_type_info(const char *str)
38
struct map_type_info *info;
39
char *buf, *type, *fmt, *map, *tmp;
44
@@ -335,11 +336,12 @@ struct map_type_info *parse_map_type_info(const char *str)
48
- } else if (*tmp == ',') {
49
+ } else if (!seen_colon && *tmp == ',') {
53
} else if (*tmp == ':') {