On 16 November 2016 at 03:29, Bernhard Nortmann <bernhard.nortm...@web.de> wrote: > This patch modifies env_flags_validate() in such a way that any > operation will *always* be allowed if H_PROGRAMMATIC is present. > > Without this change, programmatically changing environment vars > may fail depending on their flags, e.g. when trying to setenv*() > a variable that is marked "read-only". > http://lists.denx.de/pipermail/u-boot/2016-April/250237.html > > Notes: H_FORCE may be insufficient for this purpose, as it can be > disabled by CONFIG_ENV_ACCESS_IGNORE_FORCE. > H_PROGRAMMATIC indicates "U-Boot internal" use. By contrast, any > user interaction (from U-Boot prompt or scripts) is expected to > be marked H_INTERACTIVE. > > Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de> > > --- > > Changes in v2: None > > common/env_flags.c | 2 ++ > 1 file changed, 2 insertions(+)
Reviewed-by: Simon Glass <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot