summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-08-30 20:42:08 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-08-30 20:42:08 +1000
commit14c372d49d49a21107c72b7c238cf9e5a01b80ab (patch)
tree8b45a767306945e88d980942daa3ad9c75c057d8 /session.c
parent5a88d003499744a374ec39279f4c6ec3971b5dab (diff)
- (dtucker) [session.c openbsd-compat/bsd-cygwin_util.{c,h}] Bug #915: only
copy required environment variables on Cygwin. Patch from vinschen at redhat.com, ok djm@
Diffstat (limited to 'session.c')
-rw-r--r--session.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/session.c b/session.c
index ee4008acf..89e1ec892 100644
--- a/session.c
+++ b/session.c
@@ -979,7 +979,13 @@ do_setup_env(Session *s, const char *shell)
979 * The Windows environment contains some setting which are 979 * The Windows environment contains some setting which are
980 * important for a running system. They must not be dropped. 980 * important for a running system. They must not be dropped.
981 */ 981 */
982 copy_environment(environ, &env, &envsize); 982 {
983 char **p;
984
985 p = fetch_windows_environment();
986 copy_environment(p, &env, &envsize);
987 free_windows_environment(p);
988 }
983#endif 989#endif
984 990
985#ifdef GSSAPI 991#ifdef GSSAPI