"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
serve sftp: fix crash on unsupported operations (eg Readlink)
Nick Craig-Wood50a3a96e2784
diff --git a/cmd/serve/sftp/handler.go b/cmd/serve/sftp/handler.goindex 5e25d28c5..64d8d8b5e 100644--- a/cmd/serve/sftp/handler.go+++ b/cmd/serve/sftp/handler.go@@ -94,7 +94,7 @@ func (v vfsHandler) Filecmd(r *sftp.Request) error {// link.symlink = r.Filepath// v.files[r.Target] = link}- return nil+ return sftp.ErrSshFxOpUnsupported}type listerat []os.FileInfo@@ -150,5 +150,5 @@ func (v vfsHandler) Filelist(r *sftp.Request) (l sftp.ListerAt, err error) {// }// return listerat([]os.FileInfo{file}), nil}- return nil, nil+ return nil, sftp.ErrSshFxOpUnsupported}