summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-09-10 21:43:53 +1000
committerDamien Miller <djm@mindrot.org>2002-09-10 21:43:53 +1000
commite9994cb4d77d36f54af146a9ca0ea4db03b861b6 (patch)
tree2d0fd79e92bd3604239b08ef91078e8772286d69 /session.c
parent005d4560ed000be8a667f876967348a99a7a8897 (diff)
- (djm) Bug #365: Read /.ssh/environment properly under CygWin.
Patch from Mark Bradshaw <bradshaw@staff.crosswalk.com>
Diffstat (limited to 'session.c')
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index 566bd900e..d017b17f9 100644
--- a/session.c
+++ b/session.c
@@ -1067,7 +1067,7 @@ do_setup_env(Session *s, const char *shell)
1067 /* read $HOME/.ssh/environment. */ 1067 /* read $HOME/.ssh/environment. */
1068 if (options.permit_user_env && !options.use_login) { 1068 if (options.permit_user_env && !options.use_login) {
1069 snprintf(buf, sizeof buf, "%.200s/.ssh/environment", 1069 snprintf(buf, sizeof buf, "%.200s/.ssh/environment",
1070 pw->pw_dir); 1070 strcmp(pw->pw_dir, "/") ? pw->pw_dir : "");
1071 read_environment_file(&env, &envsize, buf); 1071 read_environment_file(&env, &envsize, buf);
1072 } 1072 }
1073 if (debug_flag) { 1073 if (debug_flag) {