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

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