diff --git a/cmd/bucket-policy-parser.go b/cmd/bucket-policy-parser.go index 51aaf9e96..23685656d 100644 --- a/cmd/bucket-policy-parser.go +++ b/cmd/bucket-policy-parser.go @@ -23,7 +23,6 @@ import ( "errors" "fmt" "io" - "path" "sort" "strings" @@ -224,7 +223,7 @@ func resourcePrefix(resource string) string { if strings.HasSuffix(resource, "*") { resource = strings.TrimSuffix(resource, "*") } - return path.Clean(resource) + return resource } // checkBucketPolicyResources validates Resources in unmarshalled bucket policy structure.