2010-01-03 Carles Pina i Estany <carles@pina.cat>
* kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
This commit is contained in:
parent
f936862eda
commit
136d24f643
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2010-01-03 Carles Pina i Estany <carles@pina.cat>
|
||||
|
||||
* kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
|
||||
|
||||
2010-01-03 Carles Pina i Estany <carles@pina.cat>
|
||||
|
||||
* po/POTFILES: Sort correctly.
|
||||
|
|
|
@ -264,10 +264,11 @@ grub_env_unset (const char *name)
|
|||
if (! var)
|
||||
return;
|
||||
|
||||
/* XXX: It is not possible to unset variables with a read or write
|
||||
hook. */
|
||||
if (var->read_hook || var->write_hook)
|
||||
{
|
||||
grub_env_set (name, "");
|
||||
return;
|
||||
}
|
||||
|
||||
grub_env_remove (var);
|
||||
|
||||
|
|
Loading…
Reference in a new issue