Revert "vendor: update x/crypto/ssh - to fix Windows password length issues fixes #3798"

This turned out to introduce a regression, not being able to press Enter.

See: #3888 and https://github.com/golang/go/issues/36609

This reverts commit 251cfc100e.
This commit is contained in:
Nick Craig-Wood
2020-01-20 12:46:52 +00:00
parent f338a2d907
commit 18d26e2ddb
5 changed files with 6 additions and 10 deletions
-4
View File
@@ -947,10 +947,6 @@ func readPasswordLine(reader io.Reader) ([]byte, error) {
n, err := reader.Read(buf[:])
if n > 0 {
switch buf[0] {
case '\b':
if len(ret) > 0 {
ret = ret[:len(ret)-1]
}
case '\n':
return ret, nil
case '\r':