SFTP: Correctly inform client about unsupported commands (#19735)

This commit is contained in:
Olli Janatuinen 2024-05-14 12:29:30 +02:00 committed by GitHub
parent 9b219cd646
commit 534e7161df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ func (f *sftpDriver) Filecmd(r *sftp.Request) (err error) {
switch r.Method {
case "Setstat", "Rename", "Link", "Symlink":
return NotImplemented{}
return sftp.ErrSSHFxOpUnsupported
case "Rmdir":
bucket, prefix := path2BucketObject(r.Filepath)