mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 14:36:15 +03:00
SFTP: Correctly inform client about unsupported commands (#19735)
This commit is contained in:
@@ -342,7 +342,7 @@ func (f *sftpDriver) Filecmd(r *sftp.Request) (err error) {
|
|||||||
|
|
||||||
switch r.Method {
|
switch r.Method {
|
||||||
case "Setstat", "Rename", "Link", "Symlink":
|
case "Setstat", "Rename", "Link", "Symlink":
|
||||||
return NotImplemented{}
|
return sftp.ErrSSHFxOpUnsupported
|
||||||
|
|
||||||
case "Rmdir":
|
case "Rmdir":
|
||||||
bucket, prefix := path2BucketObject(r.Filepath)
|
bucket, prefix := path2BucketObject(r.Filepath)
|
||||||
|
|||||||
Reference in New Issue
Block a user