Re: TZ variable lost in openssh-3.8 upgrade

From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 03/23/04


Date: Tue, 23 Mar 2004 01:16:24 +0000 (UTC)

In article <Pine.SGI.3.96.1040322181241.169195C-100000@cheyenne.nascom.nasa.gov>,
Thomas Gaeng <gaeng@cheyenne.nascom.nasa.gov> wrote:
>I have just upgraded from
> OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003
>to
> OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004
[snip]
>Now when I connect via ssh from either a openssh-3.7 and openssh-3.8
>client to the openssh-3.8 server I loose the TZ variable settings.

Known problem, already fixed in -current
http://bugzilla.mindrot.org/show_bug.cgi?id=810

There's no patch in the bug so:

--- sshd.c 29 Feb 2004 09:11:30 -0000 1.273
+++ sshd.c 8 Mar 2004 11:13:12 -0000 1.274
@@ -1105,11 +1104,6 @@ main(int ac, char **av)
        /* Chdir to the root directory so that the current disk can be
           unmounted if desired. */
        chdir("/");
-
-#ifndef HAVE_CYGWIN
- /* Clear environment */
- environ[0] = NULL;
-#endif

        /* ignore SIGPIPE */
        signal(SIGPIPE, SIG_IGN);

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


Relevant Pages

  • Re: GatewayPorts does not open remote end
    ... >which do not want Gatewayports. ... an external forwarder on the server to accept ... the ssh client on the remote host could ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: ClientAliveInterval question
    ... > sessions from expiring out of its state table. ... > ClientAliveInterval on the server side fixes these timeouts. ... Good judgement comes with experience. ...
    (SSH)
  • Re: SunOS 5.9 to AIX 5.3 ssh getting Connection closed
    ... Soliciting ideas... ... The really interesting output would be from the server at the other ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: OpenSSH 3.7 client truncates banner
    ... > one that comes from Titan. ... > new server and the new client truncates it from an old server. ... Good judgement comes with experience. ...
    (SSH)
  • Re: pubkey authentication problem
    ... the pinhole (without proxy command) ... The server could have some restrictions on where it will accept particular keys from. ... (On an OpenSSH server this would be a "from=" key restriction, but your server is another implementation and I don't know how it works.) ... Good judgement comes with experience. ...
    (SSH)