Blame SOURCES/autofs-5.1.0-ignore-multiple-commas-in-options-strings.patch

304803
autofs-5.1.0 - ignore multiple commas in options strings
304803
304803
From: Ian Kent <ikent@redhat.com>
304803
304803
When parsing options strings (such as opts, addopts or remopts) the parser
304803
would object to multiple occurrances of the comma character. But this is
304803
probably not a significant problem and the parser should just ignore them.
304803
---
304803
 CHANGELOG           |    1 +
304803
 modules/amd_parse.y |    4 ++++
304803
 modules/amd_tok.l   |    4 ++--
304803
 3 files changed, 7 insertions(+), 2 deletions(-)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -153,6 +153,7 @@
304803
 - fix memory leak in get_defaults_entry().
304803
 - fix out of order clearing of options buffer.
304803
 - fix reset amd lexer scan buffer.
304803
+- ignore multiple commas in options strings.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/modules/amd_parse.y
304803
+++ autofs-5.0.7/modules/amd_parse.y
304803
@@ -465,6 +465,10 @@ options: OPTION
304803
 	{
304803
 		prepend_opt(opts, $1);
304803
 	}
304803
+	| OPTION COMMA
304803
+	{
304803
+		prepend_opt(opts, $1);
304803
+	}
304803
 	;
304803
 
304803
 %%
304803
--- autofs-5.0.7.orig/modules/amd_tok.l
304803
+++ autofs-5.0.7/modules/amd_tok.l
304803
@@ -284,9 +284,9 @@ CUTSEP		(\|\||\/)
304803
 		return SPACE;
304803
 	}
304803
 
304803
-	":=" { return OPTION_ASSIGN; }
304803
+	(:=)(,+)? { return OPTION_ASSIGN; }
304803
 
304803
-	"," { return COMMA; }
304803
+	,+ { return COMMA; }
304803
 
304803
 	{OPTS} {
304803
 		amd_copy_buffer();