From: Casey Bodley Date: Tue, 14 Jan 2025 16:26:26 +0000 (-0500) Subject: rgw/s3: remove local variable 'uri' that shadows member variable X-Git-Tag: v19.2.3~247^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bc7dfb42b04e2548f402d4cb8475ae478ead5dc6;p=ceph.git rgw/s3: remove local variable 'uri' that shadows member variable fixes "Invalid group uri" errors from `s3cmd setacl --acl-public s3://bucketname` introduced by account changes for squid Fixes: https://tracker.ceph.com/issues/69527 Reported-by: Yixin Jin Signed-off-by: Casey Bodley (cherry picked from commit 4257d11936cfcf0c96e6fabda72514236bbeeb4a) --- diff --git a/src/rgw/rgw_acl_s3.cc b/src/rgw/rgw_acl_s3.cc index 133a7afd2c95d..45df1bff9ff53 100644 --- a/src/rgw/rgw_acl_s3.cc +++ b/src/rgw/rgw_acl_s3.cc @@ -200,7 +200,6 @@ bool ACLGrant_S3::xml_end(const char *el) { ACLURI_S3 *acl_uri; ACLEmail_S3 *acl_email; ACLDisplayName_S3 *acl_name; - string uri; acl_grantee = static_cast(find_first("Grantee")); if (!acl_grantee)