From cb909f5ce5df88bfcad5aa20a21f7a6430dad118 Mon Sep 17 00:00:00 2001 From: ebozduman Date: Thu, 25 Feb 2021 09:32:44 -0800 Subject: [PATCH] Stops 'mc cp --attr' preserve file attributes without '--preserve' (#3625) --- cmd/cp-main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/cp-main.go b/cmd/cp-main.go index 8b436f80..36c29865 100644 --- a/cmd/cp-main.go +++ b/cmd/cp-main.go @@ -522,7 +522,6 @@ func doCopySession(ctx context.Context, cancelCopy context.CancelFunc, cli *cli. preserve := cli.Bool("preserve") if cli.String("attr") != "" { - preserve = true userMetaMap, _ := getMetaDataEntry(cli.String("attr")) for metadataKey, metaDataVal := range userMetaMap { cpURLs.TargetContent.UserMetadata[metadataKey] = metaDataVal