[BusyBox] Passing arguments to init when loading the kernel?
Erik Andersen
andersen at lineo.com
Tue Feb 20 17:59:19 UTC 2001
On Tue Feb 20, 2001 at 06:11:35PM +0100, Erik Gustavsson wrote:
>
> Hmmm. No I must admit I hadn't thought of that. I simply noticed that TERM
> was already set by the kernel and removed it.
>
> Ok, last try... Ignores TERM from the environment, also done a little more
> according to "./docs/style-guide.txt".
>
Ok, but I don't think we want to completely ignore TERM either. If someone
decides they want to set TERM=somethingwierd, we don't want to ignore their
wishes or we still have a reduced case of the original problem. I'll apply
your patch, but add in this little bit to special case the handling of TERM
so people _can_ overwrite it, but still get a sane default.
if (strncmp(environ[j], "TERM=", 5))
environment[i++] = environ[j];
else {
snprintf(termType, sizeof(termType) - 1, environ[j]);
}
Let me know if you see any problems,
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list