update pkg/sftp to a stable version ...

... now that it contains all the needed patches.
Remove an hack for setstat with empty attrs, it is now handled in pkg/sftp.
Update other dependencies too.
This commit is contained in:
Nicola Murino
2020-01-11 14:29:30 +01:00
parent 1d9bb54073
commit ec194d73d2
4 changed files with 31 additions and 30 deletions

View File

@@ -299,12 +299,6 @@ func TestSetstatModeIgnore(t *testing.T) {
if err != nil {
t.Errorf("unexpected error: %v setstat should be silently ignore in mode 1", err)
}
setstatMode = 0
req := sftp.NewRequest("Setstat", "invalid")
err = connection.handleSFTPSetstat("invalid", req)
if err != sftp.ErrSSHFxBadMessage {
t.Errorf("unexpected error: %v", err)
}
setstatMode = originalMode
}