From 099cf3016e7fc93f5552f1a77ae1b4e7f95b7598 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Mon, 9 Sep 2024 11:11:19 +0300 Subject: [PATCH] cli: do not overwrite parsed eacl rules Regression from c72af12127e852779d4c3dddd648a5b6326da048. As I have already said in associated PR, new SDK turned out to be a counter-CLI thing. Signed-off-by: Pavel Karpy --- cmd/neofs-cli/modules/util/acl.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/neofs-cli/modules/util/acl.go b/cmd/neofs-cli/modules/util/acl.go index d46d70bc80..a47d532674 100644 --- a/cmd/neofs-cli/modules/util/acl.go +++ b/cmd/neofs-cli/modules/util/acl.go @@ -7,6 +7,7 @@ import ( "errors" "fmt" "math/big" + "slices" "strings" "text/tabwriter" @@ -236,7 +237,7 @@ func parseEACLTable(tb *eacl.Table, args []string) error { records = append(records, record) } - tb.SetRecords(records) + tb.SetRecords(slices.Concat(tb.Records(), records)) return nil }