diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1071,11 +1071,15 @@ do_setup_env(struct ssh *ssh, Session *s, const char *shell) | |||
1071 | child_set_env(&env, &envsize, "TERM", s->term); | 1071 | child_set_env(&env, &envsize, "TERM", s->term); |
1072 | if (s->display) | 1072 | if (s->display) |
1073 | child_set_env(&env, &envsize, "DISPLAY", s->display); | 1073 | child_set_env(&env, &envsize, "DISPLAY", s->display); |
1074 | if (wildcard_match) { | 1074 | if (wildcard_remote_key) { |
1075 | /* This is basically obsolete because of SSH_USER_AUTH */ | ||
1076 | /* I'm leaving it here only because I have code that uses these variables. */ | ||
1075 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY", | 1077 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY", |
1076 | wildcard_match); | 1078 | wildcard_remote_key); |
1079 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY_TYPE", | ||
1080 | wildcard_remote_key_type); | ||
1077 | child_set_env(&env, &envsize, "SSH_REMOTE_FINGERPRINT", | 1081 | child_set_env(&env, &envsize, "SSH_REMOTE_FINGERPRINT", |
1078 | wildcard_fingerprint); | 1082 | wildcard_remote_key_fingerprint); |
1079 | } | 1083 | } |
1080 | 1084 | ||
1081 | 1085 | ||