environ problem in 3.8p1

Damien Miller djm at mindrot.org
Wed Mar 3 11:11:37 EST 2004


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.

-d





More information about the openssh-unix-dev mailing list