add {} around block-arg that is passed through argv

This commit is contained in:
BVK Chaitanya 2010-07-20 00:10:44 +05:30
parent 9b65d8c4f5
commit 15ee6f9dc7

View file

@ -197,7 +197,9 @@ grub_script_arglist_to_argv (struct grub_script_arglist *arglist,
break;
case GRUB_SCRIPT_ARG_TYPE_BLOCK:
if (grub_script_argv_append (&result, arg->str) ||
if (grub_script_argv_append (&result, "{") ||
grub_script_argv_append (&result, arg->str) ||
grub_script_argv_append (&result, "}") ||
grub_script_argv_script_append (&result, arg->block))
goto fail;
break;