[orbis-kernel] Fix sys_stat hack

This commit is contained in:
Ivan Chikish 2023-07-17 23:01:24 +03:00
parent 439444d72b
commit 2c3137b566
3 changed files with 6 additions and 2 deletions

View file

@ -123,7 +123,7 @@ orbis::SysResult orbis::sys_stat(Thread *thread, ptr<char> path, ptr<Stat> ub) {
ub->size = len;
ub->blksize = 1;
ub->blocks = len;
ub->mode = 0777;
ub->mode = 0777 | 0x8000;
sys_close(thread, fd);
thread->retval[0] = 0;
return {};