Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib/libfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -983,9 +983,10 @@ FS.staticInit();`;
var node = stream.node;
var getattr = stream.stream_ops.getattr;
var arg = getattr ? stream : node;
var obj = getattr ? stream.stream_ops : node.node_ops;
getattr ??= node.node_ops.getattr;
FS.checkOpExists(getattr, {{{ cDefs.EPERM }}})
return getattr(arg);
return getattr.call(obj, arg);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hoodmane like this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think doSetAttr needs updating too.

I guess we don't have any test coverage for this because our FS callback don't use this.. :(

},
lstat(path) {
return FS.stat(path, true);
Expand Down