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

This commit is contained in:
Philip Harvey 2022-09-06 15:39:48 -06:00 committed by Nick Craig-Wood
parent 3292c112c5
commit c7c9356af5
1 changed files with 0 additions and 3 deletions

View File

@ -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
}