1
0
mirror of https://github.com/drakkan/sftpgo.git synced 2025-11-29 22:08:10 +02:00

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

@@ -251,11 +251,6 @@ func (c Connection) handleSFTPSetstat(filePath string, request *sftp.Request) er
if setstatMode == 1 {
return nil
}
if len(request.Attrs) < 1 {
c.Log(logger.LevelInfo, logSender, "cannot handle Setstat request with no attrs, this is probably a buggy client: %v",
c.ClientVersion)
return sftp.ErrSSHFxBadMessage
}
pathForPerms := request.Filepath
if fi, err := os.Lstat(filePath); err == nil {
if fi.IsDir() {