Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

serve sftp: return not supported error for not supported commands

Nick Craig-Woodc190b9b14f94
diff --git a/cmd/serve/sftp/handler.go b/cmd/serve/sftp/handler.go
index aba3601a2..b937af80a 100644
--- a/cmd/serve/sftp/handler.go
+++ b/cmd/serve/sftp/handler.go
@@ -83,6 +83,10 @@ func (v vfsHandler) Filecmd(r *sftp.Request) error {
// link.symlink = r.Filepath
// v.files[r.Target] = link
return sftp.ErrSshFxOpUnsupported
+ case "Link":
+ return sftp.ErrSshFxOpUnsupported
+ default:
+ return sftp.ErrSshFxOpUnsupported
}
return nil
}