Blame SOURCES/autofs-5.1.3-allow-dot-in-OPTIONSTR-value-lexer-pattern.patch

4d476f
autofs-5.1.3 - allow dot in OPTIONSTR value lexer pattern
4d476f
4d476f
From: Ian Kent <raven@themaw.net>
4d476f
4d476f
The options string in master map entries doesn't allow dot in the
4d476f
string value side of an option assignment. This prevents using an
4d476f
option like vers=4.1 to apply to all entries of the map.
4d476f
4d476f
Add . to the options value portion of the regular expression used
4d476f
for this field.
4d476f
4d476f
Signed-off-by: Ian Kent <raven@themaw.net>
4d476f
---
4d476f
 CHANGELOG        |    1 +
4d476f
 lib/master_tok.l |    2 +-
4d476f
 2 files changed, 2 insertions(+), 1 deletion(-)
4d476f
4d476f
--- autofs-5.0.7.orig/CHANGELOG
4d476f
+++ autofs-5.0.7/CHANGELOG
603f99
@@ -255,6 +255,7 @@
603f99
 - fix mount.nfs blocks on first mount.
603f99
 - fix typos in autofs man pages.
603f99
 - fix some man page problems.
4d476f
+- allow dot in OPTIONSTR value lexer pattern.
4d476f
 
4d476f
 25/07/2012 autofs-5.0.7
4d476f
 =======================
4d476f
--- autofs-5.0.7.orig/lib/master_tok.l
4d476f
+++ autofs-5.0.7/lib/master_tok.l
4d476f
@@ -91,7 +91,7 @@ OPTWS		[[:blank:]]*
4d476f
 NL		\r?\n
4d476f
 CONT		\\\n{OPTWS}
4d476f
 
4d476f
-OPTIONSTR	([\-]?([[:alpha:]_]([[:alnum:]_\-])*(=(\"?([[:alnum:]_\-\:])+\"?))?)+)
4d476f
+OPTIONSTR	([\-]?([[:alpha:]_]([[:alnum:]_\-])*(=(\"?([[:alnum:]_\-\:\.])+\"?))?)+)
4d476f
 MACROSTR	(-D{OPTWS}([[:alpha:]_]([[:alnum:]_\-\.])*)=([[:alnum:]_\-\.])+)
4d476f
 SLASHIFYSTR	(--(no-)?slashify-colons)
4d476f
 NUMBER		[0-9]+