Skip to content

Commit

Permalink
Merge pull request #1 from MaxMougg/MaxMougg-patch-for-building-issue
Browse files Browse the repository at this point in the history
Update svr-chansession for build issue
Fixes mkj#168
  • Loading branch information
MaxMougg committed May 30, 2022
2 parents 50c6e8d + 1622c80 commit d7da2a7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions svr-chansession.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,9 +1040,11 @@ static void execchild(const void *user_data) {
if (chansess->original_command) {
addnewvar("SSH_ORIGINAL_COMMAND", chansess->original_command);
}
if (ses.authstate.pubkey_info != NULL) {
addnewvar("SSH_PUBKEYINFO", ses.authstate.pubkey_info);
}
#if DROPBEAR_SVR_PUBKEY_OPTIONS_BUILT
if (ses.authstate.pubkey_info != NULL) {
addnewvar("SSH_PUBKEYINFO", ses.authstate.pubkey_info);
}
#endif

/* change directory */
if (chdir(ses.authstate.pw_dir) < 0) {
Expand Down

0 comments on commit d7da2a7

Please sign in to comment.