Skip to content

Commit

Permalink
orbis-kernel: fix sys_truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 committed Oct 22, 2024
1 parent 662b23b commit 1fbb7c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orbis-kernel/src/sys/sys_vfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ orbis::SysResult orbis::sys_futimes(Thread *thread, sint fd,
orbis::SysResult orbis::sys_truncate(Thread *thread, ptr<char> path,
off_t length) {
Ref<File> file;
auto result = thread->tproc->ops->open(thread, path, 0, 0, &file);
auto result = thread->tproc->ops->open(thread, path, 2, 0, &file);
if (result.isError()) {
return result;
}
Expand Down

0 comments on commit 1fbb7c2

Please sign in to comment.