Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Tue, 18 Dec 2001 13:06:12 +0100
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: path problems when logged in through ssh
Message-ID: <20011218130612.W21898@cygbert.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <4.3.1.2.20011217112036.0223c410@pop.ma.ultranet.com> <003901c18736$7c4a4370$738ffe0c@pwork> <3C1E58F9.27125FFC@verizon.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3C1E58F9.27125FFC@verizon.net>; from d.roth@verizon.net on Mon, Dec 17, 2001 at 12:43:37PM -0800

On Mon, Dec 17, 2001 at 12:43:37PM -0800, David Rothenberger wrote:
> I had a similar problem with ssh.  In my case, I couldn't even log in
> through ssh because the spawned child process could not find the cygwin
> DLL.  The problem was that my system PATH value was longer than 512
> characters.
> 
> The sshd daemon is supposed to copy its environment for the child
> process.  Through debugging, I determined the child process did get a
> copy of the daemon's environment -- except for PATH, which was set to
> some useless default like /usr/sbin:/c/WINNT that didn't include the
> cygwin directory.
> 
> I looked at the sshd sources and noticed a limit on the environment
> value sizes of 512 in the code that copies the environment.  Since
> shortening my system PATH value was not an option, I solved the problem
> by overriding the PATH value for the sshd daemon's environment.  I did
> this by editing the registry for my sshd service, but you can also do it
> by recreating the sshd service with cygrunsrv and specifying the PATH
> value as part of the service's environment.

Just to claify here.  You're not talking about OpenSSH but of ssh.com,
right?  There's no limit of the length of environment variables in
OpenSSH nor is PATH truncated to some default value in thr Cygwin version.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

