From 720b3620fac463f046cfa84e78135e51560709df Mon Sep 17 00:00:00 2001 From: quamrulmina Date: Mon, 28 Sep 2015 01:01:27 -0500 Subject: [PATCH] sftp.exe/ssh.exe - write new line after a password is read in non-echo mode ssh.exe when invoked from sftp.exe and scp.exe external progam needs to show a newline after data read after a prompt for next data to look proper --- readpass.c | 1 + 1 file changed, 1 insertion(+) diff --git a/readpass.c b/readpass.c index b6e452c..9b9206b 100644 --- a/readpass.c +++ b/readpass.c @@ -368,6 +368,7 @@ read_passphrase(const char *prompt, int flags) } buf[len] = '\0' ; // get rid of the cr/lf + _write(PassErrorFd,"\n", strlen("\n")); // show a newline as we do not echo password or the line ret = xstrdup(buf);