1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-04 17:43:50 +00:00

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

This commit is contained in:
Nick Craig-Wood
2020-01-17 21:33:47 +00:00
parent 9fb10064ee
commit 251cfc100e
5 changed files with 10 additions and 6 deletions

View File

@@ -947,6 +947,10 @@ 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':