Revert "sshd session will not echo password in an app/program run within sshd session"

This reverts commit 4ed811fdb44bdfcd8200319bbdbcbfdb499afa79.
This commit is contained in:
quamrulmina 2016-03-09 23:36:19 -06:00
parent 4ed811fdb4
commit 69546ae1ff

View File

@ -2511,11 +2511,7 @@ channel_input_data(int type, u_int32_t seq, void *ctxt)
}
}
else {
// avoid echoing if echo is tuned off by the current running application
DWORD dwGlobalConsoleMode;
GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), &dwGlobalConsoleMode);
if (dwGlobalConsoleMode & (ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT))
buffer_append(&c->input, data, data_len);
buffer_append(&c->input, data, data_len);
charinline += data_len; // one more char on the line
}