Bug 810

Summary: TZ environment variable not being set
Product: Portable OpenSSH Reporter: Al Smith <Al.Smith>
Component: sshdAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal CC: ktaylor, Nick_Chi, wadelljs
Priority: P3    
Version: -current   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 821    

Description Al Smith 2004-03-08 23:20:27 AEDT
TZ is set and exported at the time when sshd is started.

However, by the time one arrives at line 1029 in session.c where
TZ is supposed to be propagated to the child's environment it is
no longer set. All users of the machine are thus destined to live
in GMT.

Maybe the setting of environ[0] to NULL at line 1111 of sshd.c should at
least try and preserve $TZ for future use?
Comment 1 Darren Tucker 2004-03-08 23:26:48 AEDT
This was fixed a couple of hours ago:
 - (dtucker) [sshd.c] Back out rev 1.270 as it caused problems on some
   platforms (eg SCO, HP-UX) with logging in the wrong TZ.  ok djm@

Please try tomorrow's snapshot and re-open this bug if there are still problems.
Comment 2 Darren Tucker 2004-04-06 21:04:55 AEST
*** Bug 834 has been marked as a duplicate of this bug. ***
Comment 3 Darren Tucker 2004-04-07 13:04:11 AEST
This affects several platforms including HPUX and SCO.  (Hopefully changing the
platforms will let people find it easier).
Comment 4 Darren Tucker 2004-04-07 13:04:38 AEST
*** Bug 836 has been marked as a duplicate of this bug. ***
Comment 5 Darren Tucker 2004-04-09 11:59:48 AEST
*** Bug 838 has been marked as a duplicate of this bug. ***
Comment 6 Darren Tucker 2004-04-10 12:50:26 AEST
This is fixed in the soon-to-be-released 3.8.1p1
Comment 7 Damien Miller 2004-04-19 23:31:39 AEST
Closed with release of portable OpenSSH 3.8.1p1