From 2cd139ffd1723a1a2889b43e512ef4d9757a95f0 Mon Sep 17 00:00:00 2001 From: Gianmaria Del Monte <39946305+gmgigi96@users.noreply.github.com> Date: Tue, 15 Aug 2023 14:46:37 +0200 Subject: [PATCH] Fix unshare lw accounts (#48) --- pkg/storage/utils/eosfs/eosfs.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/storage/utils/eosfs/eosfs.go b/pkg/storage/utils/eosfs/eosfs.go index 156fa7aacf..6b1a453544 100644 --- a/pkg/storage/utils/eosfs/eosfs.go +++ b/pkg/storage/utils/eosfs/eosfs.go @@ -1112,7 +1112,10 @@ func (fs *eosfs) RemoveGrant(ctx context.Context, ref *provider.Reference, g *pr } if eosACL.Type == acl.TypeLightweight { - attr := &eosclient.Attribute{} + attr := &eosclient.Attribute{ + Type: SystemAttr, + Key: fmt.Sprintf("%s.%s", lwShareAttrKey, eosACL.Qualifier), + } if err := fs.c.UnsetAttr(ctx, rootAuth, attr, true, fn); err != nil { return errors.Wrap(err, "eosfs: error removing acl for lightweight account") }