environ problem in 3.8p1

Damien Miller djm at mindrot.org
Wed Mar 3 12:01:02 EST 2004


Damien Miller wrote:

> Roger Cornelius wrote:
> 
> 
>>3.8p1 added the following to main() in sshd.c:
>>
>>#ifndef HAVE_CYGWIN
>>    /* Clear environment */
>>	environ[0] = NULL;
>>#endif
>>
>>This breaks the getenv("TZ") in session.c 
> 
> 
> Good point - this probably needs to happen a fair bit later, in session.c.

Actually, this won't work - KRB5CCNAME gets set during the auth process.

Perhaps we just need to blank a couple of environment variables. Comments?

-d




More information about the openssh-unix-dev mailing list