X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 	tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-Id: <1266525566.7752.1360709921@webmail.messagingengine.com>
From: "Charles Wilson" <cygwin@cwilson.fastmail.fm>
To: cygwin@cygwin.com
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"
Subject: ssh + patch + $TMP
Date: Thu, 18 Feb 2010 15:39:26 -0500
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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


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

