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