kevin gurney
2010-Nov-11 17:06 UTC
Why the limitation on Windows environnment introduced in OpenSSH 4.0?
Hello all, First off, thanks for all of your hard work on OpenSSH! I recently updated our SSH infrastructure from OpenSSH 3.8.1p1 to Cygwin 1.7 (which includes OpenSSH 5.4p1) and noticed that when running commands via ssh on my Windows machines I no longer have access to the full set of Windows environment variables. Digging through source, I see that this change was introduced in v4.0 (the "fetch_windows_environment()" function in openbsd-compat/bsd-cygwin_util.c). Can anyone shed light on why this was thought to be a "bug" needing fixing? And, more importantly, is there a way to work around this? Our build system relies on having access to the full set of Windows environment variables such as those created by software package installations. Having a very restricted Windows environment is causing us a ton of grief. The only workable solution we have found is to use a ~/.ssh/environment file on each of our Windows build machines. Not my preferred solution however. Thanks, Kevin Gurney -- Oracle <http://www.oracle.com> Kevin Gurney Phone: +1 925 6943893 <tel:+1%20925%206943893> Green Oracle <http://www.oracle.com/commitment> Oracle is committed to developing practices and products that help protect the environment
Peter Stuge
2010-Nov-11 18:44 UTC
Why the limitation on Windows environnment introduced in OpenSSH 4.0?
kevin gurney wrote:> Digging through source, I see that this change was introduced in v4.0 > (the "fetch_windows_environment()" function in > openbsd-compat/bsd-cygwin_util.c). > > Can anyone shed light on why this was thought to be a "bug" needing > fixing?What does the commit message for the change say? Look up which revision of that file introduced the change. //Peter
Possibly Parallel Threads
- xmalloc(foo*bar) -> xcalloc(foo, bar) for Portable
- [PATCH 2/2] Cygwin: implement case-insensitive Unicode user and group name matching
- [PATCH 2/2] Cygwin: implement case-insensitive Unicode user and group name matching
- [PATCH]: scp could hang in Cygwin
- [PATCH]: Allow SSHD to install as service under WIndows 9x/Me