Blame SOURCES/autofs-5.1.4-fix-sublink-option-not-set-from-defaults.patch

304803
autofs-5.1.4 - fix sublink option not set from defaults
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
If the amd entry sublink option is given in a defaults entry
304803
it isn't merged into the current entry during parsing.
304803
304803
Signed-off-by: Ian Kent <raven@themaw.net>
304803
---
304803
 CHANGELOG           |    1 +
304803
 modules/parse_amd.c |   12 ++++++++++++
304803
 2 files changed, 13 insertions(+)
304803
304803
--- autofs-5.0.7.orig/modules/parse_amd.c
304803
+++ autofs-5.0.7/modules/parse_amd.c
304803
@@ -647,6 +647,18 @@ static void update_with_defaults(struct
304803
 		}
304803
 	}
304803
 
304803
+	if (!entry->sublink) {
304803
+		if (defaults->sublink) {
304803
+			tmp = strdup(defaults->sublink);
304803
+			if (tmp)
304803
+				entry->sublink = tmp;
304803
+		} else {
304803
+			v = macro_findvar(sv, "sublink", 2);
304803
+			if (v)
304803
+				entry->sublink = strdup(v->val);
304803
+		}
304803
+	}
304803
+
304803
 	return;
304803
 }
304803
 
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -293,6 +293,7 @@
304803
 - fix deadlock in dumpmaps.
304803
 - dont use array for path when not necessary.
304803
 - fix prefix option handling in expand_entry().
304803
+- fix sublink option not set from defaults.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================