Blame SOURCES/autofs-5.1.0-beta1-fix-xfn-sets-incorrect-lexer-state.patch

4d476f
autofs-5.1.0-beta1 - fix xfn sets incorrect lexer state
4d476f
4d476f
From: Ian Kent <ikent@redhat.com>
4d476f
4d476f
The X/Open Federated Naming service isn't supported and the parser will
4d476f
call YYABORT() when it sees the MAPXFN token so we must set the start
4d476f
state to the INITIAL state here for the next yylex() call.
4d476f
---
4d476f
 CHANGELOG        |    1 +
4d476f
 lib/master_tok.l |    8 +++++++-
4d476f
 2 files changed, 8 insertions(+), 1 deletion(-)
4d476f
4d476f
--- autofs-5.0.7.orig/CHANGELOG
4d476f
+++ autofs-5.0.7/CHANGELOG
4d476f
@@ -115,6 +115,7 @@
4d476f
 - fix ldap default master map name config.
4d476f
 - fix map format init in lookup_init().
4d476f
 - fix incorrect max key length in defaults get_hash().
4d476f
+- fix xfn sets incorrect lexer state.
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
@@ -258,7 +258,13 @@ OPTNTOUT	(-n{OPTWS}|-n{OPTWS}={OPTWS}|--
4d476f
 	}
4d476f
 
4d476f
 	"-xfn" {
4d476f
-		BEGIN(OPTSTR);
4d476f
+		/*
4d476f
+		 * The X/Open Federated Naming service isn't supported
4d476f
+		 * and the parser will call YYABORT() when it sees the
4d476f
+		 * MAPXFN token so we must set the start state to the
4d476f
+		 * INITIAL state here for the next yylex() call.
4d476f
+		 */
4d476f
+		BEGIN(INITIAL);
4d476f
 		strcpy(master_lval.strtype, master_text);
4d476f
 		return MAPXFN;
4d476f
 	}