Environment handling broken in /bin/sh with changes to {get,set,put}env()

Andrey Chernov ache at nagual.pp.ru
Wed Jul 4 23:56:34 UTC 2007


On Wed, Jul 04, 2007 at 11:59:39PM +0400, Andrey Chernov wrote:
> > Sean
> >   1. http://www.farley.org/freebsd/tmp/setenv/clearenv/

BTW, I think this one should _not_ free() anything according to your 
comment:

  No
* previous variables are ever freed here to avoid causing a segmentation fault
* in a user's code.

-- 
http://ache.pp.ru/


More information about the freebsd-current mailing list