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
This commit is contained in:
quamrulmina 2015-09-28 01:01:27 -05:00
parent 6d167ae0f6
commit 720b3620fa

View File

@ -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);