2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>

* kern/env.c (grub_env_context_open): Added an argument to specify
    whether a new context inherits exported variables from current
    one. This is useful when making a sandbox to interpret a config
    file.
    All callers updated.

    * include/grub/env.h (grub_env_context_open): Updated the prototype.
This commit is contained in:
okuji 2009-03-22 10:45:06 +00:00
parent b28bbc4ef5
commit 42a5b3fcc7
4 changed files with 17 additions and 6 deletions

View file

@ -36,7 +36,7 @@ grub_cmd_source (grub_command_t cmd, int argc, char **args)
if (new_env)
{
grub_cls ();
grub_env_context_open ();
grub_env_context_open (1);
}
grub_normal_execute (args[0], 1, ! new_env);