delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/22/04:15:34

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 22 Feb 2010 10:15:21 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ssh + patch + $TMP
Message-ID: <20100222091521.GO5683@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1266525566 DOT 7752 DOT 1360709921 AT webmail DOT messagingengine DOT com> <20100218205202 DOT GY5683 AT calimero DOT vinschen DOT de> <20100218212503 DOT GA29260 AT ednor DOT casa DOT cgf DOT cx> <20100219121253 DOT GA5683 AT calimero DOT vinschen DOT de> <4B7ECA09 DOT 1000703 AT cygwin DOT com> <4B806A73 DOT 40807 AT laposte DOT net> <20100221022322 DOT GA29702 AT ednor DOT casa DOT cgf DOT cx> <COL102-W186DEF235EC0E6884F4D79B5430 AT phx DOT gbl> <20100222065303 DOT GA26134 AT ednor DOT casa DOT cgf DOT cx>
MIME-Version: 1.0
In-Reply-To: <20100222065303.GA26134@ednor.casa.cgf.cx>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Feb 22 01:53, Christopher Faylor wrote:
> On Sun, Feb 21, 2010 at 05:33:56PM -0800, Karl M wrote:
> >
> >> Date: Sat, 20 Feb 2010 21:23:22 -0500
> >> From: cgf
> >> Subject: Re: ssh + patch + $TMP
> >>
> >> On Sun, Feb 21, 2010 at 12:04:19AM +0100, Cyrille Lefevre wrote:
> >>
> >> I would really bet that there aren't many programs out there which rely
> >> on those environment variables. Just asserting that this is needed
> >> doesn't really advance the conversation at all since you're just a lone
> >> voice with no credentials which would give your opinion weight. If
> >> you have specific examples then please provide them.
> >>
> >> If this was truly like linux then I believe that most, if not all, of
> >> the environment would come from settings in the shell itself. So, in
> >> thinking about this more, I think we could probably get away with
> >> deleting everything.
> >>
> >> If someone wanted to run a program which relied on those variables they
> >> could always set them themselves.
> >>
> >Although, we do inherit the windows environment when launching a Cygwin
> >bash shell, so I wouldn't carry this argument to an extreme.
> 
> It's not the same thing.  If we really had a getty/login processes like
> linux we would control the environment precisesly.  In the case of sshd
> we're close to the way linux does things.  There is a daemon running
> which starts a shell via sshd.

As you noticed above, on all other platforms sshd does not pass on most
of it's own environment variables to the child process.  Only a minimal
set of env vars is created at all, USER, LOGNAME, HOME, PATH, MAIL, SHELL,
TZ, and only TZ is passed on from the parent.

The idea here is to do almost the same on Cygwin, just passing on a
minimal set of variables to keep cmd.exe running.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019