[BusyBox] hush environment variables

Erik Andersen andersen at lineo.com
Mon May 7 17:54:03 UTC 2001


On Fri May 04, 2001 at 10:59:38AM -0700, Evin Robertson wrote:
> Currently on my system (with gnu libc 2.1.3) doing export foo=blue
> doesn't work in CVS hush.
> 
> The problem seems to be that the data passed to putenv is overwritten
> later, so the environment data no longer contains the variable when I
> try to use it.
> 
> Strangely things appear to work fine in lash even though the
> builtin_export funcions are basically the same in both lash and hush.
> 
> The following patch makes it work here.  Does it create a small memory
> leak?  Is there a better way?

It does leak, but I can live with that till we get local variables,
which will give us a means to track such things and free them.

 -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