Bug 810 - TZ environment variable not being set
Summary: TZ environment variable not being set
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: -current
Hardware: All All
: P3 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
: 834 836 838 (view as bug list)
Depends on:
Blocks: 821
  Show dependency treegraph
 
Reported: 2004-03-08 23:20 AEDT by Al Smith
Modified: 2004-04-19 23:31 AEST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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