diff --git a/s3/s3.go b/s3/s3.go index 08da61f0e..94a1bad3b 100644 --- a/s3/s3.go +++ b/s3/s3.go @@ -368,12 +368,15 @@ func NewFs(name, root string) (fs.Fs, error) { c: c, bucket: bucket, ses: ses, - acl: fs.ConfigFile.MustValue(name, "acl", *s3ACL), + acl: fs.ConfigFile.MustValue(name, "acl"), root: directory, locationConstraint: fs.ConfigFile.MustValue(name, "location_constraint"), sse: fs.ConfigFile.MustValue(name, "server_side_encryption"), storageClass: fs.ConfigFile.MustValue(name, "storage_class"), } + if *s3ACL != "" { + f.acl = *s3ACL + } if *s3StorageClass != "" { f.storageClass = *s3StorageClass }