From e35d0784a83ecb936c27599257d9e42b3dedd411 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sat, 14 Mar 2020 23:28:18 +0800 Subject: Set SSH_ORIGINAL_COMMAND for "dropbear -c" too, fix build without DROPBEAR_SVR_PUBKEY_OPTIONS --- chansession.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'chansession.h') diff --git a/chansession.h b/chansession.h index fa429d5..cf4fba3 100644 --- a/chansession.h +++ b/chansession.h @@ -41,6 +41,9 @@ struct ChanSess { char * cmd; /* command to exec */ pid_t pid; /* child process pid */ + /* command that was sent by the client, if authorized_keys command= or + dropbear -c was used */ + char *original_command; /* pty details */ int master; /* the master terminal fd*/ @@ -72,10 +75,6 @@ struct ChanSess { char * agentfile; char * agentdir; #endif - -#if DROPBEAR_SVR_PUBKEY_OPTIONS_BUILT - char *original_command; -#endif }; struct ChildPid { -- cgit v1.2.3