Skip to content

Commit 69546ae

Browse files
committed
Revert "sshd session will not echo password in an app/program run within sshd session"
This reverts commit 4ed811f.
1 parent 4ed811f commit 69546ae

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

channels.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,11 +2511,7 @@ channel_input_data(int type, u_int32_t seq, void *ctxt)
25112511
}
25122512
}
25132513
else {
2514-
// avoid echoing if echo is tuned off by the current running application
2515-
DWORD dwGlobalConsoleMode;
2516-
GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), &dwGlobalConsoleMode);
2517-
if (dwGlobalConsoleMode & (ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT))
2518-
buffer_append(&c->input, data, data_len);
2514+
buffer_append(&c->input, data, data_len);
25192515
charinline += data_len; // one more char on the line
25202516
}
25212517

0 commit comments

Comments
 (0)