diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1094,11 +1094,15 @@ do_setup_env(struct ssh *ssh, Session *s, const char *shell) | |||
1094 | child_set_env(&env, &envsize, "TERM", s->term); | 1094 | child_set_env(&env, &envsize, "TERM", s->term); |
1095 | if (s->display) | 1095 | if (s->display) |
1096 | child_set_env(&env, &envsize, "DISPLAY", s->display); | 1096 | child_set_env(&env, &envsize, "DISPLAY", s->display); |
1097 | if (wildcard_match) { | 1097 | if (wildcard_remote_key) { |
1098 | /* This is basically obsolete because of SSH_USER_AUTH */ | ||
1099 | /* I'm leaving it here only because I have code that uses these variables. */ | ||
1098 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY", | 1100 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY", |
1099 | wildcard_match); | 1101 | wildcard_remote_key); |
1102 | child_set_env(&env, &envsize, "SSH_REMOTE_KEY_TYPE", | ||
1103 | wildcard_remote_key_type); | ||
1100 | child_set_env(&env, &envsize, "SSH_REMOTE_FINGERPRINT", | 1104 | child_set_env(&env, &envsize, "SSH_REMOTE_FINGERPRINT", |
1101 | wildcard_fingerprint); | 1105 | wildcard_remote_key_fingerprint); |
1102 | } | 1106 | } |
1103 | 1107 | ||
1104 | 1108 | ||