Environment clearing broken in 7.0

2008-06-09 Thread Timo Sirainen
I think clearing environment using: environ[0] = NULL; has been kind of a semi-standard for a while now. At least Dovecot and Postfix clears their environment this way. But this no longer works in FreeBSD 7.0 (putenv(), environ[0]=NULL, putenv() -> everything is visible again). Was this change in

Re: Environment clearing broken in 7.0

2008-06-09 Thread Timo Sirainen
On Mon, 2008-06-09 at 22:27 -0500, Sean C. Farley wrote: > On Mon, 9 Jun 2008, Timo Sirainen wrote: > > > I think clearing environment using: > > > > environ[0] = NULL; > > > > has been kind of a semi-standard for a while now. At least Dovecot and > >

Re: Environment clearing broken in 7.0

2008-06-10 Thread Timo Sirainen
On Tue, 2008-06-10 at 12:17 -0500, Sean C. Farley wrote: > >> I suggest reading the two paragraphs from Open Group's getenv()[1] > >> documentation starting at "Conforming applications are required not > >> to modify environ directly, ..." for the rationale in the new design. > >> Obviously, applic