delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/19/16:13:18

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=BAYES_00,NUMERIC_HTTP_ADDR,SPF_HELO_PASS,SPF_PASS,URI_HEX
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Kurt Franke <Kurt-Franke AT web DOT de>
Subject: Re: ssh + patch + $TMP
Date: Fri, 19 Feb 2010 21:12:40 +0000 (UTC)
Lines: 52
Message-ID: <loom.20100219T220113-236@post.gmane.org>
References: <1266525566 DOT 7752 DOT 1360709921 AT webmail DOT messagingengine DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Charles Wilson <cygwin <at> cwilson.fastmail.fm> writes:

> 
> I ran across an interesting "feature" of remote access today. I was
> ssh'ed in to my cygwin computer, under my normal windows/cygwin account
> name, and tried to run 'patch':
> 
> $ patch -p1 -R --dry-run < ../some-patch.patch
> patch: **** Can't create file
> /c/Users/CYG_SE~1/AppData/Local/Temp/poFOD7WH : Not a directory
> 
> $ echo $TMP
> /c/Users/CYG_SE~1/AppData/Local/Temp
> 
> $ echo $TEMP
> /c/Users/CYG_SE~1/AppData/Local/Temp
> 
> $ echo $TMPDIR
> 
> Obviously, my regular user doesn't have access to cyg_server's AppData
> directory. This is easily fixed, of course, by setting $TMP=/tmp (or
> /c/Users/≤me>/AppData/Local/Temp, if you like).  The question is, should
> this be something that is done by default in /etc/profile (e.g. part of
> the base-files package)?
> 
> --
> Chuck
> 
> 

I added a script 

   0000000-ssh-session-env.sh

to /etc/profile.d/ to fetch the SYSTEM environment and USER environment
from the registry.
Some Variables like PATH are preserved.

The login performance via ssh is degraded in comparison without this script. 

If you are interested I can email it to you.

Or is it possible to post it here (Size 4897 Bytes) ?

Regards

kf







--
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