diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-03-14 23:26:37 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-03-14 23:26:37 +0800 |
commit | cc6fa57a410a786804cee69c97e633f45304c88b (patch) | |
tree | c57ded37084371f0c5b05768075bf11702f42f04 /svr-authpubkeyoptions.c | |
parent | 002b79e2f9d2c94908817a5c7e9ff4b843b37e0d (diff) |
Don't log authorized_keys command= every time
Diffstat (limited to 'svr-authpubkeyoptions.c')
-rw-r--r-- | svr-authpubkeyoptions.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svr-authpubkeyoptions.c b/svr-authpubkeyoptions.c index ba6f698..9bdad15 100644 --- a/svr-authpubkeyoptions.c +++ b/svr-authpubkeyoptions.c @@ -92,6 +92,7 @@ int svr_pubkey_allows_pty() { * by any 'command' public key option. */ void svr_pubkey_set_forced_command(struct ChanSess *chansess) { if (ses.authstate.pubkey_options && ses.authstate.pubkey_options->forced_command) { + TRACE(("Forced command '%s'", ses.authstate.pubkey_options->forced_command)) if (chansess->cmd) { /* original_command takes ownership */ chansess->original_command = chansess->cmd; @@ -182,8 +183,6 @@ int svr_add_pubkey_options(buffer *options_buf, int line_num, const char* filena memcpy(ses.authstate.pubkey_options->forced_command, command_start, command_len-1); ses.authstate.pubkey_options->forced_command[command_len-1] = '\0'; - dropbear_log(LOG_WARNING, "Forced command '%s'", - ses.authstate.pubkey_options->forced_command); goto next_option; } escaped = (!escaped && c == '\\'); |