All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bug 27695: parser.sh ignores the closing quote when preceeded by a variable
@ 2009-11-06 15:37 BVK
  2009-11-06 15:49 ` Vladimir 'phcoder' Serbinenko
  0 siblings, 1 reply; 2+ messages in thread
From: BVK @ 2009-11-06 15:37 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

Fix for bug,

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

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



-- 
bvk.chaitanya

[-- Attachment #2: fix-var-name-in-dquote-string.patch --]
[-- Type: application/octet-stream, Size: 854 bytes --]

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 2682)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2009-11-06  BVK Chaitanya  <bvk.groups@gmail.com>
+
+	* script/sh/lexer.c (grub_script_yylex): Fix for #27695, variable
+	parsing in double quoted strings.
+
 2009-11-04  Felix Zielcke  <fzielcke@z-51.de>
 
 	* configure.ac (AC_PREREQ): Bump to 2.59d.
Index: script/sh/lexer.c
===================================================================
--- script/sh/lexer.c	(revision 2682)
+++ script/sh/lexer.c	(working copy)
@@ -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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] bug 27695: parser.sh ignores the closing quote when preceeded by a variable
  2009-11-06 15:37 [PATCH] bug 27695: parser.sh ignores the closing quote when preceeded by a variable BVK
@ 2009-11-06 15:49 ` Vladimir 'phcoder' Serbinenko
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir 'phcoder' Serbinenko @ 2009-11-06 15:49 UTC (permalink / raw)
  To: The development of GRUB 2

BVK wrote:
> 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
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>   


-- 
Regards
Vladimir 'phcoder' Serbinenko
Personal git repository: http://repo.or.cz/w/grub2/phcoder.git 




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-06 15:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-06 15:37 [PATCH] bug 27695: parser.sh ignores the closing quote when preceeded by a variable BVK
2009-11-06 15:49 ` Vladimir 'phcoder' Serbinenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.