Skip to content

Commit d636fb3

Browse files
committed
Fix test failure in wasmfs.test_unistd_close_rawfs
1 parent ae0f0f6 commit d636fb3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

system/lib/wasmfs/backends/node_backend.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ class NodeDirectory : public Directory {
278278

279279
Directory::MaybeEntries getEntries() override {
280280
std::vector<Directory::Entry> entries;
281-
int err = _wasmfs_node_readdir(state.path.c_str(), &entries);
281+
auto currPath = state.path.empty() ? "." : state.path;
282+
int err = _wasmfs_node_readdir(currPath.c_str(), &entries);
282283
if (err) {
283284
return {-err};
284285
}

0 commit comments

Comments
 (0)