environ problem in 3.8p1

Tim Rice tim at multitalents.net
Wed Mar 3 09:45:34 EST 2004


On Tue, 2 Mar 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 and causes logins to occur in
> GMT time.  It also causes any sshd syslog messages to be written in GMT
> time.  I'm on SCO Openserver 5.0.7, but this looks like it should affect
> all platforms.  Am I missing something?  I haven't seen it reported
> before.

Perhaps it should be

--- sshd.c.old	2004-02-29 15:36:01.351247001 -0800
+++ sshd.c	2004-03-02 14:41:32.551939053 -0800
@@ -1106,7 +1106,7 @@
 	   unmounted if desired. */
 	chdir("/");
 
-#ifndef HAVE_CYGWIN
+#ifndef DISABLE_FD_PASSING
 	/* Clear environment */
 	environ[0] = NULL;
 #endif

Wendy, are Crays having this problem?

Can someone on DEC OSF check this?

> 
> Thanks.
> 
> 

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net





More information about the openssh-unix-dev mailing list