"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
s3: fix shared_credentials_file auth after reverting incorrect fix #5762
Nick Craig-Woode6e1c49b58a3
diff --git a/backend/s3/s3.go b/backend/s3/s3.goindex 15f91bcec..653dcfaae 100644--- a/backend/s3/s3.go+++ b/backend/s3/s3.go@@ -1603,6 +1603,10 @@ func s3Connection(ctx context.Context, opt *Options, client *http.Client) (*s3.SawsSessionOpts.SharedConfigState = session.SharedConfigEnable// Set the name of the profile if suppliedawsSessionOpts.Profile = opt.Profile+ // Set the shared config file if supplied+ if opt.SharedCredentialsFile != "" {+ awsSessionOpts.SharedConfigFiles = []string{opt.SharedCredentialsFile}+ }// The session constructor (aws/session/mergeConfigSrcs) will only use the user's preferred credential source// (from the shared config file) if the passed-in Options.Config.Credentials is nil.awsSessionOpts.Config.Credentials = nil