mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
Merge github #169
Fix compilation when disabling pubkey authentication (DROPBEAR_SVR_PUBKEY_AUTH)
This commit is contained in:
commit
f2318d831b
@ -1040,9 +1040,11 @@ 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 DROPBEAR_SVR_PUBKEY_OPTIONS_BUILT
|
||||||
if (ses.authstate.pubkey_info != NULL) {
|
if (ses.authstate.pubkey_info != NULL) {
|
||||||
addnewvar("SSH_PUBKEYINFO", ses.authstate.pubkey_info);
|
addnewvar("SSH_PUBKEYINFO", ses.authstate.pubkey_info);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* 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