[U-Boot] [PATCH] Handle environment variables like commands

stefano babic stefano.babic at babic.homelinux.org
Wed Oct 15 14:01:59 CEST 2008


Wolfgang Denk wrote:

> Good catch. Yes, this must be prevented. Any variable named "builtin"
> must be ignored here - i. e. we should issue  an  erro  when  someone
> tries  a  "setenv", and ignore this variable explicitly (just in case
> someone sneaks this into the default environment,  or  uses  un-fixed
> Linux tools to create such a variable).

I know, I wanted to know which is the preferred method to avoid that.
One way is to avoid to set the variable, as you suggest.
The other way is never execute a variable with the name "builtin" in the
command interpreter: "setenv builtin <something>" remains possible but
"builtin <command>" calls always the U-Boot commands.

Best regards,
Stefano Babic


-- 
stefano <stefano.babic at babic.homelinux.org>
GPG Key: 0x55814DDE
Fingerprint 4E85 2A66 4CBA 497A 2A7B D3BF 5973 F216 5581 4DDE


More information about the U-Boot mailing list