Blame SOURCES/autofs-5.1.0-beta1-add-plus-to-path-match-pattern.patch

306fa1
autofs-5.1.0-beta1 - add plus to path match pattern
306fa1
306fa1
From: Ian Kent <raven@themaw.net>
306fa1
306fa1
The pattern matching in the tokenizer is very strict and quite
306fa1
limited. That's been done (initially) to ensure that the parsing
306fa1
of other parts of map entries is accurate and to ensure that
306fa1
error cases are handled cleanly since the strict matching will
306fa1
cause errors.
306fa1
306fa1
I don't want to open up patterns that probably need it to accept
306fa1
a wide range of characters just yet but adding "+" to the match
306fa1
is obviously needed.
306fa1
---
306fa1
 CHANGELOG         |    1 +
306fa1
 modules/amd_tok.l |    2 +-
306fa1
 2 files changed, 2 insertions(+), 1 deletion(-)
306fa1
306fa1
--- autofs-5.0.7.orig/CHANGELOG
306fa1
+++ autofs-5.0.7/CHANGELOG
306fa1
@@ -121,6 +121,7 @@
306fa1
 - fix ldap_uri config update.
306fa1
 - fix typo in conf_load_autofs_defaults().
306fa1
 - fix hash on confg option add and delete.
306fa1
+- add plus to path match pattern.
306fa1
 
306fa1
 25/07/2012 autofs-5.0.7
306fa1
 =======================
306fa1
--- autofs-5.0.7.orig/modules/amd_tok.l
306fa1
+++ autofs-5.0.7/modules/amd_tok.l
306fa1
@@ -81,7 +81,7 @@ V4NUM		([01]?[0-9][0-9]?|2[0-4][0-9]|25[
306fa1
 MACRO		(\$\{([[:alpha:]_/]([[:alnum:]_\-])([[:alnum:]_\-/])*)\})
306fa1
 QSTR		(\"([^"\\]|\\.)*\")
306fa1
 OSTR		([[:alpha:]]([[:alnum:]_\-])+)
306fa1
-FSTR		([[:alnum:]_/\.]([[:alnum:]_\-/\.]|(\\.))*)
306fa1
+FSTR		([[:alnum:]_/\.]([[:alnum:]_\-/\+\.]|(\\.))*)
306fa1
 VSTR		(([[:alnum:]_\-\:/\.])+)
306fa1
 SSTR		([[:alpha:]]([[:alnum:]\-\.])+)
306fa1
 IP4ADDR		({V4NUM}\.((({V4NUM}\.){0,2}){V4NUM}?))