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

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