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

Andrey Chernov ache at nagual.pp.ru
Mon Jul 9 04:13:40 UTC 2007


On Sun, Jul 08, 2007 at 08:40:11PM -0500, Sean C. Farley wrote:
> 
> Your interpretation of the specification is correct.  My latest patch
> should apply.  I changed getenv() to never change environ.  If it
> detects that environ was replaced, it falls back to returning the value
> from there.  Only setenv(), unsetenv() and putenv() will alter environ.
> How does it look to you?

Ok now. No suggestions left.

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


More information about the freebsd-current mailing list