Blame SOURCES/autofs-5.1.5-allow-period-following-macro-in-selector-value.patch

85ad07
autofs-5.1.5 - allow period following macro in selector value
85ad07
85ad07
From: Ian Kent <raven@themaw.net>
85ad07
85ad07
If a ${} macro is used in a selector (such as hostd) the parser doesn't
85ad07
permit a period to follow it (such as when the value is a host name).
85ad07
85ad07
Signed-off-by: Ian Kent <raven@themaw.net>
85ad07
---
85ad07
 CHANGELOG         |    1 +
85ad07
 modules/amd_tok.l |    2 +-
85ad07
 2 files changed, 2 insertions(+), 1 deletion(-)
85ad07
85ad07
--- autofs-5.0.7.orig/CHANGELOG
85ad07
+++ autofs-5.0.7/CHANGELOG
85ad07
@@ -326,6 +326,7 @@
85ad07
 - make expire remaining log level debug.
85ad07
 - workaround getaddrinfo(3) ai_canonname bug
85ad07
 - improve hostname lookup error logging.
85ad07
+- allow period following macro in selector value.
85ad07
 
85ad07
 25/07/2012 autofs-5.0.7
85ad07
 =======================
85ad07
--- autofs-5.0.7.orig/modules/amd_tok.l
85ad07
+++ autofs-5.0.7/modules/amd_tok.l
85ad07
@@ -95,7 +95,7 @@ V6MASK		(12[0-8]|1[0-1][0-9]|[1-9][0-9]|
85ad07
 
85ad07
 FOPT		(({QSTR}|{FSTR}|{MACRO})+)
85ad07
 OPTS		({OSTR}(=({VSTR}|{MACRO})+)?)
85ad07
-SOPT		(({SSTR}|{QSTR}|{MACRO})+)
85ad07
+SOPT		({SSTR}|{QSTR}|{MACRO}(\.|{SSTR}|{QSTR}|{MACRO})+)
85ad07
 NOPT		({SSTR}|(({IP4ADDR}(\/{V4MASK})?)|({IP6ADDR}(\/{V6MASK})?)))
85ad07
 
85ad07
 MAPOPT		(fs|type|maptype|pref|sublink|cache)