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

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