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

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