2009-09-08 Colin Watson <cjwatson@ubuntu.com>
* script/sh/execute.c (grub_script_execute_cmdline): Set "?" in unknown-command case. Fixes bug #27320.
This commit is contained in:
parent
44454e4c24
commit
99423078e4
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-09-08 Colin Watson <cjwatson@ubuntu.com>
|
||||
|
||||
* script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
|
||||
unknown-command case. Fixes bug #27320.
|
||||
|
||||
2009-09-08 Felix Zielcke <fzielcke@z-51.de>
|
||||
|
||||
* kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
|
||||
|
|
|
@ -122,6 +122,10 @@ grub_script_execute_cmdline (struct grub_script_cmd *cmd)
|
|||
grub_errno = GRUB_ERR_NONE;
|
||||
}
|
||||
grub_free (assign);
|
||||
|
||||
grub_sprintf (errnobuf, "%d", grub_errno);
|
||||
grub_env_set ("?", errnobuf);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue