Skip to content

Commit

Permalink
eosfs: getattr tricks to get sys attrs while keeping authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrizio Furano committed Nov 28, 2023
1 parent 1038d17 commit 4440087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/utils/eosfs/eosfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ func (fs *eosfs) getLockPayloads(ctx context.Context, auth eosclient.Authorizati
// sys attributes want root auth, buddy
rootauth, err := fs.getRootAuth(ctx)
if err != nil {
return nil, err
return "", "", err
}
data, err := fs.c.GetAttr(ctx, rootauth, "sys."+LockPayloadKey, path)
if err != nil {
Expand Down

0 comments on commit 4440087

Please sign in to comment.