Skip to content

Commit 720b362

Browse files
committed
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
1 parent 6d167ae commit 720b362

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

readpass.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ read_passphrase(const char *prompt, int flags)
368368
}
369369

370370
buf[len] = '\0' ; // get rid of the cr/lf
371+
_write(PassErrorFd,"\n", strlen("\n")); // show a newline as we do not echo password or the line
371372

372373
ret = xstrdup(buf);
373374

0 commit comments

Comments
 (0)