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:
carles 2010-01-03 21:08:51 +01:00
parent f936862eda
commit 136d24f643
2 changed files with 8 additions and 3 deletions

View file

@ -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.

View file

@ -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)
return;
{
grub_env_set (name, "");
return;
}
grub_env_remove (var);