mirror of https://github.com/minio/minio.git
SFTP: Correctly inform client about unsupported commands (#19735)
This commit is contained in:
parent
9b219cd646
commit
534e7161df
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue