Skip to content

Commit 34f6bcf

Browse files
authored
[WasmFS] Ensure error codes are negative in the Node backend (#26598)
See commit 48459c6 for details. Split out from #24733, this fixes a test failure in `core0.test_fs_js_api_wasmfs_rawfs` from that PR.
1 parent bc56904 commit 34f6bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/lib/wasmfs/backends/node_backend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class NodeDirectory : public Directory {
256256
}
257257

258258
auto childPath = getChildPath(name);
259-
return _wasmfs_node_rename(fromPath.c_str(), childPath.c_str());
259+
return -_wasmfs_node_rename(fromPath.c_str(), childPath.c_str());
260260
}
261261

262262
ssize_t getNumEntries() override {

0 commit comments

Comments
 (0)