Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2007 16:52:01 -0500 (CDT)
From:      "Sean C. Farley" <scf@FreeBSD.org>
To:        "YAMAMOTO, Taku" <taku@tackymt.homeip.net>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: setenv() doesn't export unsetenv()ed variables to environ
Message-ID:  <alpine.BSF.0.9999.0709151650220.29967@thor.farley.org>
In-Reply-To: <20070910081425.3c45bca7.taku@tackymt.homeip.net>
References:  <20070910081425.3c45bca7.taku@tackymt.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.0.9999.0709151650220.29967>