Re: setenv() doesn't export unsetenv()ed variables to environ

From: Sean C. Farley <scf_at_FreeBSD.org>
Date: Sat, 15 Sep 2007 16:52:01 -0500 (CDT)
On Mon, 10 Sep 2007, YAMAMOTO, Taku wrote:

> Greetings,
>
> I found a regression in src/lib/libc/stdlib/getenv.c during tracking
> strange behaviour of the sshguard-pf.
>
> In short, setenv() doesn't add an entry to environ[] if the name was
> once removed by unsetenv().
>
> I'm suspecting the function __setenv() lacks care of the case to reuse
> a deactivated entry and it needs the following change:

I just committed the patch.  Thank you.

Sean
-- 
scf_at_FreeBSD.org
Received on Sat Sep 15 2007 - 19:52:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:17 UTC