diff options
author | Damien Miller <djm@mindrot.org> | 2002-09-10 21:43:53 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-09-10 21:43:53 +1000 |
commit | e9994cb4d77d36f54af146a9ca0ea4db03b861b6 (patch) | |
tree | 2d0fd79e92bd3604239b08ef91078e8772286d69 /session.c | |
parent | 005d4560ed000be8a667f876967348a99a7a8897 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |