diff --git a/autofs-5.0.3-map-type-in-map-name.patch b/autofs-5.0.3-map-type-in-map-name.patch index a609e21..ceb17b1 100644 --- a/autofs-5.0.3-map-type-in-map-name.patch +++ b/autofs-5.0.3-map-type-in-map-name.patch @@ -11,7 +11,7 @@ index af5a1b0..76f2477 100644 14/01/2008 autofs-5.0.3 ----------------------- diff --git a/lib/master_tok.l b/lib/master_tok.l -index b379940..9f4aaab 100644 +index b379940..eab6bb1 100644 --- a/lib/master_tok.l +++ b/lib/master_tok.l @@ -77,6 +77,7 @@ int my_yyinput(char *, int); @@ -22,7 +22,23 @@ index b379940..9f4aaab 100644 %} -@@ -189,17 +190,25 @@ OPTNTOUT (-n{OPTWS}|-n{OPTWS}={OPTWS}|--negative-timeout{OPTWS}|--negative-timeo +@@ -161,6 +162,15 @@ OPTNTOUT (-n{OPTWS}|-n{OPTWS}={OPTWS}|--negative-timeout{OPTWS}|--negative-timeo + return QUOTE; + } + ++ {WS}/({MULTI}|{MTYPE}) { ++ BEGIN(MAPSTR); ++ *bptr = '\0'; ++ strcpy(master_lval.strtype, buff); ++ bptr = buff; ++ yyless(0); ++ return(PATH); ++ } ++ + {WS} { + BEGIN(MAPSTR); + *bptr = '\0'; +@@ -189,17 +199,25 @@ OPTNTOUT (-n{OPTWS}|-n{OPTWS}={OPTWS}|--negative-timeout{OPTWS}|--negative-timeo { {OPTWS}\\\n{OPTWS} {} @@ -53,3 +69,12 @@ index b379940..9f4aaab 100644 ":" { return(COLON); } +@@ -226,7 +244,7 @@ OPTNTOUT (-n{OPTWS}|-n{OPTWS}={OPTWS}|--negative-timeout{OPTWS}|--negative-timeo + yyless(0); + } + +- {DNSERVERSTR} { ++ {DNSERVERSTR}{DNATTRSTR} { + BEGIN(DNSTR); + yyless(0); + } diff --git a/autofs.spec b/autofs.spec index e2932f3..ce995e4 100644 --- a/autofs.spec +++ b/autofs.spec @@ -4,7 +4,7 @@ Summary: A tool for automatically mounting and unmounting filesystems Name: autofs Version: 5.0.3 -Release: 8 +Release: 9 Epoch: 1 License: GPL Group: System Environment/Daemons @@ -125,6 +125,9 @@ fi %{_libdir}/autofs/ %changelog +* Wed Mar 26 2008 Ian Kent - 5.0.3-9 +- fix lexer ambiguity in match when map type name is included in map name. + * Mon Mar 24 2008 Ian Kent - 5.0.3-8 - revert miscellaneous device node related patches. - add missing check for zero length NIS key.