Commit b5b6396e authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

nodefs: use bridge.getattr for Access calculation

Together with DefaultPermissions, this lets you cd into a nodefs
powered file system.
parent c5ba5de9
......@@ -517,13 +517,8 @@ func (b *rawBridge) Access(cancel <-chan struct{}, input *fuse.AccessIn) fuse.St
// default: check attributes.
caller := input.Caller
ga, ok := n.ops.(Getattrer)
if !ok {
return fuse.EACCES
}
var out fuse.AttrOut
if s := ga.Getattr(ctx, nil, &out); s != 0 {
if s := b.getattr(ctx, n, nil, &out); s != 0 {
return errnoToStatus(s)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment