svn commit: r199983 - in head: lib/libc/stdlib
tools/regression/environ
Brian Fundakowski Feldman
green at freebsd.org
Tue Dec 1 06:48:14 UTC 2009
On Tue, Dec 01, 2009 at 05:04:31AM +0000, Brian Feldman wrote:
> Author: green
> Date: Tue Dec 1 05:04:31 2009
> New Revision: 199983
> URL: http://svn.freebsd.org/changeset/base/199983
>
> Log:
> Do not gratuitously fail *env(3) operations due to corrupt ('='-less)
> **environ entries. This puts non-getenv(3) operations in line with
> getenv(3) in that bad environ entries do not cause all operations to
> fail. There is still some inconsistency in that getenv(3) in the
> absence of any environment-modifying operation does not emit corrupt
> environ entry warnings.
>
> I also fixed another inconsistency in getenv(3) where updating the
> global environ pointer would not be reflected in the return values.
> It would have taken an intermediary setenv(3)/putenv(3)/unsetenv(3)
> in order to see the change.
^^^
I'm apparently pretty sleepy, because I had forgotten what the second half
of the change was for :P
It makes getenv(3) capable of emitting the corrupted environ warnings.
However, this is still avoided in the no-memory-allocation scenario.
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green at FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
More information about the svn-src-all
mailing list