mirror of
https://github.com/clearml/dropbear
synced 2025-02-12 07:25:30 +00:00
set envvar SSH_PUBKEYINFO if authstate.pubkey_info contains information
This commit is contained in:
parent
80e7143fd2
commit
35631a21a2
@ -1030,6 +1030,9 @@ static void execchild(const void *user_data) {
|
|||||||
if (chansess->original_command) {
|
if (chansess->original_command) {
|
||||||
addnewvar("SSH_ORIGINAL_COMMAND", chansess->original_command);
|
addnewvar("SSH_ORIGINAL_COMMAND", chansess->original_command);
|
||||||
}
|
}
|
||||||
|
if (ses.authstate.pubkey_info != NULL) {
|
||||||
|
addnewvar("SSH_PUBKEYINFO", ses.authstate.pubkey_info);
|
||||||
|
}
|
||||||
|
|
||||||
/* change directory */
|
/* change directory */
|
||||||
if (chdir(ses.authstate.pw_dir) < 0) {
|
if (chdir(ses.authstate.pw_dir) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user