Skip to content

Commit 22c8433

Browse files
committed
[WasmFS] Ensure error codes are negative in the Node backend
See commit 48459c6 for details.
1 parent 61b4b37 commit 22c8433

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/lib/wasmfs/backends/node_backend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class NodeDirectory : public Directory {
254254
}
255255

256256
auto childPath = getChildPath(name);
257-
return _wasmfs_node_rename(fromPath.c_str(), childPath.c_str());
257+
return -_wasmfs_node_rename(fromPath.c_str(), childPath.c_str());
258258
}
259259

260260
ssize_t getNumEntries() override {

0 commit comments

Comments
 (0)