Skip to contentSkip to conversation

bug 27695: parser.sh ignores the closing quote when preceeded by a variable

PATCH In review BVK 2 participants 2 messages Nov 6, 2009

lore
Share & tools
lore

BVK

author
#0 lore raw

PATCH 1/1 bug 27695: parser.sh ignores the closing quote when preceeded by a variable

Fix for bug,

https://savannah.gnu.org/bugs/?27695

which is about variable names not parsed properly in quoted strings.

Signature · 1 line
bvk.chaitanya
ChangeLog +5 -0
Index: ChangeLog
===================================================================
@@ -1,3 +1,8 @@
+2009-11-06  BVK Chaitanya  <[email protected]>
+
+	* script/sh/lexer.c (grub_script_yylex): Fix for #27695, variable
+	parsing in double quoted strings.
+
 2009-11-04  Felix Zielcke  <[email protected]>
 
 	* configure.ac (AC_PREREQ): Bump to 2.59d.
sh/lexer.c +1 -2
Index: script/sh/lexer.c
===================================================================
@@ -349,8 +349,7 @@
 		 anymore.  */
 	      if (! (check_varstate (newstate)))
 		{
-		  if (state->state == GRUB_PARSER_STATE_VARNAME2
-		  || state->state == GRUB_PARSER_STATE_QVARNAME2)
+		  if (! use)
 		    nextchar (state);
 		  state->state = newstate;
 		  break;
#1 lore raw
Quoted 7 lines · BVK

Fix for bug,

https://savannah.gnu.org/bugs/?27695

which is about variable names not parsed properly in quoted strings.

We already have the fix for this bug just I had no time to merge it yet

Quoted 9 lines

------------------------------------------------------------------------

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 3 lines
Regards
Vladimir 'phcoder' Serbinenko
Personal git repository: http://repo.or.cz/w/grub2/phcoder.git