orbis-kernel: fix sys_truncate

This commit is contained in:
DH 2024-10-22 19:44:18 +03:00
parent 662b23be80
commit 1fbb7c2edf

View file

@ -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;
}