From c7c9356af5f9b3be84c9c9f220aa0181c176ccd7 Mon Sep 17 00:00:00 2001
From: Philip Harvey <pharvey@battelleecology.org>
Date: Tue, 6 Sep 2022 15:39:48 -0600
Subject: [PATCH] s3: stop setting object and bucket ACL to "private" if it is
 an empty string #5730

---
 backend/s3/s3.go | 3 ---
 1 file changed, 3 deletions(-)

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
 	}