This is the mail archive of the
mailing list for the Cygwin project.
Re: ssh + patch + $TMP
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
> $ echo $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)?
I added a script
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) ?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple