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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user