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

s3: stop setting object and bucket ACL to "private" if it is an empty string #5730

Philip Harveyc7c9356af5f9
diff --git a/backend/s3/s3.go b/backend/s3/s3.go
index c13a78a37..962640c1c 100644
--- a/backend/s3/s3.go
+++ b/backend/s3/s3.go
@@ -2801,9 +2801,6 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e
if opt.Versions && opt.VersionAt.IsSet() {
return nil, errors.New("s3: cant use --s3-versions and --s3-version-at at the same time")
}
- if opt.ACL == "" {
- opt.ACL = "private"
- }
if opt.BucketACL == "" {
opt.BucketACL = opt.ACL
}